Re: sending events to repeated controls within an XBL component
Posted by
Philip.Cantin on
Aug 31, 2009; 9:36pm
URL: https://discuss.orbeon.com/sending-events-to-repeated-controls-within-an-XBL-component-tp45079p45081.html
Erik,
Thanks for the direction and the example! It works like a charm!
---Philip
Erik Bruchez wrote
Philip,
The issue is that you need to dispatch an event to each repeat iteration.
One way is to setindex to all the iterations and then dispatch, like this:
<xbl:handler event="event1" phase="target">
<xxforms:variable name="initial-index" select="index('idinfo-repeat')"/>
<xf:action xxforms:iterate="idinfo">
<xf:setindex repeat="idinfo-repeat" index="position()"/>
<xf:dispatch name="event2" targetid="event-trigger"/>
</xf:action>
<xf:setindex repeat="idinfo-repeat" index="$initial-index"/>
</xbl:handler>
-Erik