Set the dataProvider to dataProvider={xmlFile.urednik}. Then, set the labelField of the ComboBox to "label". This should show the label to the user and then you can get the id by typing comboBox.selectedItem.id or the label: comboBox.selectedItem.label. --- In flexcoders@yahoogroups.com, "arnold_charming" <[EMAIL PROTECTED]> wrote: > > Hi! > > I have a XML file (look below) which is then send to the ComboBox as > 'dataProvider={xmlFile.urednik.label}'. But now I want to access the > required id of selected item/label. I tried several things but none of > them worked. Please help me out. > > XML File > ---------- > <root> > <urednik> > <id>5</id> > <label>Something</label> > </urednik> > </root> >
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/