[flexcoders] How to pass value to ComboBox selectedItem?
Dear all, I haven't succeed passing object value to ComboBox selectedItem, how do I do this in Flex? In HTML I pass a record id to the option value. Best regards, -- Setting a new landmark. Blog: http://joshuajava.wordpress.com/ Twitter: http://twitter.com/thejavafreak
Re: [flexcoders] How to pass value to ComboBox selectedItem?
You need to go through the dataProvider to change the value of the selected item. For example: comboBox.dataProvider.setItemAt(newItem, comboBox.selectedIndex); -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Mon, 8/11/08, Joshua Jackson [EMAIL PROTECTED] wrote: From: Joshua Jackson [EMAIL PROTECTED] Subject: [flexcoders] How to pass value to ComboBox selectedItem? To: flexcoders@yahoogroups.com Date: Monday, August 11, 2008, 10:41 AM Dear all, I haven't succeed passing object value to ComboBox selectedItem, how do I do this in Flex? In HTML I pass a record id to the option value. Best regards, -- Setting a new landmark. Blog: http://joshuajava. wordpress. com/ Twitter: http://twitter. com/thejavafreak
RE: [flexcoders] How to pass value to ComboBox selectedItem?
I don't quite understand your question. objects don't have values, but properties of objects do. What are you trying to get the ComboBox to do? Please rephrase. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Jackson Sent: Monday, August 11, 2008 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to pass value to ComboBox selectedItem? Dear all, I haven't succeed passing object value to ComboBox selectedItem, how do I do this in Flex? In HTML I pass a record id to the option value. Best regards, -- Setting a new landmark. Blog: http://joshuajava.wordpress.com/ http://joshuajava.wordpress.com/ Twitter: http://twitter.com/thejavafreak http://twitter.com/thejavafreak