I am trying to do a calculation within a repeating table to get a running total of a field within each row and then to do the same thing for each repeating table.
I have tried the suggestions I have already been able to find on the internet but keep getting errors about unassigned values which make no sense.
Am I correct that if I want to know how many tables there in my document i would enter something like
int tabcount = Context.Field("Table1").Items.Count;
where Table1 is the name given to each repeating table.
How would I then refer to each of the rows within each table?