私の SAPUI5 アプリでは、OData モデル.create()
サービスの応答を待っている間 (UI に応答を返すのに時間がかかるため)、進行状況インジケーターによって作成されたアニメーションを実行する必要があります。
.create()
問題は、リクエストの送信後にアニメーションが停止することです。
.create()
非同期OData リクエストを作成する方法を知っている人はいますか?
私のコードは次のようになります。
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