Skip to Content
0
Jun 24, 2019 at 04:11 PM

SAPUI5 Control invalidate function not working?

768 Views Last edit Jun 24, 2019 at 04:21 PM 3 rev

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.