I want to update the attributes of features (rows) in a standalone table from a FeatureService. When initializing the table as a featureLayer and running update,
_featurelayer = new FeatureLayer();
_featurelayer.Url = "http://xx.xx.xxx.xxx/ArcGIS/rest/services/panafrica5/FeatureServer/1";
_featurelayer.AutoSave = false;
_featurelayer.DisableClientCaching = true;
_featurelayer.ObjectIDs = new int[] { 3 };
_featurelayer.Where = "1=1";
_featurelayer.OutFields.Add("*");
_featurelayer.UpdateCompleted += featurelayer_updatecompleted;
_featurelayer.UpdateFailed += featurelayer_updateFailed;
_featurelayer.Initialized += (s, e) =>
{
if (_featurelayer != null)
_featurelayer.Update();
};
_featurelayer.Initialize();
_featurelayer.Update();
MessageBox.Show(Convert.ToString(_featurelayer.Graphics.Count));
the server responds with the correct feature, as seen with Fiddler, however the FeatureLayer.Graphics collection remains empty. So, could someone please tell me how I then get access to the returned feature, in order to edit its attributes and finally save the edits back to the sde table layer?Thanks a lot for your response.Günther