on 04-23-2018 11:14 AM
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.
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:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.