📚 SAP Business One SDK Help

SerializeAsXML Method
See Also  Example
matrixXmlSelect
Specifies the XML to return.

Description

Returns information about the matrix (the data and metadata) in XML format.

The schema of the XML is available using the GetSchema method.

Syntax

Visual Basic
Public Function SerializeAsXML( _
   ByVal matrixXmlSelect As BoMatrixXmlSelect _
) As String

Parameters

matrixXmlSelect
ValueDescription
mxs_AllData and metadata of the matrix is returned.
mxs_MetaDataOnly the metadata of the matrix is returned.
Specifies the XML to return.

Example

The following gets the XML from the matrix on the marketing document form (the example assumes the form is the active form).

C#Copy Code
SAPbouiCOM.Matrix matrix; 
SAPbouiCOM.Form form = SBO_Application.Forms.ActiveForm; 
SAPbouiCOM.Item item = form.Items.Item("38"); 
 
matrix = (SAPbouiCOM.Matrix)item.Specific; 
             
String matrixXml = matrix.SerializeAsXML(SAPbouiCOM.BoMatrixXmlSelect.mxs_All); 

See Also