The following code will select point and polyline features in a web editing application I am working on. I can save any attribute changes I make to the point features. However, when I attempt to save changes to a polyline feature class I get the following (via Firebug):Firebug Output:{"addResults":[],"updateResults":[{"objectId":2427,"globalId" : null,"success":false,"error":{"code":-2147221399,"description":"Geometry does not have M Value(s), hence cannot update the feature."}}],"deleteResults":[]}I used the polyline feature class on arcgis.com, and was able to save the attributes.
var ext = new esri.geometry.Extent(evt.mapPoint.x - 50, evt.mapPoint.y - 50, evt.mapPoint.x + 50, evt.mapPoint.y + 50, mapSR);
selectQuery.geometry = ext;
FL.selectFeatures(selectQuery, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {
if (features.length > 0) {
//store the current feature
updateFeature = features[0];
map.infoWindow.setTitle(FL.name);
map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
} else {
alert('No features selected!');
map.infoWindow.hide();
}
});