


How can I identify the first and last row in a repeatable subform? I’m using instanceManager and managed to calculate the total number of rows using FormCalc, however, I don’t know how to identify the first and last row.
This is what I need to do:
The repeatable subform contains a checkbox. If this checkbox is checked in the first and/or last row (of the repeatable subform), then I need a calculation to be performed, otherwise, this calculation should not occur.
Thanks for your help!
Views
Replies
Total Likes
Hi,
the first row always has the instance number 0, such as "Table1.Row1[0]" or simply "Table1.Row1".
The last row can be addressed by instance counter "Table1.Row1[Table1.Row1.instanceManager.count - 1]" or the short way "Table1.Row1[Table1._Row1.count - 1]".
Views
Replies
Total Likes
hello there! thank you so much!!!! However, I’m trying to apply this same code to a second object that is performing an additional calculation and I’m having A LOT of trouble and would LOVE your help or anyone else's help.
My calculations are dependent on:
1. If a checkbox is checked
2. The number of days entered
3. The number of rows that are added
Basically, if the first row is the ONLY row, then it can contain three possible calculations
However, if more than one row is selected, then the first and the last row would contain the following possible calculations:
The middle rows are always going to contain one possible calculation of…perDiem.rawValue * Days.rawValue
Views
Replies
Total Likes