Hi, i have an alert dialog dispatched when a value changed and i would like to change values and clear repetitions depending on the dialog's answer.
I use 2018 version, and i don´t know what to do or what i'm doing wrong.
This is the part of the code that would do the operations.
Could you give me some help?
Thanks in advance.
<xh:head>
<xh:title>INVESTIGACION</xh:title>
<xh:style type="text/css"/>
<xf:model id="fr-form-model" xxf:expose-xpath-types="true" xxf:analysis.calculate="true">
....
<xf:action id="getDispatch-binding">
<xf:action event="xforms-value-changed" ev:observer="cuerpo-control" if="true()">
<xf:dispatch target="overwrite-file-dialog" name="fr-show">
<xf:property name="message" value="'Do yu want to continue?'"/>
</xf:dispatch>
</xf:action>
</xf:action>
....
</xf:model>
</xh:head>
<xh:body>
<fr:view>
....
<fr:alert-dialog id="overwrite-file-dialog">
<fr:negative-choice>
<fr:repeat-clear repeat="iteracionesLink"/>
<xf:setvalue ref="//cuerpoanterior" value="'NEGATIVE XF'"/>
<fr:control-setvalue value="'NEGATIVE FR'" control="cuerpoanterior" at="0"/>
</fr:negative-choice>
<fr:positive-choice>
<xf:setvalue ref="//cuerpoanterior" value="'POSITIVE'"/>
<fr:control-setvalue value="'POSITIVE FR'" control="cuerpoanterior" />
</fr:positive-choice>
</fr:alert-dialog>