AnsweredAssumed Answered

Export Data Grid to CSV after querying

Question asked by AlexSabrina on Nov 13, 2015
Latest reply on Nov 13, 2015 by AlexSabrina

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,


function addToMap3(results) {

                             // make sure both queries finished successfully



                             var featureArray = results.features;

                             if (featureArray && featureArray.length > 0) {

                                 // do stuff with the features

                                 arrayUtils.forEach(featureArray, function (feat) {




                                 var extent = esri.graphicsExtent(;

                                 map.setExtent(extent, true);

                             } else {

                                 // do stuff when no features were found

                                 alert("No features found")