Thanks Safi for your response . If I do this I get duplicate elements in Mycombox , I want to avoid them.
Regards Kiran On Sun, Dec 27, 2009 at 10:50 PM, saanaa safi <[email protected]> wrote: > hi kiran, > i hope below example will help u. try this,i think this is what u r > expecting. > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:ArrayCollection id="myColl"> > > > <mx:Object Company="GM" count="85" Model ="Saab" ModelCount="20" > Year="2009" YearCount="10" /> > <mx:Object Company="GM" count="85" Model ="Saab" ModelCount="20" > Year="2008" YearCount="5" /> > <mx:Object Company="GM" count="85" Model ="Saab" ModelCount="20" > Year="2007" YearCount="5" /> > <mx:Object Company="GM" count="85" Model ="Chevi" > ModelCount="20" Year="2009" YearCount="20" /> > > <mx:Object Company="FORD" count="43" Model ="Focus" > ModelCount="20" Year="2009" YearCount="5" /> > <mx:Object Company="FORD" count="43" Model ="Focus" > ModelCount="20" Year="2008" YearCount="3" /> > <mx:Object Company="FORD" count="43" Model ="Focs" > ModelCount="20" Year="2007" YearCount="2" /> > > </mx:ArrayCollection> > <mx:ComboBox prompt="Company" dataProvider="{myColl}" > labelField="Company" x="44" y="21" width="100"/> > <mx:ComboBox prompt="Model" dataProvider="{myColl}" labelField="Model" > x="153" y="21" width="100"/> > <mx:ComboBox prompt="Year" dataProvider="{myColl}" labelField="Year" > x="275" y="21" width="100"/> > > </mx:Application> > > On Sat, Dec 26, 2009 at 4:00 PM, Kiran Kumar Vasireddy < > [email protected]> wrote: > >> Dear All, >> >> I am getting the data in following format . Is there any way to load it >> into comboxbox avoiding duplicates? First combobox I want to just load >> Company Name removing duplicates.Second combox box based on the section I >> have to load Models and In the Thrid combox box based on company and Model >> I have to load Years.Or if not Arraycollection , I can also get the data in >> XMLCollection . Could some body please give me best solution? >> >> <ArrayCollection> >> >> <mx:Object Company="GM" count="85" Model ='Saab" ModelCount=20 >> Year="2009" YearCount="10" /> >> <mx:Object Company="GM" count="85" Model ='Saab" ModelCount=20 >> Year="2008" YearCount="5" /> >> <mx:Object Company="GM" count="85" Model ='Saab" ModelCount=20 >> Year="2007" YearCount="5" /> >> <mx:Object Company="GM" count="85" Model ='Chevi" >> ModelCount=20 Year="2009" YearCount="20" /> >> >> <mx:Object Company="FORD" count="43" Model ='Focus" >> ModelCount=10 Year="2009" YearCount="5" /> >> <mx:Object Company="FORD" count="43" Model ='Focus" >> ModelCount=10 Year="2008" YearCount="3" /> >> <mx:Object Company="FORD" count="43" Model ='Focs" >> ModelCount=10 Year="2007" YearCount="2" /> >> >> </ArrayCollection> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Flex India Community" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<flex_india%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/flex_india?hl=en. >> > > > > -- > Warm Regards > Saanaa.... > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

