Skip to Content
0
Former Member
Aug 17, 2011 at 07:28 AM

ComboBox - DataBind

639 Views

Hi,

i will bind a DataTable ("OHEM") Column (firstName) on a Combobox.

I get no Error, but the Combobox is empty.

oForm.DataSources.DBDataSources.Add("OHEM");
            oItem = oForm.Items.Add("nAG_mitarb", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX);
            oItem.Top = 50;
            oItem.Left = 380;
            oItem.Width = 80;
            oCombobox = (SAPbouiCOM.ComboBox)oItem.Specific;
            oCombobox.DataBind.SetBound(true, "OHEM", "firstName");

What´s wrong?

Thank u!

Regards

Dhomas