Hello,
We are facing a problem when we use Orbeon form builder and runner tools. We use form builder tool to create the form.
We try to delete some other elements in the main model when we remove a section that is set as repeat=‘content’ in the form builder. Please see the attached screen shot.
We have tried the following two ways to do it. However, none of them seems work.
body:
<xh:tr>
<xh:td>
<xf:input id="funding-source-name-control"
bind="funding-source-name-bind">
<xf:label
ref="$form-resources/funding-source-name/label"/>
<xf:hint ref="$form-resources/funding-source-name/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
<xf:action ev:event="xforms-value-changed">
<xf:dispatch name="delete-company"
targetid="fr-form-model"/>
</xf:action>
</xf:input>
</xh:td>
</xh:tr>
model:
<xf:action ev:event="delete-company">
<xf:delete id="delete-company"
xxf:iterate="//*:funding-allocation-repeated-section-iteration"
context="//*:funding-allocation-repeated-section-iteration"
nodeset="*:company-funding-1 | *:company-percentage-1 "/>
</xf:action>
<xf:action ev:observer="funding-sources-repeated-section-template" ev:event="xforms-insert xforms-delete xxforms-value-changed">
<xf:delete id="delete-company"
xxf:iterate="instance('fr-form-instance')//*:funding-allocation-repeated-section-iteration"
context="instance('fr-form-instance')//*:funding-allocation-repeated-section-iteration"
nodeset="*:company-funding-1 | *:company-percentage-1 "/>
</xf:action>
funding-sources-repeated-section-template is one the instances that is from the model. Fr-form-instance is the main model.
<xf:instance xxf:readonly="true" id="funding-sources-repeated-section-template">
<funding-sources-repeated-section-iteration>
<funding-type/>
<other-funding/>
<other-funding-type/>
<funding-source-name/>
<capital-revenue/>
</funding-sources-repeated-section-iteration>
</xf:instance>
We appreciate any help.
Please let me know if you need any more information.
Many Thanks,
Chunyu
--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+un...@googlegroups.com.
To post to this group, send email to orb...@googlegroups.com.