Listen to Save event

584
3
05-16-2019 05:51 AM
BerendVeldkamp
Occasional Contributor II

Is there a way to detect when a user presses the Save button, after making changes to a featureclass? I know of the EditCompletedEvent, but that's fired directly after a row is edited. I would like to know when the final commit to the database occurs.

If it makes any difference, I'm using a File Geodatabase, not an Enterprise Geodatabase.

Tags (2)
3 Replies
RichRuh
Esri Regular Contributor

Hi Berend,

Take a look at the EditCompletedEventArgs that are passed in EditCompletedEvent.  There is a CompletedType property.  If the value of this is EditCompletedType.Save then you're in the process of saving edits to the geodatabase.

I hope this helps,

--Rich

BerendVeldkamp
Occasional Contributor II

Thanks, that seems to be what I was looking for.

Is there a way to get hold of the modified features at that point? Or do I have to keep track of it myself, when CompletedType is Operation?

0 Kudos
RichRuh
Esri Regular Contributor

Getting a list of edits that have taken place on a geodatabase is on our roadmap, but unfortunately not yet implemented.