Re: [flexcoders] Binding Database Table to a ComboBox

2006-10-09 Thread Sam Shrefler
Luchyx:   The way I've gotten this to work is as follows   selectedIndex="{Utils.ComboBoxSelect(AllPossibleValuesInArrayCollection, 'data', selectedValueFromServer)}"   public class Utils {  public static function ComboBoxSelect(ac:ArrayCollection, field:String, value:Number):Number  {   for (va

[flexcoders] Binding Database Table to a ComboBox

2006-10-09 Thread luchi_bustos
Hello list!. 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 a