cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 application/ services not loading properly

alagar_pandian
Participant
0 Kudos

I am running odata service in a loop, sometimes services are not getting triggered properly but most of the times it works properly and gives the expected result. Can anyone please make me understand the reason for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

kivancaktas
Explorer
0 Kudos

Dear Pandian,

Can you please give more detail by "calling services in a loop" in example code block.

On which purpose are you calling oData in a loop for example is it for listing the result on the table?

Kind regards.

alagar_pandian
Participant
0 Kudos

pic.png

As shown in the pic i am looping every category(ex:Deliveries) and calling odata service to fill data accordingly. As you see data is coming properly for all categories, but sometimes application not loading properly and i couldn't see any data. is it related to performance? Please suggest.

nabheetscn
Active Contributor
0 Kudos

What does the Chrome Developer console shows or something in /IWFND/ERROR_LOG? BTW are you looping just to get data at regular interval or just the logic?

Nabheet

kivancaktas
Explorer
0 Kudos

Dear Pandian,

It seems that this issue pops time by time because of the nature of javascript asynchronous working style. I suggest you to not call oData service in loop just call once and then loop in your data set or just bind your result to view object. When you call some service in loop javascript not wait for previous call results and if your service result delayed it can be cause problems. If you supply your loop code block and additionally error log in your console our answers will be more helpful for you.

Kind regards.