Description
Retrieves the column preferences of a specified form for a specified user.
Syntax
Parameters
Example
Shows how to get Columns Preferences from an XML file
| GetDataInterfaceFromXMLFile (Visual Basic) | Copy Code |
|---|
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oFormPreferencesService As FormPreferencesService
Dim oColsPreferences As ColumnsPreferences
Dim oColPreferencesParams As ColumnsPreferencesParams
Dim oColsPreferencesXmlFile As ColumnsPreferences
oCmpSrv = oCompany.GetCompanyService
oFormPreferencesService = oCmpSrv.GetBusinessService(ServiceTypes.FormPreferencesService)
oColPreferencesParams = oFormPreferencesService.GetDataInterface(FormPreferencesServiceDataInterfaces.fpsdiColumnsPreferencesParams)
oColPreferencesParams.FormID = "133"
oColPreferencesParams.User = 1
oColsPreferences = oFormPreferencesService.GetColumnsPreferences(oColPreferencesParams)
oColsPreferences.ToXMLFile("c:\ColumnPreferences.xml")
oColsPreferencesXmlFile = oFormPreferencesService.GetDataInterfaceFromXMLFile("c:\ColumnPreferences.xml") |
|
Example
See Also