Hi all, I wondered if someone had a good on how to export a data grid to csv file after query. I would like something like this but this fiddle does not seem to work. Also instead of the findTask, I use a simple queryTask. Any idea is welcome. Thanks,
Alex
function addToMap3(results) {
// make sure both queries finished successfully
map.graphics.clear();
var featureArray = results.features;
if (featureArray && featureArray.length > 0) {
// do stuff with the features
arrayUtils.forEach(featureArray, function (feat) {
feat.setSymbol(symbol8);
map.graphics.add(feat);
});
var extent = esri.graphicsExtent(map.graphics.graphics);
map.setExtent(extent, true);
} else {
// do stuff when no features were found
alert("No features found")
}
}