Hi All
I have a GeodatabaseFeatureServiceTable where I am trying to update a feature. In my code below, I create a feature from an existing feature, alter the geometry (which I can visually see change on the map), then try to update the original feature. The updatefeature fires the onApplyFeatureEditsStatusChanged of the GeodatabaseFeatureServiceTable and tells me the edits were successfully applied, but they aren't. I can check this by calling a refresh on the layer, which results in the feature reverting back to what it was. I know the feature is valid and access is ok, because if I pass the altered feature into an addFeature then it successfully adds the feature.
Is this a bug or have I missed something? The feature services has all the necessary permissions as far as I know. (update, sync).
Using AppStudio, Arcgis Server 10.3.1 federated with Portal 10.3.1.
var feature = ft.feature(ftFeatureToBeEditedId);
feature.geometry = my.graphic(theFeatureId).geometry;
ft.addFeature(feature); // this works
ft.updateFeature(ftFeatureToBeEditedId, feature); // this doesn't
ft.applyFeatureEdits();