【问题标题】:Orbeon Send Button With ParametersOrbeon 带参数的发送按钮
【发布时间】:2015-03-04 00:34:57
【问题描述】:

我已经寻找了一段时间,但找不到一个解决方案,当我按下保存最终按钮时,我可以将请求参数从我的表单发送到外部 web 应用程序。

这是迄今为止我在 properties-local.xml 中的内容...

<property as="xs:string" name="oxf.fr.detail.send.success.uri.*.*"
value="http://localhost:8080/monnieapp/?id={xxf:get-request-parameter('doc-id')}"/>

<property
as="xs:string"
name="oxf.fr.detail.process.save-final.*.*"
value='require-uploads
         then require-valid
         then save
         then send(property = "oxf.fr.detail.send.success", uri = "http://localhost:8080/monnieapp/")
         then success-message("save-success")
         recover error-message("database-error")'/>

我尝试过更改值和属性名称等,但是当我尝试保存时不断收到以下消息...

An error has occurred while processing the request.

关于如何做到这一点的任何建议?

谢谢

【问题讨论】:

    标签: parameters orbeon


    【解决方案1】:

    如果您使用的是 4.7.0,请尝试 4.7.1,this issue 已修复。对于 4.7.1,以下应该可以工作:

    <property as="xs:string" name="oxf.fr.detail.process.save-final.*.*">
        require-uploads
        then require-valid
        then save
        then send(uri = "http://localhost:8080/monnieapp/?id={xxf:get-request-parameter('doc-id')}")
        then success-message("save-success")
        recover error-message("database-error")
    </property>
    

    【讨论】:

    • 所以我需要等待下一个社区版本才能做到这一点?
    • 您可以从4.7-ce 分支build from source,或者等待即将推出的4.8.0。
    • @ebruchez - 请告诉我,如何使用send 将数据作为form parameter 发布到external REST service
    猜你喜欢
    • 2014-01-08
    • 1970-01-01
    • 2016-10-20
    • 2014-03-01
    • 1970-01-01
    • 2015-10-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多