Hello list!. This is me first post to this Flex community.
I'm having troubles with a Combobox and selectedIndex.
I'm populating the combobox with an array of categories, that was
returned by AMFPHP service call with this SQL. 
/*code SQL
"select id_cat AS data, cat_name AS label FROM users_types ORDER
id_cat ASC";
*/
This return an array of all availables categories and populate the
combobox.
After that I retrieve an especific user with and especific
user_leve_index value that match the real index in the users_types
database table.
I setting the selectedIndex in the Combobox via.
/*
userslevelCat_cb.selectedIndex = userfromserver.user_type_index;
*/
The problem is that the selected index is different than the real
index field in the database. So if I sort te query in a diferent way
the selectedIndex is diferent, and didn't reflect the real category name.

Im'm reading some paper's that say if I use an array of {data:#,
label:"cat uno"}, the combo box will try to find the corresponding
value in the data field when I use selectedIndex.

Does anybody here know the problem,has possible solution?

Thanks in advance.

Luchyx

and selecteItem help on ria development. :P






--
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