简体   繁体   English

按下保存按钮时执行操作

[英]Execute Action when save button is pressed

I have an Orbeon form, part of the requirements is that a web service is called when the form is saved. 我有一个Orbeon表单,部分要求是在保存表单时调用Web服务。

I've been trying to set this up in Form Builder but cannot seem to find out where the changes need to be done. 我一直试图在Form Builder中进行设置,但似乎无法找出需要在哪里进行更改。 It's important that this is done within Form Builder as semi-technical people will need to understand the process. 在Form Builder中完成此操作很重要,因为半技术人员需要了解该过程。

I'm not sure if I need to use custom buttons, or whether I can simply attach an action to the "save" button click. 我不确定是否需要使用自定义按钮,或者是否可以将操作附加到“保存”按钮单击上。

This would need to be done within the process that runs when the save button is pressed. 这需要在按下保存按钮时运行的过程中完成。

Processes give you a lot of flexibility to configure what happens when buttons at the bottom of the the form are pressed. 通过流程,您可以灵活地配置按下表单底部的按钮时发生的情况。 However, at least as of Orbeon Forms 4.9, processes can't be configured through Form Builder or a web UI, and you need to to edit properties, in your properties-local.xml , to do this. 但是,至少从Orbeon Forms 4.9开始,无法通过Form Builder或Web UI来配置流程,因此您需要在properties-local.xml编辑属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM