How to filter fields and rename fields

Discussion created by ccabanero on Oct 31, 2010
Latest reply on Nov 1, 2010 by DGoyal-esristaff

I currently am working with the Identify task.  After calling identifyTask--> didExecuteWithIdentifyResults I get an array of identify results that currently has fields that I don't want (object_id, shape) and field names that I want to change (e.g. change 'shape_area' to read 'area').

What is the best practice for filtering fields from the result of an identify task?  I want to remove fields from showing up in my results view controller.  I don't see that there is an 'out fields' concept where I can declare what fields I want returned back from the identify operation.  Is this available?

What is the best practice for renaming fields from the results of an identify task?  Is there some way I can tell the identify task to return fields using friendlier looking field aliases instead of the literal field name in the map service's underlying geodatabase?