Skip to Content
0

Add Timeout to loadData

Feb 28 at 05:31 AM

33

avatar image
Former Member

Hi,

Is there a way to add timeout to loadData? Like, if the data is not loaded within a specified time (say 15 seconds), an error message is displayed.

It's of the type:

EventsModel.loadData("ILLUMINATOR QUERY HERE");

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Vaibhav Maheshwari Feb 28 at 09:16 AM
2

Hi Saksham,

There is no standard event available in SAP UI5 to handle it.

But i think your requirement can be handled by the use of combination of following :

  1. setTimeout() function provided by JAVA Script
  2. requestCompleted event of model
  3. requestFailed event of model

Thanks,

Vaibhav

Share
10 |10000 characters needed characters left characters exceeded