cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronously loading entity data on to SAPUI5 application

former_member243729
Participant
0 Kudos

Hi,

I have two sections in a view. In the first section I am making a get call on X entity set and in the second section I am making get call from Y entity.

Now the get call from X entity takes some time due to large data, so I want to first load Y entity data on to my second section of view, so user doesnt have to to wait for the X entity data to get loaded. Is there a way I can do this using SAPU5 code ....basically asynchronous way of loading data ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Sharathmg
Active Contributor
0 Kudos

Loading is async by default. But, if you want to execute first entity 2 use the call back function to entity 1 in entity 2 success method.

Even better, try to use promises.

junwu
Active Contributor
0 Kudos

it is async by default....unless you are doing something crazy....