Hi Jackie, (dataProvider as ArrayCollection).getItemAt(i).id and (dataProvider as ArrayCollection).getItemAt(i).name will give you the desired result.
HTH, -Ravi On Jun 15, 3:31 pm, jackie <yuubo...@gmail.com> wrote: > I have a list, that renders a checkBox Component. > and that list dataProvider is from data Model ↓: > > -------------- > in mxml file > -------------- > <mx:Model id="catalogs" source="catalog.xml"/> > > -------------- > catalog.xml > -------------- > <?xml version="1.0" encoding="utf-8"?> > <!--カタログ--> > <catalogs> > <catalog> > <id>item0</id> > <name>Sample1</name> > <isSelected>true</isSelected> > </catalog> > <catalog> > <id>item2</id> > <name>Sample2</name> > <isSelected>false</isSelected> > </catalog> > <catalog> > <id>item3</id> > <name>Sample3</name> > <isSelected>false</isSelected> > </catalog> > <catalogs> > > -- > when I submit, I like to get the [id] and the [name] based from > isSelected, from a list object. > It shows in debug mode, that : > dataProvider is - mx.collections.ArrayCollection (@d00b8f9) > > I have a difficulty in getting those value. any help? > > Cheers, > jackie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---