cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPUI5 Control invalidate function not working?

sergey_korolev
Active Contributor
0 Likes
1,502

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.

View Entire Topic
Ricardo___
Participant
0 Likes

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();