biuan SAP® BUSINESS ONE SDK
API Service Call Status Service / Get Data Interface From XML String

Description

Creates an object from XML.

Syntax

Visual Basic
Public Function GetDataInterfaceFromXMLString( _
   ByVal bstrXMLString As String _
) As Object

Parameters

bstrXMLString

The XML with which to create the object.

Remarks

The XML can be created using an object's ToXMLString method.

The XML defines the object and its data.

Example

Create object from XML string (C#)
public void AddFromXMLString(Hashtable Properties) { //Store GeneralData object as XML SAPbobsCOM.GeneralService oGeneralService; SAPbobsCOM.GeneralData oGeneralData; SAPbobsCOM.GeneralData oGeneralDataXML; string XMLString; oGeneralService = cConnection.Instance.DICompanyService.GetGeneralService(UDOID); oGeneralData = (GeneralData)oGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralData); foreach (DictionaryEntry Pair in Properties) oGeneralData.SetProperty(Pair.Key.ToString(), Pair.Value.ToString()); XMLString = oGeneralData.ToXMLString(); //Retrieve XML string and create GeneralData object from the XML oGeneralDataXML = (GeneralData)oGeneralService.GetDataInterfaceFromXMLString(XMLString); oGeneralService.Add(oGeneralDataXML); }

See Also

Related information


Service Call Status ServiceCallStatus Object· Table: OSCS
Represents a service call status. Source table: OSCS Mandatory properties: Name
   Parent: Service Call Status Service ServiceCallStatusService Service· Table: OSCS

Service Call Status Params Collection ServiceCallStatusParamsCollection Collection
A collection of ServiceCallStatusParams objects.
   Parent: Service Call Status Service ServiceCallStatusService Service· Table: OSCS

Service Call Status Service Data Interfaces ServiceCallStatusServiceDataInterfaces Enumeration
ServiceCallStatusService data interfaces.
   Parent: Service Call Status Service ServiceCallStatusService Service· Table: OSCS


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates