Relationship Classes and Map Service Queries

975
2
04-14-2010 04:41 AM
RafaelFerraro
New Contributor II
How exactly are relationship classes/related data handled in a REST identify query? 

In my case, each parcel in a feature class may be related to one or more records in a related survey table.  This layer is available as a map service. If I consume the map service in ArcGIS desktop, performing an identify query works exactly as I expect; I get all of the related survey records for a selected parcel.

When I perform an identify query in a Flex Client, I only get the attributes of the selected parcel, none of the related survey records are returned. 

Is this a limitation of the REST query, or am I missing something here?
0 Kudos
2 Replies
RaviNarayanan
Esri Contributor

When I perform an identify query in a Flex Client, I only get the attributes of the selected parcel, none of the related survey records are returned. 


This is expected behavior. MapService Identify and Find operations are not designed to return related records. To fetch related data, queryRelatedRecords operation should be used.

Thanks
Ravi
0 Kudos
RafaelFerraro
New Contributor II
That functionality looks to be available in the Flex API 2.0.  How do I do this in 1.3?
0 Kudos