Select to view content in your preferred language

Web Editing with Javascript and SDE Versions

2957
3
04-23-2014 08:22 AM
JoseSanchez
Frequent Contributor
Hello everyone,

Anyone editing SDE versions with Javascript applications.

Thanks
0 Kudos
3 Replies
RobertoPepato
Deactivated User
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 Alum
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
Deactivated User
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