Hi,
Yes, i am also able to update the feature without any error, But after update of feature, it is not coming to "EditComplete" event for this service:Layer: Areas (ID: 9) . So, how do i know whether the feature has been updated or not ???
I am selecting the feature by drawing graphics on the map load and then draw a graphics from draw widget tool and update the geometry with the graphics made by draw widget:
var newUFeatureLayer = new FeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Military/FeatureServer/9" );
newUFeatureLayer.on("edits-complete", function(evt) {
if(evt.adds.length >0 && evt.adds[0].success == true)
{
}
else if(evt.updates.length >0 && evt.updates[0].success == true)
{
}
});
var newUGraphics = existingFeature.setGeometry(this._graphicsLayer.graphics[0].geometry);
newUFeatureLayer.applyEdits(null,[newUGraphics],null);
It is working fine, i.e. coming to "edit-complete" event when i am creating a new feature and then deleting the old one