Select to view content in your preferred language

Restricting identify output

638
1
03-20-2013 01:08 PM
DonFreeman
Emerging Contributor
I think I have asked this before but right now I can't seem to find the answer. If you are performing an Identify task similar to the sample at http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Identify, how can I restrict the output to only the fields I want to show rather than all the fields available in the layer? (The identify task will always be targeted toward the same layer so the fields are known.) I think it's like setting the Outfields = "mylist" but I can't get it just now.

Thanks
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Actually, IdentityTask as no 'OutFields' property since it can target multi layers with various field names.

You can either limit the fields as the server side (by hiding some fields before publishing the service), or at the client side by ignoring or removing some returned fields.
0 Kudos