Hi,
In my sapui5 app, I have an animation made by progress indicator which is running while waiting for the response of an OData model .create() service. However, the animation stops after the request is sent.
Does anyone know how to make an async .create() OData request?
Thanks a lot!
My code look like this:
oODModel = new sap.ui.model.odata.ODataModel(myUrl);
oEntry = myNewDataEntry;
myAnimationIndicator.start(); //animation starts to run
var onSuccess = function(){myAnimationIndicator.stop();};
var onError = function(){myAnimationIndicator.stop();};
oODModel.create('myDataSet',oEntry, null, onSuccess, onError);