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