3 Replies Latest reply on May 16, 2009 5:33 AM by Michael Borbor

    Get data from ComboBox

    Francisc Level 3

      Hello!

       

      I have a ComboBox with a dataProvider which is an ArrayCollection.

      The AC variable, let's call it myDP, is like this:

       

      myDP=newArrayCollection([{label:'One',data:1,'year':'2009'},{label:'Two',data:2,'year':'10 0 BC'}]);

       

      For the above example, I need to get all the data from myDP for the selected element.

      To get the label and data for it I can use myComboBox.text and myComboBox.value.

       

      Q: How do I get the year value?

       

      Thank you!