on 03-28-2010 2:37 PM
Dear All,
I want to Add multiple rows at the same time in a matrix at the same time .My problem here is When i add the New rows to the matrix already added data need to remail in the matrix , I cant put Matrix.Clear or Datasource.clear.
When i add multiple rows previous row details is duplicated to next rows how to avoid thus
Mohamed
Hi,
try this,
If (pVal.ItemUID = "BTNUID") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
Dim fr As SAPbouiCOM.Form
Dim sel As Integer
Dim oMatrix1 As SAPbouiCOM.Matrix
fr = SBO_Application.Forms.Item(FormUID)
oMatrix1 = fr.Items.Item("mtx_136").Specific
fr.DataSources.DBDataSources.Item(2).Clear()
sel = oMatrix1.GetNextSelectedRow
oMatrix1.AddRow(1, sel)
End If
"mtx_136" is your matrix ID
and "BTNUID" is your button ID
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.