<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Export featureTable to CSV in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9454#M902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on &lt;A href="https://community.esri.com/migrated-users/6443"&gt;Rene Rubalcava&lt;/A&gt;​ 's code, here I combine this new Export CSV function within the dropdown menu in our FeatureTable sample. You can try view this live demo &lt;A href="http://jsbin.com/bubutucoqa/edit?html,output" title="http://jsbin.com/bubutucoqa/edit?html,output"&gt;http://jsbin.com/bubutucoqa/edit?html,output&lt;/A&gt;​ using Chrome browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2016 20:26:17 GMT</pubDate>
    <dc:creator>YueWu1</dc:creator>
    <dc:date>2016-04-25T20:26:17Z</dc:date>
    <item>
      <title>Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9447#M895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the featureTable dijit in my application. I am able to populate the table based on different featureLayers in the map. I would like to be able to export the table to a CSV file the user can download.&amp;nbsp; The number of features in table can be any where from less than 10 to upwards of 10,000.&amp;nbsp; Is there any samples or known ways to export the featureTable to CSV?&amp;nbsp; I have tried several things but have been unsuccessful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9447#M895</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2016-04-21T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9448#M896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is a sample shows how to Extract Data from a map service: :"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Fsandbox%2Fsandbox.html%3Fsample%3Dgp_clipasync" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=gp_clipasync&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, you need to use "esri/tasks/Geoprocessor". which means you have to create your own geoprocessing tool and then publish as gp service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For more information, you can take a look about this online documentation about "geoprocessing specifically in ArcGIS Server 10.2 version" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2Fen%2Fhelp%2Fmain%2F10.2%2Findex.html%23%2F%2F002s00000002000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//002s00000002000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or 10.3 ArcGIS Server: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserver.arcgis.com%2Fen%2Fserver%2F10.3%2Fpublish-services%2Fwindows%2Fa-quick-tour-of-publishing-a-geoprocessing-service.htm" rel="nofollow" target="_blank"&gt;http://server.arcgis.com/en/server/10.3/publish-services/windows/a-quick-tour-of-publishing-a-geoprocessing-service.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9448#M896</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-04-21T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9449#M897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but this is not a path I'm interesting in going down.&amp;nbsp; I'm not looking to clip and ship the data.&amp;nbsp; I'm just wanting to export out the featureTable to a CSV file. In my application I have a featureTable similar to the table in this example &lt;A href="https://developers.arcgis.com/javascript/jssamples/featuretable.html" title="https://developers.arcgis.com/javascript/jssamples/featuretable.html"&gt;Using FeatureTable | ArcGIS API for JavaScript&lt;/A&gt; .&amp;nbsp; I do not have my application formatted like this example, but I am using the featureTable dijit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:16:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9449#M897</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2016-04-21T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9450#M898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write code to implement this new function. Currently FeatureTable widget doesn't have csv export function. &lt;/P&gt;&lt;P&gt;Essentially, you need to get all the data that loaded in dgrid and export to csv file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kfranqueiro/dojo-smore" title="https://github.com/kfranqueiro/dojo-smore"&gt;GitHub - kfranqueiro/dojo-smore: Dojo stores are great! Here, have s'more.&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9450#M898</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-04-21T20:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9451#M899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is exactly what I'm attempting to do.&amp;nbsp; I was aware the featureTable does not have the export capability (would be a fantastic addition) and that I would need to write a custom piece.&amp;nbsp; That is what my original question was for. I will look at the sample in the link you posted to see if that is something that can work in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the mean time, has anyone been able to figure out a way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 14:41:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9451#M899</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2016-04-22T14:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9452#M900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at that repo, I'm have no idea how to even begin to try to implement it in my application.&amp;nbsp; There isn't a very clear example there.&amp;nbsp; Any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 14:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9452#M900</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2016-04-22T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9453#M901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shamelessly borrowed code from here &lt;A href="http://halistechnology.com/2015/05/28/use-javascript-to-export-your-data-as-csv/" title="http://halistechnology.com/2015/05/28/use-javascript-to-export-your-data-as-csv/"&gt;Use JavaScript to Export Your Data as CSV - Chris Grimes&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://codepen.io/odoe/pen/rerdrm" title="http://codepen.io/odoe/pen/rerdrm"&gt;http://codepen.io/odoe/pen/rerdrm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only exports what the table has downloaded though and only the raw data. Could tweak to export using column data probably.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 22:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9453#M901</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2016-04-22T22:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9454#M902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on &lt;A href="https://community.esri.com/migrated-users/6443"&gt;Rene Rubalcava&lt;/A&gt;​ 's code, here I combine this new Export CSV function within the dropdown menu in our FeatureTable sample. You can try view this live demo &lt;A href="http://jsbin.com/bubutucoqa/edit?html,output" title="http://jsbin.com/bubutucoqa/edit?html,output"&gt;http://jsbin.com/bubutucoqa/edit?html,output&lt;/A&gt;​ using Chrome browser.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 20:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9454#M902</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2016-04-25T20:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9455#M903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys! I knew there had to be&amp;nbsp; a simplier way of doing this.&amp;nbsp; I had come up with a solution but it was a bit hacky, this is much cleaner. I will give it a try in my app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yue, you said to view the live demo in Chrome.&amp;nbsp; Why is that? Will the functionality not work in other browsers or is it just jsbin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 15:06:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9455#M903</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2016-04-26T15:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9456#M904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only issue I'm seeing is what Rene pointed out about only exporting what has been downloaded.&amp;nbsp; This is something I need to get around.&amp;nbsp; For example if I have a table with 2793 records, only the first 1000 get exported.&amp;nbsp; Now if i scroll through the table, then all 2793 records get exported because now all records have been downloaded to the client but that is something I can't ask the user to do each time when they want to export the table.&amp;nbsp; How can I get around this using this method? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 15:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9456#M904</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2016-04-26T15:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9457#M905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into this same kind of thing a while back when creating a dgrid to show my selection. I found the solution here: &lt;A href="https://community.esri.com/thread/81418" target="_blank"&gt;Custom Feature layer on loading on dgrid&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;It's basically this on line of code when you construct you construct/initialize/create your dgrid/attribute table.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;bufferRows: Infinity,&lt;/PRE&gt;&lt;P&gt;This allows all rows to be loaded without having to scroll down to do so.&lt;/P&gt;&lt;P&gt;Not sure how this would get inserted into the Feature Attribute code but here is what I do when I create my attribute table using dgrid:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//Initialize the Activities grid
