0

I'm new to ArcGIS API. In a form, how can you submit data to modify a feature using applyEdits? No map is involved with this.

I have a form that populates the editable data with javascript. When the user clicks save changes, I want the changes to be processed using applyEdits.

So far, I have:

var Editable = new FeatureLayer("......", {
 mode: FeatureLayer.MODE_SNAPSHOT
 });
 Editable.applyEdits(null,[ {
 "attributes": {
 "bldg_prop_id": 6086,
 "bldg_water_utility_name": "New Data"
 }
 }],null); 

This doesn't work but I'm not sure where to go with this.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Apr 14, 2014 at 18:34

1 Answer 1

1

Late response, but should it not be an Array of Graphic objects and it might be wise to add callback and errback functions even if they are optional, to get information on the error that occurs. https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#applyedits

answered Nov 30, 2014 at 12:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.