6 Replies Latest reply on Dec 11, 2007 9:44 AM by ntsiii

    help with ComboBox, datasource from database

      Hi there,
      i am new to Flex technology and desperately need help with combobox.
      I have a combobox in my app and the datasource comes from MySQL database. I use a PHP script to populate the combobox. Say in the datatabse table, I have the following result:
      id name
      1 dog
      2 cat
      3 horse

      In the app, the combobox will have the list as the name of the animals: dog, cat, horse. But when the user selects dog, how do I get the selected id 1 instead of the label "dog".

      Any help/suggestion will be appreciated.