//Looping through the search results mySearch.run().each(function(result){ log.debug('content',content); //looping through each columns for(var y=0; y< columns.length; y++){ var searchResult = result.getValue({ name: columns[y].name }); temp[y] = searchResult; log.debug(temp[y],searchResult); } content[x] +=temp; x++; return true; });