&amp;nbsp; var gridActivitiesDay1 = new(declare([OnDemandGrid, Selection]))({
&amp;nbsp; bufferRows: Infinity,
&amp;nbsp; columns: {
&amp;nbsp; OBJECTID: {
&amp;nbsp; label: "GPSid"
&amp;nbsp; },
&amp;nbsp; Day1Date: {
&amp;nbsp; label: "Day"
&amp;nbsp; },
&amp;nbsp; TimeofDay: {
&amp;nbsp; label: "Time"
&amp;nbsp; },
&amp;nbsp; Latitude: "Latitude",
&amp;nbsp; Longitude: "Longitude"
&amp;nbsp; }
&amp;nbsp; },
&amp;nbsp; "divGridActivities");&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't do this with the Feature Attribute Table widget, setting "&lt;SPAN style="color: #505051; font-family: Verdana, Geneva, sans-serif; font-size: 12px;"&gt;Maximum Number of Records Returned by Server" to 3,000 would work?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9457#M905</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2021-12-10T20:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export featureTable to CSV</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9458#M906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/6443"&gt;Rene Rubalcava&lt;/A&gt;&amp;nbsp;this sample that you put together is precisely what I need but it doesn't seem to work for me&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &amp;nbsp;I simply took it exactly as-is and put it in a HTML...no error in my console but no download either...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 16:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/export-featuretable-to-csv/m-p/9458#M906</guid>
      <dc:creator>JamesOsundwa</dc:creator>
      <dc:date>2017-06-14T16:07:13Z</dc:date>
    </item>
  </channel>
</rss>

