Skip to Content
0
Former Member
Feb 26, 2014 at 04:51 PM

Adding new row in matrix

891 Views

Dear all,

I press right-click on Journal Entry and select "Cancel" function.

SAP B1 creates a new journal entry with inverted rows registration.

Now, I added a new button in this form.

When I press the button, I need to add a new empty row in the matrix.

I use this command:

oJEMatrix.AddRow()

I also used this command:

oJEMatrix.AddRow(1, 1)

but what I obtain is a new row with the same values of the first row (it seems a duplication of the first row).

The new row-index (first left column) in the matrix has the value "1" as the first original row.

How can I add a new empty row in this matrix and refresh the matrix to update the index of each row?

Best regards

Emanuele