Skip to Content
avatar image
Former Member

Show BusyIndicator in oModel Create on IE not working

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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
    Add comment
    10|10000 characters needed characters exceeded

    • 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.