Hi guys:

I got this XML:

<data>
        <speciality>
                <spec number = "1" label = "Especialidad 1"/>
                <spec number = "2" label = "Especialidad 2"/>
                <spec number = "3" label = "Especialidad 3"/>
                <spec number = "4" label = "Especialidad 4"/>
                <spec number = "5" label = "Especialidad 5"/>
        </speciality>
</data>

And the list:

<mx:List  dataProvider="{filterIndex.speciality.spec}" >           
                
I need to make multiple selections in the list and retrieve each 
item's label in order to send a request to a data base.

Using selectedIndices only retrieves items positions. 
If I use selectedItems and the next AS:

trace (selectedItems.toString())

I just get a [Object object] thingy...I can't seem to be able to 
retrieve each item's label...

Any suggestions? DO I need to go a step further and use additional AS 
to solve the problem or is ther a way to get an array of the labels 
directly (something like selectedItems.label)?

Thanks!
-G  







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to