on 02-25-2011 7:48 AM
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
Doc Num Value
1 1 1
2 2 88
3 3 409
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi elson
You have to add the data to the matrix through coding
Thanks
Shafi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.