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 Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
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




Reply via email to