FindResult attribute alias mismatch (JavaScript API)

1425
1
12-11-2014 03:15 PM
SimonHodge
New Contributor III

The FindResult object, returned from a FindTask, includes a displayFieldName property which as the API describes, is the name of the layer's primary field.  The FindResult also includes the feature with it's attribute object.  However, the attribute object uses alias names not field names.  This means you can't use the displayFieldName property to get the value of the corresponding attribute if your features primary field is using an alias.

Could this be a bug or an oversight, or have I just missed some trick that would solve the issue?  If not, it seems it would make sense to return the displayFieldAlias instead, which would be the displayFieldName if the attribute didn't have an alias..

Does anyone know how to report bugs to ESRI?

Thanks!

Tags (2)
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

This is also the case with Identify, also. I had a question about getting results from an Identify (which returns the field aliases) versus Query (which returns the field names).

0 Kudos