Skip to Content
avatar image
Former Member

Problem with busyDialog

Hi, I hope can you help me,

i'm working with sap.m.BusyDialog(), the dialog is displayed, but ut it takes a long time to show up.

for example:

1. onValidation: function(){   
2.    Var oBusyLogin = new sap.m.BusyDialog({
3. 		    text: 'Verifying credentials...',
4. 		    busyIndicatorDelay : 0,
5.    });

6.;//Should be shown at this point

7.    // call loadData method of modeljson1

8.    // call loadData method of modeljson2
9.    // call loadData method of modeljson3

10.   //The dialogue is just shown at this point
11.   oControllerLogin.oBusyLogin.close();
12.   this.onNavToHome();

From 7 to 9, there is a waiting time, so the page gives the feeling of not working

What I want is to show the busydialog just run the method validate, not at the end of the method.

I hope you can give me some suggestion.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 30, 2017 at 12:07 AM


    2.load data aysnc the success or failure of loading data method, close the dialog

    js is single thread.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Apparently, when you specified load data async, you solved the problem. Thank you very much Jun Wu.