【问题标题】:Orbeon Forms without wizard view没有向导视图的 Orbeon 表单
【发布时间】:2016-10-26 14:19:21
【问题描述】:

我使用 Orbeon Forms 2016.2 CE(在 catalina.out 中启动 Orbeon Forms 2016.2.201608230055 CE)。
作为一项新功能,我看到了disable the wizard view for a form 的可能性:

表单是否使用向导视图。默认情况下,发布的表单使用通过属性设置的配置。 (文档)

properties-local.xml 中的属性默认包含向导视图:

    <property  as="xs:string"
               name="oxf.fr.detail.view.appearance.*.*"
               value="wizard" />

所以在表单选项菜单中,我将“从不”设置为 wizard view 的值。
并有效地查看源中的元数据报告
&lt;wizard&gt;false&lt;/wizard&gt;

但表单仍然使用向导视图,请参阅最后的屏幕截图。

要在没有向导视图的情况下查看表单,我必须进行哪些更改?

谢谢

properties-local.xml

的内容
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors">
<property   as="xs:string"
            name="oxf.fr.detail.view.appearance.*.*"
            value="wizard" />
<property   as="xs:integer"
            name="oxf.fb.grid.max-columns"
            value="8" />

<property as="xs:string"  name="oxf.fr.persistence.provider.*.*.*"   value="postgresql"/>
<property as="xs:anyURI"  name="oxf.fr.persistence.postgresql.uri" value="/fr/service/postgresql"/>
<property as="xs:string"  name="oxf.fr.persistence.postgresql.datasource" value="postgresql"/>
<property as="xs:boolean" name="oxf.fr.persistence.postgresql.create-flat-view" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.postgresql.autosave" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.postgresql.permissions" value="true"/>
<property as="xs:boolean" name="oxf.fr.persistence.postgresq.versioning" value="true"/>

<property as="xs:boolean" name="oxf.fr.persistence.exist.active"  value="false"/>
</properties>

源中的元数据实例:

        <!-- Metadata -->
        <xf:instance xxf:readonly="true" id="fr-form-metadata" xxf:exclude-result-prefixes="#all">
            <metadata>
                <application-name>TEST</application-name>
                <form-name>test_no_wizard</form-name>
                <title xml:lang="en">test without  wizard</title>
                <description xml:lang="en"/>
                <wizard>false</wizard>
            </metadata>
        </xf:instance>

form screenshot

【问题讨论】:

  • 这绝对可以。我会试试 CE 和报告。

标签: orbeon


【解决方案1】:

我找到了一种方法来实现使每个表单都没有向导视图的目标。
我没有在properties-local.xml 中将向导视图设置为默认值,也没有对某些表单禁用它,而是采用了另一种方式。我只在需要的表单中激活了向导视图。

所以我删除了properties-local.xml 中的name="oxf.fr.detail.view.appearance.*.*" 属性。

<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:oxf="http://www.orbeon.com/oxf/processors">
<property   as="xs:integer"
            name="oxf.fb.grid.max-columns"
            value="8" />

<property as="xs:string"  name="oxf.fr.persistence.provider.*.*.*"   value="postgresql"/>

<property as="xs:boolean" name="oxf.fr.persistence.exist.active"  value="false"/>
</properties>

这样,表单默认显示为没有向导视图。对于需要向导视图的表单,我在表单设置中设置了 always,请参阅screenshot

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-11-18
    • 1970-01-01
    • 2014-07-14
    • 1970-01-01
    • 2019-12-21
    • 2014-01-04
    • 2012-05-26
    • 2012-05-17
    相关资源
    最近更新 更多