Orbeon - HTTP 标头

Orbeon - HTTP 标头

问题描述:

我有一个由 Form Builder 创建的表单,我想在标签控件中显示请求标头的值,请问我可以在哪里添加 xxf:get-request-header()?它是否在控件的初始值框中,是否需要在 properties-local.xml 文件中进行配置才能使其正常工作?

I have a form created by Form Builder and I want to display the values of request headers in a label control, could I please know where to add xxf:get-request-header()? Is it on the initial value box of the control and are there configurations I need to make in the properties-local.xml file in order to make this work?

您可以使用公式,更具体地说是一个计算值来设置字段的值,但此时 Form Builder 不支持使用公式设置字段的标签.

You can use formulas, and more specifically a calculated value to set the value of a field, but at this point Form Builder doesn't support setting the label of a field using a formula.

如果可能,我建议您使用计算值值字段,并在表单中的其他位置显示该值.

If possible, I'd recommend you use a Calculated Value value field, and show the value somewhere else in the form.