How can I get a save oder cancel event for an edit session

02-08-2017 02:29 AM
Esri Contributor

I subscribe in my code the EditCompletedEvent in ArcGIS-Pro.
When the user stops an edit session my method onEditComplete is called.
How can I decide in my code whether the user saved or canceled the edit session.
I think EditCompletedEventArgs do not support such an analysis.

4 Replies
Occasional Contributor II

Maybe EditCompletedEventArgs.Members is an empty collection if edit session is cancelled?

0 Kudos
Esri Contributor
Unfortunately all collections are empty in both cases, save and cancel,
there is no difference
0 Kudos
Esri Contributor

Any progress on this? czent-esristaff

Product Manager
Developers and Location Services
Germany and Switzerland
0 Kudos
by Anonymous User
Not applicable

Currently there is no public event for save or discard. This is being addressed for the next release and will either be a new event or an extension of EditCompletedEventArgs.

Please let us know if you have any other edit event requirements.

0 Kudos