Edit stand-alone feature service table using Javascript

168
2
Jump to solution
2 weeks ago
MatthewDriscoll
MVP Alum

Is it possible to edit a stand-alone table from a feature service with the Javascript API?  I can do it using online and experience builder, but cannot figure it out using just the native Javascript API.  Anyone have an example on how it's done?  I am not trying to add it to the map/view or anything like that, just accessing the information to be edited.  

 

This is the error I get:

Failed to resolve layer view (layer title: 'n', id: '####') f {name: 'featurelayerview:table-not-supported', details: {…}, message: "table feature layer can't be displayed"}

0 Kudos
1 Solution

Accepted Solutions
Sage_Wall
Esri Contributor
0 Kudos
2 Replies
Sage_Wall
Esri Contributor

Using the FeatureTable widget with editing enabled is probably the easiest way, but applyEdits should work too.

https://codepen.io/sagewall/pen/jORvOeJ

0 Kudos
MatthewDriscoll
MVP Alum

This is using a portal item, I can get that to work.  It's a feature service where the issue is. 

User error.  Thanks for the help!