cancel
Showing results for 
Search instead for 
Did you mean: 

how to add row to matrix in between the rows using sap b1 sdk

narasimha_chary2
Explorer
0 Kudos
1,322

how to add row to matrix in between the rows using sap b1 sdk

Accepted Solutions (0)

Answers (1)

Answers (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi narasimha chary,

If it is a System Form, you can add the line via the right-click menu item "Add Row" , which is well handled by business logic. Here is how to use it:

oMatrix.Columns.Item(3).Cells.Item(2).Click(); --column number and row number at system info
SBO_Application.ActivateMenuItem("1292");      --menu id for "Add Row"

If it is a User Form, you can use the AddRow() method which accepts the parameters as below:

RowCount
The number of rows to add (default is 1)
Position
The position of the new rows (0-based; default is -1, meaning append row to the end)

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP Business One Support