how to write update query to update data in arcgis js ?

334
3
12-04-2019 10:59 PM
abhishek_shah
New Contributor III

Thank you in advance

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

You do not write an update SQL you use the applyEdits method on a FeatureLayer class.

https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits 

abhishek_shah
New Contributor III

It will very helpful if you tell me how should i integrate featureLayer class with webscene and sceneview in a code ? because i am unable to do so in a code 

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

ScreneView is just a 3D map so the map contains layers you need to access the layer in the scenview and if that layer is from a FeatureServer service then it has the ability to applyUpdates if it is from a MapServer service then you can not apply edits. So it all depends on how your scene view is created. Is it created by adding layers in the code or by as webmap id?

0 Kudos