I saw this and was curious to try your solution for future use.
I added a standard "Add" button with script:
Table._Row.addInstance(1);
- After the button is initially clicked, it adds a new row to the table.
- When clicked again, it adds an additional row (Row) to the table as well as a new Header row, the table appears on the 2nd page, and the first page is blank.
- When clicked a 3rd time, it adds an additional row to table (table is now on page 3), the first page is blank, and the second page has nothing but a header row.
Is this the correct/intended behavior?