Esri / dashboard-samples

Using the ArcGIS API for JavaScript, you can develop widget, map tools, and feature action extensions for Operations Dashboard running on Windows and in a browser.
Apache License 2.0
51 stars 48 forks source link

Issue with Export to CSV #8

Open luisgalimberti opened 7 years ago

luisgalimberti commented 7 years ago

Hi theres,

I am very new in javascript. So I downloaded the samples to start practicing. I was able to make some of them work, However, the export to CSV sample doesn't work for me. I select a couple points as shown in the attached file and when I click into ExportCSV nothing happen. I already made the label selectable so I was wondering what I am doing wrong.

Thanks,

samplescreenshot

bharanigurminder commented 7 years ago

Hi @luisgalimberti, In order to solve this issue please open the file: esri/ dashboard-samples / exportToCsv / exportToCSVFeatureAction.html Then go to line number 31 you will see the following code statement. var features = eventProperties.features.features; Please change the line number 31 to: var features = eventProperties.featureSet.features; I have tested it on two different services and the code works perfectly fine. If you any further question I will be more than happy to help.