📚 SAP Business One SDK Help

LoadBatchActions Method
See Also  Example
XmlStr

The XML that specifies the actions to perform

Description

Loads XML in order to create forms, items, menus, and matrix columns in a single API call.

Define the forms, items, menus, and matrix columns by created an XML file based on the schema described in Adding Forms with XML.

Syntax

Visual Basic
Public Sub LoadBatchActions( _
   ByRef XmlStr As String _
) 

Parameters

XmlStr

The XML that specifies the actions to perform

Remarks

The UI API currently supports adding forms, items, menus, and matrix columns in batch operation. 

Example

Loading a form from XML (Visual Basic)Copy Code
Private Sub LoadFromXML(FileName As String)
'//****************************************************************************
'// The sample assumes the directory "C:\Program Files\SAP Manage\XML" contains
'// proper XML file and a reference to Microsoft XML was added to the project
'//****************************************************************************

    Dim oXMLDoc1 As MSXML2.DOMDocument
    Set oXMLDoc1 = New MSXML2.DOMDocument

    '// Load the content of the XML File
    oXMLDoc1.Load ("C:\Program Files\SAP Manage\XML\" + FileName)

    '// Load the form into SAP Business One
    SBO_Application.LoadBatchActions oXMLDoc1.xml
End Sub

See Also