Web Editing with Javascript and SDE Versions

2693
3
04-23-2014 08:22 AM
JoseSanchez
Occasional Contributor III
Hello everyone,

Anyone editing SDE versions with Javascript applications.

Thanks
0 Kudos
3 Replies
RobertoPepato
Occasional Contributor II
Hello everyone,

Anyone editing SDE versions with Javascript applications.

Thanks


Are all your javascript users editing the same SDE version? If your answer is yes, just publish your feature service with the correct version set and you are good to go. If you need to choose at runtime which version the data will be posted to, you'll need to talk to the rest API.

http://resources.arcgis.com/en/help/main/10.1/index.html#/Publishing_feature_services/01540000033700...
http://resources.arcgis.com/en/help/rest/apiref/

Regards,

Roberto Pepato
0 Kudos
JohnGrayson
Esri Regular Contributor
Editing a specific geodatabase version is supported in the JS API.  For example, you can use the FeatureLayer.setGDBVersion(...) to target a specific geodatabase version.
0 Kudos
RobertoPepato
Occasional Contributor II
Editing a specific geodatabase version is supported in the JS API.  For example, you can use the FeatureLayer.setGDBVersion(...) to target a specific geodatabase version.


Wow, this is great! I didn't known this capability.

Maybe someone from Esri could adjust the documentation (see the note box) on ArcGIS Server 10.1 to reflect this information?

http://resources.arcgis.com/en/help/main/10.1/index.html#/Publishing_feature_services/01540000033700...

Regards,

Roberto Pepato.
0 Kudos