testupdate.applyEdits(null, [params], null, function test1(){alert("good to go")}, function(error){ console.log(error); } );
what does your [param] graphic look like that you are attempting to modify?
verify that the following properties are set correctly:
graphic.geometry
graphic.attributes
Also, what feature type is geometry that you are modifying? Note that the Javascript API does not allow you to modify Polylines that are m-aware.
function init() { //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic //for details on setting up a proxy page. esri.config.defaults.io.proxyUrl = "proxy.php"; testupdate = new esri.layers.FeatureLayer("https:myservice",{ mode: esri.layers.FeatureLayer.MODE_ONDEMAND, //QUERY_SELECTION is working as well outFields: ['*'] }); //build query queryTask = new esri.tasks.QueryTask("https:myservice"); //build query filter query = new esri.tasks.Query(); query.returnGeometry = false; query.outFields = ['*']; console.log("php id", ProjID); dojo.connect(dojo.byId("saveclose"), "onClick", querytable()); }
what does your [param] graphic look like that you are attempting to modify?
verify that the following properties are set correctly:
graphic.geometry
graphic.attributes
Also, what feature type is geometry that you are modifying? Note that the Javascript API does not allow you to modify Polylines that are m-aware.
function init() { //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic //for details on setting up a proxy page. esri.config.defaults.io.proxyUrl = "proxy.php"; testupdate = new esri.layers.FeatureLayer("https:myservice",{ mode: esri.layers.FeatureLayer.MODE_ONDEMAND, //QUERY_SELECTION is working as well outFields: ['*'] }); //build query queryTask = new esri.tasks.QueryTask("https:myservice"); //build query filter query = new esri.tasks.Query(); query.returnGeometry = false; query.outFields = ['*']; console.log("php id", ProjID); dojo.connect(dojo.byId("saveclose"), "onClick", querytable()); }
Assuming that you are using a FeatureService then you should make sure to use the FeatureLayer.queryFeatures methods rather than the query task.
http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/featurelayer.html#FeatureLayer/queryFeature...
Once you have retrieved your results, verify that the graphic of interest has the properties that you need.
If not then there is some underlying issue with your service or SDE database (as pointed out in above post).
Test your code with the ESRI sample feature service:
http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0
where .../0 is the first layer in the feature service that they are interested in.
I'm running into the same issue. I can correctly apply my edits, but receive the error callback. The features are saved absolutely fine in the geodatabase. I got error TypeError: _271 is undefined.