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();
Hi Paul-
Your code looks right. Based on your sample code, I ran some a similar test against a sample feature service, and it works just fine. You're basically doing the same thing as what is in the "Local Geodatabase Editing" QML Sample. It sounds like this could be a bug. I suggest you contact Esri Support Services to have them help further troubleshoot the issue and log a bug if appropriate.
Thanks,
Luke
Thanks Luke - I have logged it as a bug and will wait to see what comes out of that.
Cheers,
-Paul
Paul-
Did you ever get a bug logged for this with support? If so, please include the bug info so anyone else hitting the issue can track it.
Thanks!
Luke
Info can be found at:
I think the bug reference is AppStu-000113
One of the devs is having a look at this at present.
Cheers,
-Paul