Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 12 at 02:27 PM

    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

    Add comment
    10|10000 characters needed characters exceeded