AnsweredAssumed Answered

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

Question asked by mleahyesri-ca-esridist Employee on Jul 23, 2014
Latest reply on Jul 24, 2014 by DGoyal-esristaff

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.