cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a drop down to a system grid

Former Member
0 Kudos

Hi All

Is it possible to add a drop down to a grid on the system form (Sales Order), using the SDK (in code, VB.NET.

Regards John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks Rasmus.

Do you have sample code to do this.

Thanks John

Former Member
0 Kudos

Hi John,

        Dim oForm As SAPbouiCOM.Form
        Dim oMatrix As SAPbouiCOM.Matrix
        Dim oColumn As SAPbouiCOM.Column
        oForm = oApplication.Forms.ActiveForm
        oMatrix = oForm.Items.Item("Matrix").Specific
        oColumn = oMatrix.Columns.Add("MyColumn", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
        oColumn.DataBind.SetBound(True, "Table", "Field")
        oColumn.ValidValues.Add("Val1", "Value1")
        etc...

Hope it helps,

Adele

Answers (1)

Answers (1)

rasmuswulff_jensen
Active Contributor
0 Kudos

Yes. Add a column of type Combobox a tie it to a datasource with valid values