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

1012
4
02-08-2017 02:29 AM
Highlighted
New 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
Highlighted
Occasional Contributor II

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

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

Any progress on this? czent-esristaff

0 Kudos
Highlighted
Esri Regular Contributor

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