Dear All,
Today , We will see, How to Add Form through SDK
Today , We will see, How to Add Form through SDK
Public Sub AddForm(ByVal SBO_Application As SAPbouiCOM.Application, ByVal aForm As String, ByVal strUniqueID As String, ByVal strFormType As String, ByVal FormXml As String)
Dim oForm As SAPbouiCOM.Form = Nothing
Dim creationPackage As SAPbouiCOM.FormCreationParams = Nothing
Try
creationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
creationPackage.UniqueID = strUniqueID
creationPackage.FormType = strFormType
creationPackage.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
creationPackage.XmlData = FormXml
oForm = SBO_Application.Forms.AddEx(creationPackage)
Catch ex As Exception
Finally
If oForm IsNot Nothing Then
oForm = Nothing
End If
If creationPackage IsNot Nothing Then
creationPackage = Nothing
End If
End Try
End Sub