append records to the results of findtask.execute

Discussion created by enipla on Nov 3, 2010
Latest reply on Nov 4, 2010 by enipla
I would like to populate a �??results�?? array from a findtask.execute function with additional items.

Essentially create a loop �??

Function getParcel(queryArray) {
var i=0
var results = new array();
for (i=0;i<=5;i++)
findParams.searchText = queryArray[i];
results[i] =   findTask.execute(findParams);

Now results, is an array of type FindResult, and it says it can�??t be constructed -


So my �??var results = new array();�?? surely must not be right.  But there must be a way to append additional info into this result set?

Or, what would be great is if I could just set findParams.searchText to an array or delimeted text and it could search on all inputs.