AnsweredAssumed Answered

Retrieve records from related table in ArcGIS Runtime SDK for .NET

Question asked by miribsystematics-co-il-esridist Employee on Jul 25, 2017
Latest reply on Oct 12, 2017 by chad.yoder@nwg

Hi everybody,


We are using ArcGIS Runtime 100.1 and we want to retrieve records from a related table in a FeatureService.

We are able to perform QueryRelatedFeaturesAsync and get the number of features by using NumberOfFeatures but we cannot find any method/property to retrieve the data itself.


Here is the code we are using:


// Select the features based on query parameters defined above
var selectedFeatures = await idLayer.SelectFeaturesAsync(queryParams, Esri.ArcGISRuntime.Mapping.SelectionMode.New);
var feature = selectedFeatures.First() as ArcGISFeature;
var relatedResult = await table.QueryRelatedFeaturesAsync(feature);
var relatedTbl = relatedResult[0].RelatedTable;


var num = relatedTbl.NumberOfFeatures;


What next??


Thanks a lot,