Description
Creates a data structure from a specified XML string.
Syntax
| Visual Basic |
|---|
Public Function GetDataInterfaceFromXMLString( _
   ByVal bstrXMLString As String _
) As Object |
Parameters
Example
Shows how to get a Columns Preferences from an XML string
| GetDataInterfaceFromXMLString (Visual Basic) | Copy Code |
|---|
Dim oCmpSrv As SAPbobsCOM.CompanyService
Dim oFormPreferencesService As FormPreferencesService
Dim oColsPreferences As ColumnsPreferences
Dim oColPreferencesParams As ColumnsPreferencesParams
Dim oColsPreferencesXmlStr As ColumnsPreferences
Dim sColsPreferencesStr As String
oCmpSrv = oCompany.GetCompanyService
oFormPreferencesService = oCmpSrv.GetBusinessService(ServiceTypes.FormPreferencesService)
oColPreferencesParams = oFormPreferencesService.GetDataInterface(FormPreferencesServiceDataInterfaces.fpsdiColumnsPreferencesParams)
oColPreferencesParams.FormID = "133"
oColPreferencesParams.User = 1
oColsPreferences = oFormPreferencesService.GetColumnsPreferences(oColPreferencesParams)
sColsPreferencesStr = oColsPreferences.ToXMLString()
oColsPreferencesXmlStr = oFormPreferencesService.GetDataInterfaceFromXMLString(sColsPreferencesStr) |
|
See Also