cancel
Showing results for 
Search instead for 
Did you mean: 

Show BusyIndicator in oModel Create on IE not working

Former Member
0 Kudos

Hi, I'm developing an app to IE and need to show a busyIndicator when the oModel do a create.

In Chrome it works fine but in IE the busyIndicator does not show or shows a moment.

I have the next code:

var oModel = new sap.ui.model.odata.ODataModel(sUrl);

oModel.create("/importSet", sBody, {
   success: function(oSuccess){
      sap.ui.core.BusyIndicator.hide();
      if (fnCallbackOK){
         fnCallbackOK(oSuccess);
      }
      
   },
   error: function(oError) {
      sap.ui.core.BusyIndicator.hide();
      if (fnCallbackKO){
         fnCallbackKO(oError);
      }
      
   }
});

Can someone help me?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Where/How do you call the "sap.ui.core.BusyIndicator.show();" function?

The "BusyIndicator" works, as you can see the screenshot bellow.

I tested with the browser console in a demo App: https://sapui5.hana.ondemand.com/test-resources/sap/m/demokit/helloworld/index.html.

This application using the following version:

  • SAPUI5 Distribution: 1.52.9
  • OpenUI5 version: 1.52.9
  • Loaded jQuery Version: 2.2.3
Former Member
0 Kudos

If there isn't a "oModel.create" call, there is no problem, I think the problem appear with the create call.

0 Kudos

Are you sure the call is not finished? Test it with:

console.log("success")

for example.

var oModel =newsap.ui.model.odata.ODataModel(sUrl);

oModel.create("/importSet", sBody, {
   success:function(oSuccess){
        console.log("create success");
        sap.ui.core.BusyIndicator.hide();
        if(fnCallbackOK){
           fnCallbackOK(oSuccess);
        }
    },
   error:function(oError){
         console.log("create error");
         sap.ui.core.BusyIndicator.hide();
         if(fnCallbackKO){
              fnCallbackKO(oError);
          }
    }
});

And compare UI and web-browser console log.