hi, i have a textinput field which has autoComplete, i populate its dataprovider from a webservice.
I assign the dataprovider with the result of a webservice call
ac.dataProvider = e.result;
however i now want to edit each field returned from the ResultEvent so i can add some more inforamtion, i tried doing some thing like this;
var results:ArrayCollection = new ArrayCollection(new Array(e.result));
var newResultsArray:ArrayCollection;
var array:Array = new Array;
for(var i:int = 0 ; i < results.length; i++)
{
array[i] = results.getItemAt(i) + "extraInformation";
}
newResultsArray = new ArrayCollection(array);
acu.dataProvider = newResultsArray;
this however just cuases all results to apear in one field. Any suggestions on how to assign the edited data to my dataprovider in the same format that the result.event returns it?
the problem appears to be that the line containing
results.getItemAt(i) + "extraInformation";
is returning the complete contents of the call into one row.Is there any way to break this up so i can get each individual row from the ResultEvent?