Hi All,
I have upgraded the ArcGIS jsapi 4.15 to 4.16 and the below has broken.
I am trying to track edits on the layer . I am using editor widget and click on the Add/update button on editor widget I am trying to find the newly added feature object id as shown below but it the blow code do not work after the upgrade.
editorVM.featureFormViewModel.layer.on("edits",(event: esri.FeatureLayerEditsEvent) => {
if (event.addedFeatures.length > 0) {
console.log( "event.addedFeatures[0].objectId ")
}
trying to find any alternative way to track edits on the layer
(catch the event fired after add or update happen when using editor widget)
Thank you,
Divya