graphic.attributes[displayFieldName].toString()
Andrew,
it is actually not an API thing it is how ArcGIS Server has alway handled the Identify operation. ArcGIS Server returns the alias for fields, so the API has to work with this.
Drew,
I handle this issue in my Identify widget by asking the map service for details of the layer and matching the alias to the actual field name (alot of work I know, but somethimes you just have to do what you have to do).
I am primarily wondering why ESRI decided to do this. Is there an advantage that I am missing or was this an over site and should it be looked at or should there be an additional object that contains the fields we need in the IdentifyResult object.
It has just always been a frustrating part of the code to deal with.