Hi,I'm using ajax to make requests to feature services to add, edit or delete. I have this working for adding features like this.urlParams = "[{'attributes' : {'AssetNumber' : '" + asset + "', 'Description' : '" + description + "'}}]";
var url = esri.urlToObject("http://xxxxx/ArcGIS/rest/services/ArcGISOnline/FOGIncidents/FeatureServer/1/addFeatures?features=" + urlParams + "&f=json");
var requestHandle = esri.request({
url: url.path,
content: url.query,
load: addFogRequestSucceeded,
error: addFogRequestFailed
}, {useProxy:true, usePost:true});
This works great. But when it comes to the delete operation, I'm having trouble figuring out the syntax. This is not really documented in enough detail to be useful. I know that I can either provide a where clause or a list of obectids, but I need the exact syntax.I think it would be something like:urlParams = "'where' : 'incidentID = 1'";
var url = esri.urlToObject("http://xxx/ArcGIS/rest/services/ArcGISOnline/FOGIncidents/FeatureServer/1/deleteFeatures?" + urlParams + "&f=json");
var requestHandle = esri.request({
url: url.path,
content: url.query,
//load: delFogRequestSucceeded,
//error: delFogRequestFailed
}, {useProxy:true, usePost:true});
Are examples documented anywhere? ESRI? Could also use help with edit, add attachment and delete attachment.Thanks.