7/3/2010 8:33:49 AM
Title:
Dataprovider problem
I have a code as given below.tbl_ is the SQlite table.
I am loading all data in column_name in a combobox.
But its loading as object.
but if it is res.data[0].column_name it will load the first value in column_name.
Please solve this problem.
stat.text = "SELECT column_name form_name FROM tbl_";
stat.execute();
var res : SQLResult = stat.getResult();
combo.dataProvider = res.data;
7/3/2010 11:01:16 PM
you can try casting your data to array collection then apply it to your combo
dataProviderForCombo = new ArrayCollection(res.data);
7/3/2010 11:24:50 PM
comboBox will accept the data as array or arraycollection , so u need to convert the object data from sqlresult to array or array collection.