How to Export Data Grid as a CSV file after query tasks?

3150
11
Jump to solution
09-24-2018 11:00 AM
Rocky_
by
Occasional Contributor

Hi all.. i am trying to implement an function by which we can export query task result data grid as a CSV file. 

Is there any widget available for this function. I am using 4.8 arcgis javascript .. any ideas or samples with latest versions..

Thanks..

0 Kudos
11 Replies
deleted-user--MMnVrog9xw_
Occasional Contributor

Oh okay, so your using a dgrid. I think you can actually just use enhanced grid to get this functionaily in your grid. Take a look at this thread.

I wasn't using any kind of data grid in the map that I wrote my export function for so it wasn't really designed with that in mind. You could still do it, you would just have to pass the selected columns as the exportHeaders argument.

0 Kudos
Rocky_
by
Occasional Contributor

James can you please share me how to do it.. I checked that thread but its just a exporting a data directly.. I am performing query tasks first in my code and then exporting that data result into csv file..

0 Kudos