javascript - ArcGIS JS API Search source searchFields - multiple fields not working -
my application not able search in 2 (or more) fileds. same problem in sample application esri.
esri app sample: http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=search_customized
on line 130, ok: searchfields: ["country"],
this ok, too: searchfields: ["rating"],
but, wrong: searchfields: ["country", "rating"],
the documentation says, searchfields
array of fields search in (see https://developers.arcgis.com/javascript/jsapi/search-amd.html#sources)
why not working, wrong?
i verified link happening because of field data type; if open sample layer rest url see "county" has string data type "rating" has integer data type.
layer's screen shot:
it not doesn't supports combination; supports such combinations need take care while pass value in text box should integer. because string uses "like" , integer uses "=" operator.
hope :)
Comments
Post a Comment