带参数的Orbeon发送按钮 [英] Orbeon Send Button With Parameters

查看:138
本文介绍了带参数的Orbeon发送按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经寻找了一段时间,找不到一种解决方案,当我按下保存-最终按钮时,该解决方案允许我将表单中的请求参数发送到外部Webapp.

I have looked for a while and cant find a solution that allows me to send request parameters from my forms to an external webapp when I press the save-final button.

这是我到目前为止在properties-local.xml中拥有的内容...

This is what I have so far in my 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")'/>

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

I have tried changing values and property names etc but I keep getting the following message when I try to save...

An error has occurred while processing the request.

有关如何执行此操作的任何建议?

Any advice on how to do this?

谢谢

推荐答案

如果您使用的是4.7.0,请尝试4.7.1,

If you are using 4.7.0, try 4.7.1, this issue was fixed. With 4.7.1, the following should work:

<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>

这篇关于带参数的Orbeon发送按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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