How to add a new attribute in Javascript which should be added to the featurelayer in AGOL

241
2
12-03-2020 08:14 AM
PHerk
by
New Contributor II

I know how to change the value of an attribute with the Javascipt API. I use Applyedits(). Now I need to create a new attribute, that has no representation in the Featurelayer in AGOL, through ApplyEdits.  When I try this ApplyEdits, the function approves the action, but the newly created attributes are not added to the Featurelayer. How should this be done? 

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

This is the AGOL documentation link for adding a field. There is no ability for doing this using the JS API at runtime.

https://doc.arcgis.com/en/arcgis-online/manage-data/add-or-delete-fields.htm

 

PHerk
by
New Contributor II

Thanks Robert, that's too bad. I hope this will be implemented in the future. Appreciated!

0 Kudos