Description
The FormPreferencesService manages the display preferences of a specified form for a specified user.
Form preferences include settings such as, column width, visual order of columns, and more.
Object Model
Remarks
To use the service:
- Connect to a valid company.
- Call the CompanyService, which is the main DI service that you must call before using any other service.
- Call the method GetBusinessService for the required service.
- Create an empty data structure related to the required service.
- or-
You can create a data structure from an XML file or XML string. - Set the required properties of the specified data structure.
- Call the required service method.
To display the form in the application:
- Select a form.
- From the main menu, select Tools --> Form Settings.
Mandatory properties:
- FormID and User (ColumnsPreferencesParams)
- Column, ItemNumber and Width (ColumnPreferences).
Example
GetColumnsPreferences Method
| GetDataInterfaceFromXMLString Method
| UpdateColumnsPreferences Method