Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing full articles (6178 articles)
Browse article index
↧

SAPUI5: How to make an asynchronous OData .create() request?

$
0
0

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);

↧

Viewing full articles (6178 articles)
Browse article index

Latest Images

Trending Articles



Latest Images