📚 SAP Business One SDK Help

GetSchema Method
See Also  Example

Description

Returns the schema for the XML that is returned by the SerializeAsXML method.

Syntax

Visual Basic
Public Function GetSchema() As String

Remarks

The XML schema is the same for all matrix objects.

You can use the schema to create objects for handling the data from a matrix, with the help of the XML Schema Definition command line tool (xsd.exe), which is part of the .NET Framework. 

Example

The following gets the XML schema for matrix objects by using an object that represents 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 matrixSchemaXML = matrix.GetSchema();

See Also