Hello,
It seems with Orbeon 4.2 events fired by buttons have changed and we have an issue with them.
In our applications we have been using Orbeon buttons "workflow-send" and "save" in the following way:
Example for save:
<xforms:trigger xxforms:modal="true" id="fr-save-button" model="fr-persistence-model" ref="instance('fr-triggers-instance')/save">
<xforms:label>
<xhtml:img width="16" height="16" src="/apps/fr/style/images/pixelmixer/right_16.png" alt=""/>
<xhtml:span>My save title</xhtml:span>
</xforms:label>
</xforms:trigger>
Later in the Xforms code for "save" we handled "DOMActivate" event with "fr-save-button" as observer. For example:
<xforms:action ev:event="DOMActivate" ev:observer="fr-save-button"
xmlns:xforms="
http://www.w3.org/2002/xforms"
xmlns:ev="
http://www.w3.org/2001/xml-events"> <xforms:action if="xxforms:instance('fr-persistence-instance')/is-error = 'true'">
<xforms:message level="xxforms:log-debug">Got error in form</xforms:message>
</xforms:action>
</xforms:action>
However, once we upgraded to Orbeon 4.2. This approach does not work anymore. "Custom Save" button is not shown on Form (though it exists, but disabled). We tried to handle the same events with new powerful buttons, but it seems they are no longer in "
fr-triggers-instance" instance.
Can you please tell what events are fired by new powerful "save" and "save-draft" buttons? And how can we accomplish the same tasks with these new buttons?
Thanks in advance.
-rovsh