Undo edits for a single AGSGDBFeature in a disconnected geodatase (iOS)

3022
1
Jump to solution
07-23-2014 07:55 AM
MichaelLeahy
Esri Contributor

Has anyone got any ideas for undoing a single edit in an AGSGDBFeatureTable object in the iOS SDK?

I can see that the AGSGDBFeatureTable object has a clearEdits method, but that will clear all edits.  I would like to clear individual edits.

The AGSGDBFeature object has a 'revert' method, but this only works with in-memory changes...not changes that have been committed to the underlying table.  What I'm looking for is basically a method equivalent to this, but one that reverts an updated or deleted feature in the underlying table back to its original state.

Any ideas?  I could come up with a routine that collects all existing edits on a given table, clears all edits, then re-applies all edits except the one I'm looking to undo...but that seems a little overkill.

0 Kudos
1 Solution

Accepted Solutions
DiveshGoyal
Esri Regular Contributor

Unfortunately, the API does not provide the ability to discard local edits on a feature by feature basis.

A good one for ideas.arcgis.com though

View solution in original post

0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor

Unfortunately, the API does not provide the ability to discard local edits on a feature by feature basis.

A good one for ideas.arcgis.com though

View solution in original post

0 Kudos