📚 SAP Business One SDK Help

ResourceData Property
See Also  Example

Description

Resource information about system forms and items.

Property type

Read-only property

Syntax

Visual Basic
Public Property ResourceData() As ResourceData

Remarks

You can get resource information only for system forms and items.

You can get resource information only in the language in which the application is set.

Example

Getting form information (Visual Basic)Copy Code
Private WithEvents SBO_Application As SAPbouiCOM.Application
Public Sub TestInfo()
    'Get Resource Data
     Dim resource A s SAPbouiCOM.ResourceData
     resource = SBO_Application.ResourceData
     Dim oFormType As String = "149"

    'Get FormInfo
     Dim oFormInfo As SAPbouiCOM.FormInfo
     oFormInfo = resource .GetFormInfo(oFormType)

    'Get properties from FormInfo
     Dim title As String = oFormInfo.Title

    'Get ItemInfo
     Dim itemUid As String = "38"
     Dim colUID As String = "3"
     Dim oItemInfo As SAPbouiCOM.ItemInfo = oFormInfo.GetItemInfo(itemUid, colUID)

    'Get ItemInfo property
     Dim oAlias As String = oItemInfo.Alias
End Sub

See Also