When the ScreenFragment ID changes (becomes other than @UiController (“foo”)) then it is not possible to reset the settings for that ScreenFragmen using “Reset settings of screens”.
Could you explain how we can reset the settings for all ScreenFragmen at once, including those with dynamically changed IDs, using the standard “Reset settings of screens” menu item?
Hi,
Here is implementation of the “Reset settings of screens” action:
com.haulmont.cuba.security.app.UserSettingServiceBean#deleteScreenSettings
Speaking shortly, there is a persistent entity: com.haulmont.cuba.security.entity.UserSetting
It stores various user settings. Some of these settings are screen settings, but there can be other settings as well.
You can examine contents of these settings and find out some ad-hoc rules how to clean all fragments including those not registered with static ID.