Expand my Community achievements bar.

Setting Data Field of Combo Box

Avatar

Level 1
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];



}

1 Reply

Avatar

Former Community Member
Look this post.
Combo Box dataField
Support


This may help you if you want to select another index than
the index of the dataprovider.

Best