Skip to Content

SAPUI5 - How to refresh all the models(JSONModel) binding?

Dec 18, 2016 at 04:26 AM


avatar image

I'm using JSONModel as the data model in my SAPUI5 application. I know I could use controlA.getModel().refresh() to refresh the model in control A, but how can I refresh all the models binding in current application?

In my case I have a List A, and the list item of it is CustomListItem which has List B as aggregation. When I delete the first item in A and refresh the model of A, it looks well because the old second item becomes the first. But the in its List B, the binding path is still /A/1/.... but not becomes /A/0. How can I refresh the models in all controls?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers