You correct. A reference is required, although for straight strings, all strings of the same value refer to the same "object".
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, May 29, 2007 10:36 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] show value in combobox As I understand it, selectedItem requires a *reference* to the item you want to select. It does not do a search of the dataProvider item properties (how could it know which properties to use?) to find a match for a value. I think you will need to use the iteration logic. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harish Sivaramakrishnan Sent: Tuesday, May 29, 2007 1:51 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] show value in combobox Kanu, It is not recommended to use scalar values into your dataProvider, instead use the format {label:"varun"},{label:"manav"} instead of using varun, manav ... etc. For solving your issue, use the selectedItem property on the combbox. thanks Harish On 5/29/07, kanu kukreja < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Tx for the quick reply Tracy But i was expecting some property for this insted of applying this logic. Is there is any property? Tracy Spratt <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: You need to loop over the dataProvider, comparing the appropriate property value to the match value, then set the comboBox selectedIndex when you match. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] ups.com <http://ups.com> ] On Behalf Of kanu kukreja Sent: Monday, May 28, 2007 3:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] show value in combobox there is a combobox with 3 values: kanu manav varun through webservices i'm getting "varun" which i need to show in a combobox after clicking a button how to do this? Best Regards Kanu Kukreja ________________________________ Looking for a deal? Find great prices on flights and hotels <http://us.rd.yahoo.com/evt=47094/*http:/farechase.yahoo.com/;_ylc=X3oDM TFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20-> with Yahoo! FareChase. Best Regards Kanu Kukreja ________________________________ Luggage? GPS? Comic books? Check out fitting gifts for grads <http://us.rd.yahoo.com/evt=48249/*http:/search.yahoo.com/search?fr=oni_ on_mail&p=graduation+gifts&cs=bz> at Yahoo! Search.