Please help me to resolve the issue.
i need to display all the field values of the relation table information of a feature on related feature class,
But we are not getting full attribute information
below code snippet
self.featureTableParking.queryRelatedFeatures(for: self.selectedParking ) { [weak self] (results:[AGSRelatedFeatureQueryResult]?, error:Error?) in
if let error = error {
//display error
self?.presentAlert(error: error)
}
else {
....
}
below is the snippet for extracting the field of "totalspots" but i am getting value of displayFieldName
let result = self.results[0]
let feature = result.featureEnumerator().allObjects[indexPath.row]
let displayFieldName = result.relatedTable!.layerInfo!.displayFieldName
let fields=result.relatedTable!.fields
print(fields)
let value1 = feature.attributes.value(forKeyPath: "TOTALSPOT")
print(value1.debugDescription)
how can i get all the attribute information of all field