In previous iterations of the ArcGIS Javascript API (3.X), you were able to listen for the "before-apply-edits" event when hooked to your feature layer . I can't seem to find this same event when looking at the 4.29 API reference. I can only find the event "edits", which only fires AFTER the applyEdits function completes.
Question: How can I listen for and access the edited features attributes before the edits are applied in the ArcGIS Javascript API 4.29. I would like to compare the feature's original attribute values to the feature's new attribute values after applyEdits finishes.
Or maybe there are some events related to the Editor widget that I'm missing that could help me out. I'd rather not resort storing the state of attributes every time the user changes their selection, rather, be able to access them in real time during the applyEdits event loop.
sketch-update
event, which is fired at the start of the edit and at the end of the edit.result
property. If youawait
for that promise the modifications are already applied. If you do not wait it is supposed to be "before" edits. But unfortunately I could not figure out how to modify e.g. the feature attributes during this