Delete autocomplete values in a repeat grid
Posted by akail on
URL: https://discuss.orbeon.com/Delete-autocomplete-values-in-a-repeat-grid-tp4660452.html
Hi,
How is possible to delete autocomplete values which are in repeat grid, when other control value has changed?
For example, I have a control of radio buttons "control-1" and a repeat grid in which is autocomplete control "autocomplete-1".
So when "control-1" value is changed then all values of autocomplete should be deleted.
I use this action:
<xf:action ev:event="xforms-value-changed" ev:observer="control-1-control">
<xf:var name="value" value="xxf:value('control-1-control')"/>
<xf:dispatch target="autocomplete-1-control" name="fr-set-label">
<xf:property name="label" value="$value"/>
</xf:dispatch>
</xf:action>
But it delete only first autocomplete value.
So maybe you know how write an action which delete all autocomplete values which are in repeat grid?