Skip navigation
Ukie_239
Currently Being Moderated

Setting Data Field of Combo Box

Dec 12, 2006 10:27 AM

I have a result set passed back as an Array. I want to set and reference a combo box with those values
The first element in the array should be the data, the second should be the label

I can get the label set, but i Cannot get and set the "data" the actually selected value.
For example: my function is
public function onResult_getSkillsetNames( result : Array ) : void
{

skillsetName_cmb.dataProvider = result;

skillsetName_cmb.labelField = "skillsetName";
skillsetName_cmb.selectedItem = result[0];
skillsetName_cmb.text = result[1];
//skillsetName_cmb= results[0];

}
 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)