Select to view content in your preferred language

Editing in a Server Object Extension

491
1
12-17-2013 06:08 AM
RiverTaig1
Deactivated User
I know that the standard mechanism for web editing is to set up a feature service, however the issue that I have with that is that it is associated with a single transactional version (typically SDE.DEFAULT, but it can point at another version).  I have a situation where I may have many dozens of transactional versions representing multiple potential designs, and as such hitting a single version through a feature service doesn't seem to be quite the right fit.
I have an idea for creating a Server Object Extension (SOE) which would expose what is essentially a REST endpoint for purposes of editing on a version of the users choosing.  The exposed SOE method might take the name of the version to apply the edit to, a feature identifier (probably a feature class name and and ObjectID), and an array of name/value pairs of how that feature should be updated.  Similar methods might work for object creation and deletion as well. I'm wondering if anyone has tried to do something like this before or might comment as to its wisdom?  It seems theoretically possible, but perhaps changing from one version to another in an SOE is just a really bad idea for some reason that I'm not currently aware of.  It seems a little hacky to me.
Tags (2)
0 Kudos
1 Reply
RiverTaig1
Deactivated User
It appears that at version 10.1 you can change a version on a FeatureLayer.  The documentation is here: https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#setgdbversion 

Also, I found a 75 minute movie detailing editing from the ESRI Developer Conference at http://video.arcgis.com/watch/1175/building-web-editing-applications-with-arcgis-101-for-server  .  The most relevant parts related to versioning is aproximately 60 minutes into the presentation (but it's all good info)

Great documentation esri!!  You guys rock.
0 Kudos