Tuesday, February 18, 2014

SAPUI5: How to show an animation of a progressing indicator While processing OData request?

 Sr. Sys Developer●Enterprise Mobility●SAP●Android●iOS●WebTop Contributor

In my SAPUI5 app, I made an animated progressing indicator. However, if I start the animation before sending the OData request or start it in the event of requestSent handler function, the animation does not work. Do I have to run the indicator in another thread, if so, how to doi it?

Answer:

In sapui5 1.19.1, the new .create() API is

     oODModel.create('myDataSet',oEntry, null, onSuccess, onError, bAsyn);

which will solve the issue by setting the last param to true. I will update my SAPUI5 plugin and try it.