Select to view content in your preferred language

How to get the attributes from the relational table by using identify?

911
5
06-09-2010 06:16 PM
weiliang
Deactivated User
Within our map service, one layer has a related table (not join). I want to get the assocated information from this table when using identify. How can this be fulfilled?

BTW, it seems that ADF can fulfill this by using default setting. But I tried with silverlight API, I cannot retrive the related table attributes.

Thanks,

Wei
0 Kudos
5 Replies
dotMorten_esri
Esri Notable Contributor
Support for querying related data will be available with ArcGIS Server v10 and the upcoming release of the Silverlight API.
0 Kudos
PauPérez_Puigcerver
Emerging Contributor
Do you know if this would be available for the API JavaScript?
0 Kudos
DominiqueBroux
Esri Frequent Contributor
0 Kudos
PauPérez_Puigcerver
Emerging Contributor
Thanks a lot for the fast answer!

Right now we are using only Map Services, but no Feature Services, and JavaScript API 1.6, using Identify Task.
Could we use this with Map Services (not necessary Feature Service), using identify task?
Is only available in JavaScript API 2.0?

Regards.
0 Kudos
JenniferNery
Esri Regular Contributor
With ArcGIS Silverlight/WPF API v2.0, you can use QueryTask (similar to the JavaScript sample as Dominique cited below).

QueryTask qt = new QueryTask(featureLayer.Url);
qt.DisableClientCaching = true;
RelationshipParameter rp = new RelationshipParameter();
rp.ObjectIds = new int[] { objectId }; //object id from featureLayer
rp.OutFields = new string[] { "agree_with_incident" }; //fields from related table
rp.RelationshipId = relationshipId; //can be retrieved from featureLayer's LayerInfo.Relationships
qt.ExecuteRelationshipQueryCompleted += qt_ExecuteRelationshipQueryCompleted;
qt.ExecuteRelationshipQueryAsync(rp);

Jennifer
0 Kudos