0 Replies Latest reply on Apr 11, 2007 7:44 PM by KennyIsMe

    Adding only unique XML nodes to a ComboBox

    KennyIsMe
      Hi there

      I'm trying to populate a ComboBox from an XML file. The following code excerpt shows how I'm doing this:

      <mx:ComboBox dataProvider="{xmlAssets.asset}" labelField="type"></mx:ComboBox>

      My XML looks like this:

      <assets>
      <asset>
      <type>Laptop</type>
      </asset>
      <asset>
      <type>Laptop</type>
      </asset>
      </assets>

      How do I filter the XML so that 'Laptop' only shows once in my ComboBox instead of twice as it's doing currently?

      Any help would be really appreciated!

      Cheers,
      Kenny.