Skip to Content

Asynchronously loading entity data on to SAPUI5 application

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 31, 2019 at 12:07 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 31, 2019 at 12:37 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.