I update a Client-Side FeatureLayer by calling featureLayer.applyEdits(edits), but featureLayer.source doesn't get updated.
Solved! Go to Solution.
You can listen the layers "edit" event and call the featureTable refresh method.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#refresh
Hi there,
You cannot use source to get the features that are added or updated once after the client-side feature layer is initialized. You need to use FeatureLayer.queryFeatures to get the features in your client-side query.
I use FeatureTable with client-side FeatureLayer. FeatureTable is not updated after calling featureLayer.applyEdits(edits).
How do I update FeatureTable?
Please see my another post:
Thanks.
Forrest
You can listen the layers "edit" event and call the featureTable refresh method.
https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#refresh
It works after calling featureTable refresh method in
By the way, how to clear/remove all features in FeatureLayer?
Is it the right approach?