Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

sap.m.BusyDialog is not rendered on the Screen

$
0
0

Hi,

    I am trying to show a Busy Dialog to the user when I am fetching data from the SAP HANA Server. On the click of a button, I am executing 4-5 JSONModel loadData() methods. All of these methods are synchronous calls.

 

var dataLoaderBusyIndicator = new sap.m.BusyDialog("dataLoaderBusyIndicator",                                                                     {                                                                        showCancelButton :false,                                                                        title : "Please Wait..",                                                                        text : "Fetching the Data"                                                                    });
dataLoaderBusyIndicator.open();
myFirstJSONDataModel.loadData(a.b.c,      {"abc":123}, false);
mySecondJSONDataModel.loadData(d.e.f,  {"abc":123}, false);
myThirdJSONDataModel.loadData(g.h.i,      {"abc":123}, false);
myFourthJSONDataModel.loadData(j.k.l,   {"abc":123}, false);
dataLoaderBusyIndicator.close();

 

The BusyDialog does not open up on the screen. The funny part is that if I put a breakpoint at the line number 08 and then execute the application, the BusyDialog box opens up properly. Once I remove the break point BusyDialog does not get displayed.

 

I tried putting the dataLoaderBusyIndicator.open(); and dataLoaderBusyIndicator.close(); methods inside the RequestSent and RequestCompleted methods of the JSONDataModel even that did not work. The BusyDialog was not rendered.

 

So my question is how do I make the BusyDialog appear on the screen?

 

"a.b.c", "d.e.f", "g.h.i" and "j.k.l" are all Service calls to XSJS files available in the SAP HANA Server. From the Logs I can see that the total time taken for the 4 loadData methods is 5068 ms.

I am running the application on SAPUI5 1.12.5. I am trying to view this in a Chrome Browser  29.0.1547.62 m with a Screen resolution set to 1024X768 in the Device Metrics of Developer Tools. The behaviour is also observed running under a iOS Simulator in a Macintosh desktop.

 

________________________

Have a nice day

Amardeep Verma


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>