My combo box is populated by a static array. IE public var dirPrefix: Array = [ {label:" ", data:" "},{label:"N", data:"N"}, {label:"S", data:"S"}, {label:"E", data:"E"}, {label:"W", data:"W"}, {label:"NE", data:"NE"}, {label:"SE", data:"SE"}, {label:"NW", data:"NW"}, {label:"SW", data:"SW"} ];
I have tried using selectedLabel, but FB gives me an error saying property is read-only. Any idea on how I can dig into the selectedItem and auto select the returned object. --- In flexcoders@yahoogroups.com, "Tom Ortega" <[EMAIL PROTECTED]> wrote: > > That's cuz you're using selectedItem, which returns an object. Use > "selectedLabel" if your comboBox just contains simple values. > > Otherwise, you'll have to dig into the selectedItem object to get what you > want. > > -Tom > > On 4/18/06, Jeremy Rottman <[EMAIL PROTECTED]> wrote: > > > > In my app, the admins can go from add record to edit record. When they > > enter the edit record, the comobo boxes should be set to the selected > > item that is stored in the database. How ever I cant get this to work. > > Here is the code I am trying. The text inputs work fine, it is just the > > comboboxes that I cant get populated with the database results. > > > > // POPLULATE EDIT SALE INPUTS > > function ConvertModPropdisplayDetailSaleQryResult ( > > result){ > > parentApplication.etss.fileNum.text = > > result.fld_fileNum; > > parentApplication.etss.fld_mlsNum.text = > > result.fld_mlsNum; > > parentApplication.etss.fld_propNum.text = > > result.fld_propNum; > > parentApplication.etss.fld_propStreet.text = > > result.fld_propStreet; > > parentApplication.etss.fld_propDir.selectedItem = > > result.fld_propDir; > > > > parentApplication.etss.fld_propStreetDesignator.selectedItem = > > result.fld_propStreetDesignator; > > > > parentApplication.etss.fld_propDirSuffix.selectedItem = > > result.fld_propDirSuffix; > > parentApplication.etss.fld_propCity.text = > > result.fld_propCity; > > parentApplication.etss.fld_propState.text = > > result.fld_propState; > > parentApplication.etss.fld_propZip.text = > > result.fld_propZip; > > parentApplication.etss.fld_propContractDate.text = > > result.fld_propContractDate; > > parentApplication.etss.fld_propCoe.text = > > result.fld_propCoe; > > parentApplication.etss.fld_propUnitType.selectedItem > > = result.fld_propUnitType; > > parentApplication.etss.fld_propUnitNum.text = > > result.fld_propUnitNum; > > parentApplication.etss.fld_propPrice.text = > > result.fld_propPrice; > > } > > > > > > > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > > > > SPONSORED LINKS > > Web site design development<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> Computer > > software development<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> Software > > design and development<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> Macromedia > > flex<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw> Software > > development best practice<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> > > ------------------------------ > > YAHOO! GROUPS LINKS > > > > > > - Visit your group "flexcoders<http://groups.yahoo.com/group/flexcoders>" > > on the web. > > > > - To unsubscribe from this group, send an email to: > > [EMAIL PROTECTED]<[EMAIL PROTECTED]> > > > > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > > Service <http://docs.yahoo.com/info/terms/> . > > > > > > ------------------------------ > > > -- 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/