Group repeat number in calc

Trembowiecki

Active Member
Hi,

in my repeat group (renedered as table) I have a calc element and I want it to return repeat number of the group +1, like:
group_repeat_0 -> calc element = 'this is row 1'
group_repeat_1 -> calc element = 'this is row 2'

and so on. How can I fetch current repeat number in calc?

Cheers,

Olek
 
Thank you for your tip, however I know this tutorial very well and this is not what I'm looking for. I'm not looking for a specific group iteration to address it, I'm looking for a way to fetch current repeat number for each group iteration. You know, the PHP equivalent of JavaScript 'this.getRepeatNum()'. I could work around my problem with JavaScript, however PHP calc element would be way more elegant.
 
Try with placeholder {i} (this can be used in the repeat group intro, so may be also in general)
 
Thank you guys! I've tested '{i}' at the very beginning - unfortunately no luck in CALC. Hugh's solution is a bit overkill for me, as I just want to have a label with repeat number at the beginning of each repeated row. I guess I'll stick to JS then. Once again - THANKS!
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top