Afternoon, with the item list on a transaction, is anyone able to suggest an approach to split the list in to tables of not more than 10 rows per table?
So imagine that you have 23 items, I need to split this in to 3 tables- 10 rows, 10 rows, 3 rows.
In addition to this I need the last table to actually put in 7 blank rows to ensure that all the tables are 10 rows total.
So In reality that would be 3 tables of 10 rows
I have thought of a few ways of approaching this but wonder if I'm over complicating things.
I've considered asking the client what the max expected items might be and where a header row is needed checking the index, using modulus to ascertain the number of tables and number of rows etc.
I appreciate this is quite a broad question but if anyone has done something similar I'd appreciate some direction. Thanks!