AGSRelationship and primary and foreign keys

806
1
11-26-2013 05:44 AM
alexandergolubev
New Contributor
Hi.
I'm creating an iOS app that works with related layers/tables and have the following issue.
When creating a new related feature the app must set a primary and foreign keys for an AGSGraphic. To do that I need to know which fields corresponds to these values.
In the Flex ArcGIS API I found class named Relationship. It has properties named 'keyField', 'keyFieldInRelationshipTable'. I think it's what I need.
But AGSRelationship class in iOS API has no these properties, so there's no way to find which fields in AGSGraphic attributes are primary and foreign keys.
Am I correct and how can I solve this issue?
Thank you.
0 Kudos
1 Reply
DiveshGoyal
Esri Regular Contributor
These properties will be exposed in the next release.
For the time being, you can use AGSJSONRequestOperation to make a REST request to the feature service and then parse the returned JSON to get at this information.
0 Kudos