Skip to Content

Add Timeout to loadData

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");

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 28 at 09:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded