Skip to main content
The following example shows how to set preferences for the visual section of the diary.

Code

Walk-through

Here we create an instance of the Preference class and set certain specifications of it and have set the RawValue of the Visual section and the NSundayFirstDay key as false so that the Sunday will be displayed as the first day of the week. Through the PreferenceAgent, we can save these changes in the database. Since the PreferenceLevel is set to the Database level, these changes are visible to all the users. The prefdesc table holds the names and descriptions of the preferences visible in SuperOffice. The preference values are stored in the userpreference table.