Working with 4.23 - I am currently using a copy of the "Update FeatureLayer using applyEdits()" sample but I am running into an issue where every time I click the "Update" button after creating a point I receive an error message (below) in the console.log
Uncaught (in promise)
l {name: 'feature-layer:unsupported-operation', details: undefined, message: 'Layer does not support updating features.'}
details: undefined
message: "Layer does not support updating features."
name: "feature-layer:unsupported-operation"
[[Prototype]]: c
The graphic point is created just fine but none of the information I type into the feature form is saved. Also, if I click on an existing point and try to update those attributes nothing works. The only attributes that are saved are the ones that I have set in the graphics layer when the point is initially created.
// Create a new feature using one of the selected template items.
editFeature = new Graphic({
geometry: point,
attributes: {
KINGDOM: attributes.KINGDOM,
ADD_DATE: Date.now(),
LATITUDE: event.mapPoint.latitude,
LONGITUDE: event.mapPoint.longitude,
LATDIR: "NORTH",
LONDIR: "WEST"
}
});
My hosted feature layer has Add, Updated and Delete all selected.
I have not made any changes to the sample code so I am not quite how to get this to work the way I need it to.