Orbeon Send Button With Parameters

ε祈祈猫儿з 提交于 2019-12-02 07:09:41

问题


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.

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?

Thanks


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


来源:https://stackoverflow.com/questions/27797037/orbeon-send-button-with-parameters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!