📚 SAP Business One SDK Help

ObjectType Property
See Also  Example

Description

The name of a user-defined object attached to the form.

Property type

Read-write property

Syntax

Visual Basic
Public Property ObjectType() As String

Remarks

Relevant only for user-defined forms.

In SAP Business One, every business object has a unique ID. When you add an object using UDO, use your partner namespace as a prefix to the object ID. For more information, see Reserving a Partner Namespace. 

Example

(Visual Basic)Copy Code
creationPackage = New SAPbouiCOM.FormCreationParams()
creationPackage.FormUID = "MathExamsID"
creationPackage.Type = "SM_MathExam"
creationPackage.ObjectType = "SM_MATHGRADES" '// set the property with your user-defined object unique id
creationPackage.WindowType = SAPbouiCOM.BoFormTypes.ft_Fixed
oForm = SBO_Application.Forms.AddEx(creationPackage)

See Also