Skip to Content
0

Show BusyIndicator in oModel Create on IE not working

Apr 23 at 10:14 AM

29

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Apr 23 at 11:19 AM
0

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

busyindicator.jpg (87.0 kB)
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Former Member

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.

0