user2539823
user2539823

Reputation: 103

Orbeon index of repeat in repeatable section

I have repeatable section (not repeater) and inside it I have ouput field. How can I put the repeat index to this output? I want to bind outputs with index of current iteration. For example if I add 5 repeats I want to outputs show their index: 1,2,3,4,5. I know that there is functions like xxf:index, but they work only in repeater.

Upvotes: 1

Views: 463

Answers (1)

ebruchez
ebruchez

Reputation: 7857

Not obvious because the xxf:repeat-position() function works in the UI only, and the calculated values work in the model only.

You could make changes by hand and write:

<xf:output value="xxf:repeat-position()"/>

Upvotes: 1

Related Questions