I need to query a layer by field other than display field so I try to add this statement to my doQuery function but it didn't work:
query.where="situs LIKE '%{fText.text}%'";
Only add where clause to this, it will work:
<esri:Query id="query" returnGeometry="true" outSpatialReference="{myMap.spatialReference}" where="situs LIKE '%{fText.text}%'">
</esri:Query>
Can someone tell me why?
Thank you.