We have a dropdown (sourced from a data page) on user portal homepage (in class Data-Portal). We have a requirement that when a user selects a value in the dropdown, this value has to be retained even when that user logs off and logs in back to the portal, or if he uses some other functionality in the application and comes back to this dropdown.
We can achieve this by saving this value in some database table on change of this dropdown. But is there a better way to achieve this?
If you treat this like any other property you want to save and persist, you should map it to a property, and then make sure you explicitly save the WO before logging off or changing screens. Often the dirty warning/prompt will help customers remember to save their work in these cases.