可重复部分中重复的 Orbeon 索引 [英] Orbeon index of repeat in repeatable section

查看:56
本文介绍了可重复部分中重复的 Orbeon 索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有可重复的部分(不是转发器),里面有输出字段.如何将重复索引放入此输出?我想用当前迭代的索引绑定输出.例如,如果我添加 5 个重复,我想输出显示它们的索引:1,2,3,4,5.我知道有像 xxf:index 这样的函数,但它们只能在中继器中工作.

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.

推荐答案

不明显,因为 xxf:repeat-position() 函数仅在 UI 中有效,并且计算值在模型中有效仅.

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

这篇关于可重复部分中重复的 Orbeon 索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