Orbeon index of repeat in repeatable section

杀马特。学长 韩版系。学妹 提交于 2020-01-11 11:18:11

问题


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.


回答1:


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()"/>



来源:https://stackoverflow.com/questions/27607637/orbeon-index-of-repeat-in-repeatable-section

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!