Hi all. In my application I need to store some configuration information (e.g.: default folder where to store files, default folder from where to read csv files, set defaults for options, ...)
This data can indeed be handled using a specific form to input/save/delete this data, stored in a one-row table of the database.
But we all know that configuration processes and data access have some special use cases: admin privileges needed, hierarchical grouping of related config settings, storing on db (so on the server side) or in a text file (on the client side)...
Complexity we can be see for example in the gui widgets and load/store mechanics that is available in the android platform.
So, I'm asking if there is any specific way or best practice to input/save/retrieve configuration information in the scout platform
you might want to subclass org.eclipse.scout.commons.prefs.AbstractPreferences and create your specific implementation. Your own IUserPreferenceStorageService implementation should in its loadPreferences() method then load such instances.
Storing preferences in the database is recommended. If you ever need to migrate some preferences, you are in trouble if they are stored on the client. Since there will potentially be a lot of UI preference changes (column width adjustments e.g.), pushing accumulated changes async to the database periodically is probably a good idea.