0
votes

In my SAPUI5 application, I am facing a an issue with the refresh. There are multiple views like Orders, OrderInfo, OrderChange, OrderClose.

In the first view Orders, I have IconTabFilter to filter different types of Orders and I am using setCount to show the number in the IconTab Filter.

The problem is when I am on screen OrderClose where I close my order and I come back to the main view Orders using navigation, it shows me 1 order less but the IconTabFilter count does not change unless I do model.refresh() and model.UpdateBinding().

Ideally i want the count to change the moment I come to the view Orders from view OrderClose with updated count.

Can anyone help me out ?

BR Nilesh

1

1 Answers

0
votes

Re-rendering control will solve this issue,instead of refreshing model or bindings.

Invoke rerender on control to be updated.

This triggers immediate rerendering of its parent and thus of itself and its children.