Skip to Content
0
Former Member
May 09, 2011 at 10:31 AM

Binding column matrix to field of user table

450 Views

Dear all,

I created a new user table "CONTR_EXT".

It has 2 fields:

Contr_No: unique number of associated contract

Type: my special numeric field

I added a new folder in the Service Contract form.

I 'd like to add a matrix in this new folder.

As first step, the matrix should have only one column: "type" bound to the CONTR_EXT.Type field.

What SDK commands do I need to use to create the matrix and in particular to add the type column bound to the user table fields.

For the moment I added this code:

        ...
        ...
        oMatrix = oItem.Specific
        oColumns = oMatrix.Columns

        '//***********************************
        '// Adding Column items to the matrix
        '//***********************************

        oColumn = oColumns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
        oColumn.TitleObject.Caption = "#"
        oColumn.Width = 30
        oColumn.Editable = False

        '// Add a column for BP Card Code
        oColumn = oColumns.Add("U_Type", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
        oColumn.TitleObject.Caption = "Type"
        oColumn.Width = 120
        oColumn.Editable = True
        ...
        ...
        

Can someone help me please?

Following the SDK SAP B1 samples I cannot find a solution.

Regards

Emanuele