Select to view content in your preferred language

Is it possible to filter out the attributes returned by the IdentifyTask?

520
2
01-12-2012 05:30 AM
PrashantKhanal
Emerging Contributor
I am using IdentifyTask to get the features in a Polygon geometry. I am getting the correct result but I don't need all the attributes for features, All i need is the object id of the features. Is it possible to filter out the attributes to be returned by the IdentifyTask?
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
It is by design that you are getting all attributes as response to the Identify request. You can simply ignore the attributes you don't need.

In this SDK sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify you can update the following code:

 <slData:DataGridTextColumn Binding="{Binding Path=Key}" FontWeight="Bold"/>
 <slData:DataGridTextColumn Binding="{Binding Path=Value}"/>


to

 <slData:DataGridTextColumn Binding="{Binding [ObjectID]}"/>
0 Kudos
JohnWall
Regular Contributor
I have tried subsitution listed above, but it does not seem to work in my case. I have used this code:

<slData:DataGridTextColumn Binding="{Binding [OBJECTID]}"/>


While my features (points at the moment, soon to be points and polygons) appear to be identified, there are no attributes associated with them. Is there something else I am missing?
0 Kudos