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

BusyDialog not showing

$
0
0

I'm working on sapui5 application. I want to block UI form users during ajax requests. I added the following code:

 

 

 var dialog = new sap.m.BusyDialog({       text : this.languageModel.getModelProperty("BUSY_DIALOG_FETCHING_DATA"),       title : this.languageModel.getModelProperty("BUSY_DIALOG_WAIT")   });  var that = this;  jQuery.ajaxSetup({       beforeSend : function() {            console.log("open");            dialog = (dialog) ? dialog : new sap.m.BusyDialog({                 text : that.languageModel.getModelProperty("BUSY_DIALOG_FETCHING_DATA"),                 title : that.languageModel.getModelProperty("BUSY_DIALOG_WAIT")             });            dialog.open();       },       complete : function() {            console.log("close");            dialog.close();        }   });

In console I get good results, and while debugging I can see dialogs, but in normal mode (without any breakpoints) dialogs don't appear at all. Any clue?


Viewing all articles
Browse latest Browse all 6178

Latest Images

Trending Articles



Latest Images

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