New to ArcGIS API for Javascript, so apologies if this is a very basic/beginner question.
I have a feature table with a a few columns in it's attribute table, one of which is the 'date' column. Is it possible for me to extract just all the values the 'date' column, preferably as an array?
Thanks!
Solved! Go to Solution.
Hi Jerry,
Use query feature layer and define your where condition as 1=1 and outFields is your required fields.
Please refer to the link: https://developers.arcgis.com/javascript/latest/query-a-feature-layer-sql/
Thank you.
Hi Jerry,
Use query feature layer and define your where condition as 1=1 and outFields is your required fields.
Please refer to the link: https://developers.arcgis.com/javascript/latest/query-a-feature-layer-sql/
Thank you.
I finally got it to work, thank you so much!
The issue with my code was that my where condition was set to "date != '' ", which didn't work at all, while the 1=1 condition works.
Grate.
You can also try with SQL statements such as "date IS NOT NULL".