In our mobile app we are allowing users to edit features while offline, then when back online to applyedits and push the updates to the server. We are having trouble having the changes updated in the viewer, only a layer refresh will show the feature updates. We have tried the following without success:
/**
* When we get a response from server that update was successful
* Query the feature layer and select the updated feature
*/
private function updateEditsCompleteHdlr(e:FeatureLayerEvent):void
{
var editQuery:Query = new Query();
editQuery.objectIds = [(e.featureEditResults.updateResults[0] as com.esri.ags.layers.supportClasses.FeatureEditResult).objectId]
e.featureLayer.selectFeatures(editQuery, FeatureLayer.SELECTION_ADD, new AsyncResponder(selectFeaturesHandler, selectFeaturesFault));
}
/**
* Refresh the updated feature so the changes are reflected
*/
private function selectFeaturesHandler(featureSet:Array, token:Object = null):void
{
//Refresh the selected feature
featureSet[0].refresh();
}
Any thoughts on how we might get the feature itself to update?Thanks--Matt