cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix : how add number in column (V_-1)

Former Member
0 Kudos

hi,

i have created a matrix using screen painter but how can i add number under the # column (V_-1) ? do it in screen painter or coding ? As i notice, by the default, the number is increment as the record increase .

e.g in the Matrix (it is inside a new screen)

V_-1 V_0 V_1

  1. Doc Num Value

1 1 1

2 2 88

3 3 409

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

you can refer link:

thanks

H2

former_member689126
Active Contributor
0 Kudos

Hi

You have to write code for this , each time when you add or delete row you have to assign the row no through code.

Dim oMatrix As SAPbouiCOM.Matrix = form.Items.Item("matrix").Specific
                    Dim oEdit As SAPbouiCOM.EditText

                    For iRowCount As Integer = 1 To oMatrix.RowCount

                        oEdit = oMatrix.GetCellSpecific("V_-1", iRowCount)
                        Try
                            oEdit.Value = iRowCount.ToString.Trim
                        Catch ex As Exception

                        End Try

                       ... Or

                        form.DataSources.UserDataSources.Item("RowNo").ValueEx = iRowCount.ToString

                    Next

form.DataSources.UserDataSources.Item("RowNo").ValueEx = iRowCount.ToString for this to work you have to add a user data source ("RowNo") to your form and bind it with your column

Hope this helps you

Regards

Arun

Former Member
0 Kudos

Hi elson

You have to add the data to the matrix through coding

Thanks

Shafi