title: How to make an asynchronous OData .create() request?
body: <p>In my SAPUI5 app, I have an animation made by progress indicator which should be running while waiting for the response of an OData model <code>.create()</code> service (because it takes a while to get the response back to the UI). </p>
  
  <p>The issue is that the animation stops after the <code>.create()</code> request is sent.</p>
  
  <p>Does anyone know how to make an async <code>.create()</code> OData request?</p>
  
  <p>My code looks like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>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);  //From here the animation stops
  </code></pre>