AnsweredAssumed Answered

Xamarin: Feature Layer not returning custom Attributes

Question asked by flyinb on Apr 25, 2017
Latest reply on May 21, 2018 by JNery-esristaff

I am trying to Query a Feature Layer, but only the core ESRI attributes are being returned. How do i get all of the attributes? If i look at the Fields property of the feature layer (_featureLayer below) i am querying, it does list all the custom fields available, but they just aren't returning when i do a query. There isn't a "OutFields" property in the QueryParameters object that I can see...

 

Query code below.

 

var query = new QueryParameters
{
   Geometry = TreeMapView.VisibleArea,
   SpatialRelationship = SpatialRelationship.Contains,
   ReturnGeometry = true,
};

_featureLayer.ClearSelection();

var queryResult = await _featureTable.QueryFeaturesAsync(query);
var features = queryResult.ToList();
foreach (var item in features)
{
   //*** EACH item has only 7 attributes, and they are only the ESRI core ones
}

Outcomes