I'm writing an addin that requires a series of cascading adds/deletes to related tables whenever the user deletes a feature from a particular layer. If I have code that creates and deletes other rows within the RowDeletedEvent handler (see screenshot below), will those adds and deletes become part of the original edit operation?
Thanks!
Chris
Hi Chris,
You need to use CreateChainedOperation() if you want to do additional editing in the same operation. More info you will find here:
https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing
Chris, It depends on the nature of the edit and the data source.
Generally, If the additional edits occur on tables in the same workspace as the edit operation and they are versioned then yes, the edits will be part of the current edit operation for the purposes of undo/redo, save and discard. For non-versioned tables, the edit will go through without the undo/redo/save/discard capability.