AnsweredAssumed Answered

FindResult attribute alias mismatch (JavaScript API)

Question asked by hodges@rpsgroup.com on Dec 11, 2014
Latest reply on Dec 12, 2014 by kenbuja

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!

Outcomes