Orbeon 表单 - 查找当前 Document_id [英] Orbeon Forms - Find current Document_id

查看:54
本文介绍了Orbeon 表单 - 查找当前 Document_id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个显示当前 document_id 的文本框.是否有 XPath 表达式来获得它?

I want to have a text box have the current document_id displayed. Is there an XPath expression to get that?

推荐答案

以下 XPath 返回当前文档 ID,与您在编辑页面上的 URL 上看到的相同,您通过单击摘要页面中的表单实例获得.

The following XPath returns the current document id, the same that you see on the URL on the edit page you get by clicking on a form instance in the summary page.

xxforms:instance('fr-parameters-instance')/document

但是请注意,如果您在计算表达式中使用它,对于新表单,在表单中完成更改之前不会显示该值(例如,用户在字段中输入一个值).

Note however that if you use this in a calculated expression, for new forms, the value won't show until a change was done in the form (e.g. users entered a value in a field).

这篇关于Orbeon 表单 - 查找当前 Document_id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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