I think repeaterIndex / repeaterItem is what you need.  It's very 
not-intuitive, I know.  currentItem is availble only while the 
repeater is executing.  After that you must use RepeaterItem.


At 01:45 PM 3/26/2007, you wrote:
>I'm trying to figure out this repeater thing.
>
>I'd like to create a list of checkboxes from a dataprovider.
>
>I've got the following code that works:
>
>     <mx:VBox x="7" y="20" verticalGap="0">
>      <mx:Repeater id="rp">
>       <mx:CheckBox label="{rp.currentItem.TABLFLD}"/>
>      </mx:Repeater>
>     </mx:VBox>
>
>My data provider is a query returned from coldfusion contaiing two columns..
>TABLKEY and TABLFLD...
>
>However... I can't figure out how to access the values of the checkboxes
>from within code.
>
>Since, of course, the checkboxes don't have IDs.
>What's the correct way to handle this?
>
>Rick



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: <http://www.dot-com-it.com>
My Podcast: <http://www.theflexshow.com>
My Blog: <http://www.jeffryhouser.com>
Connecticut Macromedia User Group: <http://www.ctmug.com>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:3808
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to