cancel
Showing results for 
Search instead for 
Did you mean: 

ChooseFromList

Former Member
0 Kudos
42

Hi

  I have 1 UDF field i want to attach ChooseFromList to it which should display Sales Employess list.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

pedro_magueija
Active Contributor
0 Kudos

Hi Sunny,

Add the ChooseFromList and then bind the item with it.

        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection

        oCFLs = oForm.ChooseFromLists

        Dim oCFL As SAPbouiCOM.ChooseFromList

        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams

        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)

        oCFLCreationParams.MultiSelection = False

        oCFLCreationParams.ObjectType = "171"

        oCFLCreationParams.UniqueID = "CFL1"

        oCFL = oCFLs.Add(oCFLCreationParams)

        Dim oItem As SAPbouiCOM.Item

        oItem = oForm.Items.Item("MyEditText")

        Dim oEdit As SAPbouiCOM.EditText

        oEdit = oItem.Specific

        oEdit.ChooseFromListUID = oCFL.UniqueID

You can also find more examples in the SDK Help Center.

Good luck.

Best regards,

Pedro Magueija