Orbeon 在提交后禁用自定义提交到外部 Web 服务
Orbeon disable custom submit to external webservice after submit
如何在提交后禁用自定义提交按钮?
下面你可以找到我要发送的部分代码:
<xf:trigger bind="booking-bind" id="booking">
<xf:label>
<xh:span>
<xf:output value="'Send'"/>
</xh:span>
</xf:label>
<xf:action ev:event="DOMActivate">
<xf:setvalue ref="instance('fr-form-instance')/submission_type">SendBooking</xf:setvalue>
<xf:setvalue ref="instance('fr-form-instance')/submission_extra_info">//booking[1]</xf:setvalue>
<xf:action type="xpath" xmlns:process="java:org.orbeon.oxf.fr.process.SimpleProcess">
process:runProcessByName('oxf.fr.detail.process', 'send')
</xf:action>
</xf:action>
</xf:trigger>
我正在使用这个解决方案:Orbeon upgrade from 3.9 to 4.5 : Customized submit for saving forms
我看到你的触发器有一个 booking-bind
绑定。你可以有一个 readonly
MIP 说明按钮是否应该是只读的。例如:
<bind id="booking-bind" readonly=". = 'sent'"/>
然后,在您的操作中,执行:
<xf:setvalue ref="xxf:bind('booking-bind')" value="'sent'"/>
这将导致触发器变为只读。
顺便说一下,我们有一个 issue 可以更好地解决这个问题。
如何在提交后禁用自定义提交按钮?
下面你可以找到我要发送的部分代码:
<xf:trigger bind="booking-bind" id="booking">
<xf:label>
<xh:span>
<xf:output value="'Send'"/>
</xh:span>
</xf:label>
<xf:action ev:event="DOMActivate">
<xf:setvalue ref="instance('fr-form-instance')/submission_type">SendBooking</xf:setvalue>
<xf:setvalue ref="instance('fr-form-instance')/submission_extra_info">//booking[1]</xf:setvalue>
<xf:action type="xpath" xmlns:process="java:org.orbeon.oxf.fr.process.SimpleProcess">
process:runProcessByName('oxf.fr.detail.process', 'send')
</xf:action>
</xf:action>
</xf:trigger>
我正在使用这个解决方案:Orbeon upgrade from 3.9 to 4.5 : Customized submit for saving forms
我看到你的触发器有一个 booking-bind
绑定。你可以有一个 readonly
MIP 说明按钮是否应该是只读的。例如:
<bind id="booking-bind" readonly=". = 'sent'"/>
然后,在您的操作中,执行:
<xf:setvalue ref="xxf:bind('booking-bind')" value="'sent'"/>
这将导致触发器变为只读。
顺便说一下,我们有一个 issue 可以更好地解决这个问题。