ui5-validator icon indicating copy to clipboard operation
ui5-validator copied to clipboard

The state remain when we use it with worklist or master-detail pages

Open mjza opened this issue 7 years ago • 1 comments

When I use this class with master-details applications if I set the valuestate of one element to error, and then return it back to a None. Then visit another object and go back to the previous object, then I will see the Error state again on that object.

It seems it has a problem with bound items

mjza avatar Apr 11 '18 08:04 mjza

Hi,

There is a workaround for that. Value states and Message Manager messages can be cleared by calling the following methods. This cleanup can be called each time when navigating to/from the view containing form.

validator.clearValueState(); sap.ui.getCore().getMessageManager().removeAllMessages();

Regards, Vlad

vpasedko avatar Aug 03 '20 20:08 vpasedko