I have created a form through screen painter.I have added a dropdown in the form and I want to load items in it.I want to set itemcode as its value and itemname as its text.I as able to access this dropdown an vb.net as,
Dim ddlGroup As SAPbouiCOM.ComboBox
ddlGroup = objForm.Items.Item("11").Specific
How can I load values in this dropdown ?Datasource property is missing in for dropdown.
Rec = com.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
CQ_Frm = app.Forms.ActiveForm
qry = "Select itemcode,itemname from OITM"
oCmb = CQ_Frm.Items.Item("c_item").Specific
If oCmb.ValidValues.Count = 0 Then
For i = 0 To Rec.RecordCount - 1
If this answer is helpful give me reward points.
Thanks & Regards,