Question about sec_user_setting

I’ve recently found a record in sec_user_setting where CREATED_BY = ‘admin’ and NAME = ‘userDefaultScreen’. The value of this record is storing a default page of the first app I’ve worked on.

Now I’m working on another app using the same db and I found that my new default page would not load. After checking the db, I found the record above is making my new app try to load the older default page. Once I deleted the record, the problem is resolved.

I’m curious about when the application writes to sec_user_setting. What is the significance of this userDefaultScreen record (as I don’t remember setting default page except in web-app properties file), as well as the side effect of deleting it.

This setting is saved if a user changes the “Default screen” parameter on the “Settings” screen.

You can disable changing this parameter using the cuba.web.userCanChooseDefaultScreen application property.

1 Like

I see, I must have saved the settings without realising. Thanks for the clear explanation!