Hi, Try this NoviKlijent.IdPodkategorije = selektorPodKategorije.selectedItem.Idcategory;
On 12/22/09, explorer <[email protected]> wrote: > > Hello I have php file that generate XML file. When I call HTTPService, > result event triger this function. XML file is structured like this > <category> > <idcategory> > <NameCategory> > </category> > > private function podkategorijeHandler(kat:ResultEvent):void > { > var nizPodkategorije:XMLList = > XML(kat.result).podkategorija; > var podkategorije:XMLListCollection = new XMLListCollection > (nizPodkategorije) > selektorPodKategorije.dataProvider = podkategorije; > selektorPodKategorije.labelField = "NameCategory"; > selektorPodKategorije.data = "Idcategory"; > > selektorPodKategorije.selectedIndex = 0; > } > > This realy populate my ComboBox, but when I try to collect selected > Item from dropdown menu (data and not label ), I got NAN as value. > This is how I try to collect value > > NoviKlijent.IdPodkategorije = > selektorPodKategorije.selectedItem.valueOf(); > I tryed and this > NoviKlijent.IdPodkategorije = selektorPodKategorije.selectedIndex; but > this is index of populated ComboBox and not real IdCategory; > > Any advice how can I solve this, or mybee I made mistake somewhere > earlier > > Thank you in advance > > -- > > 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.

