📚 SAP Business One SDK Help

FormPreferencesService Object
See Also  Members 

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:

  1. Connect to a valid company.
  2. Call the CompanyService, which is the main DI service that you must call before using any other service.
  3. Call the method GetBusinessService for the required service.
  4. Create an empty data structure related to the required service.
    - or-
    You can create a data structure from an XML file or XML string.
  5. Set the required properties of the specified data structure.
  6. Call the required service method.

To display the form in the application:

  1. Select a form.
  2. From the main menu, select Tools --> Form Settings.

Mandatory properties:

  1. FormID and User (ColumnsPreferencesParams)
  2. Column, ItemNumber and Width (ColumnPreferences).

Example

See Also