yup, another should be simple one that boggles me this eve.

I have some comboboxes similar to:

<mx:ComboBox x="91" y="70" id="userTeamDropdown" dataProvider="{teams}" 
labelField="teamname"></mx:ComboBox>

the teams data is an arraycollection of data returned from amfphp.

In my datagrid change function if I have a line of:

userTeamDropdown.dataProvider = userdatalist.selectedItem.team;

it will grab the selected team and populate the combobox with it as the 
single option.

if I try something like:

userTeamDropdown.labelField = userdatalist.selectedItem.team;

it will populate the combobox with the proper amount of options, but in 
the form of [object, Object].

or if I try:

userTeamDropdown.listData = userdatalist.selectedItem.team;

TypeError: Error #1034: Type Coercion failed: cannot convert "Admin" to 
mx.controls.listClasses.BaseListData.

any advice for me to take on with a fresh head in the morning appreciated.

Impudent1
LeapFrog Productions



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


Reply via email to