Hi All - I'm looking to use the sample referenced below to export the contents of a Feature Table to a CSV file in a custom JavaScript application.
JS Bin - Collaborative JavaScript Debugging
It appears that starting at version 3.18 of the JS API, the array generated using FeatureTable.dataStore.data comes back as a JSON object versus an array of attributes and the sample no longer works.
I can get at all the attributes using the following, then iterating over each record returned, but it returns all attributes, not just the ones visible in the table and it seems like a overly complicated way to accomplish what I'm trying to do.
Object.keys(featTable.dataStore.data[Object.keys(featTable.dataStore.data)[0]].attributes)
Has anyone tried to do this in the newer versions of the API? Or know of an easier way to do this?
A similar question was asked about a year ago but there were no responses.
Feature Table Export 3.18 to CSV
Thank you in advance.