How to RollBack an edition after ServiceFeatureTable.ApplyEditsAsync()

398
1
09-11-2017 08:51 PM
xiaoguangyan
New Contributor III

Hi, I want to know how to rollback(undo) an edition after ServiceFeatureTable.ApplyEditsAsync()? thanks in advanced

Tags (1)
0 Kudos
1 Reply
dotMorten_esri
Esri Frequent Contributor

When you call ApplyEditsAsync, your pending local edits are sent to the server database. There is no rollback. If you're not confident in your changes, don't apply the edits yet.

After that point, you'd have to apply opposite edits manually (ie Delete a feature you added, edit attributes to their old state etc).

Otherwise you'd have to set up versioned databases and maintain your versions serverside and only expose a specific version for users to edit, then control rollback/merging in the backoffice.

0 Kudos