on ‎2019 Jun 24 5:11 PM
In my application I have a sap.m.List control where I defined a Composite binding for the list item property. The composite binding references 2 different models, one is OData and the other is JSONModel. Also this Composite binding has a formatter function. It works fine when data are read for the first time
At some point I change data in the JSON model and I was expecting that the control should be updated (rerendered) automatically. And it odes not work that way.
I also tried calling List.invalidate() and then I tried to refresh items aggregation binding - no effect whatsoever. Formatter function is not called, the control is not rendered after JSON model change.
How can I force a control to rerender itself other than call invalidate? I do remember it worked..
I use SAPUI5 1.64.3
What am I missing?
Disclaimer: Yes, I know invalidate is a protected function. Thank you.
Request clarification before answering.
Hi.
It is a bit late, but I think this is solved with a refresh of the Json Model.
More or less.
this.getView().getModel("name_json_model").refresh();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
code.......please.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.