I think you could get at your data field from wherever you need it by referencing like so:
((customer_name as ComboBox).selectedItem as Customer).customer_id; So for example you could bind a label to that. T --- In flexcoders@yahoogroups.com, "George Georgiou" <[EMAIL PROTECTED]> wrote: > > Hi there, > > I got a remoteobject which loads data from an sql table. I got something > like 5 fields for customers. > > I want to populate a combobox showing the name of the customer and having > as a value the customer_id. > > After Googling it a bit, I have ended up with this: > > <mx:ComboBox id="customer_name" dataProvider="{customerData}" > labelField="customer_name"/> > > this works great! But what about the dataField? (at my suprise I have found > out that although a labelField does exist - which is cool, a dataField > attribute does not exist). > > How can I bind the customer_id into my combobox? Any ideas? > > thanks, > George >