Is it possible to use FindTask to search within descriptions of coded value domain? In the code snippet below I am referring a field of integer type that uses CVD. When I input the value for example 2 or 5 it returns the results but when I try to input string like 'Bike Valet' it does not return anything.
// Create a FindTask pointing to a map service
var find = new FindTask({
url:
"https://services.maps.arizona.edu/pdc/rest/services/DayGato/MapServer/"
});
// Set parameters to only query the Counties layer by name
var params = new FindParameters({
layerIds: [53],
searchFields: ["RackType"]
});
Codepen can be found here
Solved! Go to Solution.
Hi Naveed,
Provided sample code in an attachment to retrieve the domain information using QueryDomains call. There might be other workarounds. I haven't spend much time, so please feel free to change the code according to your requirements.
If this is not possible directly then could you please suggest some workaround for this.
Thanks Ravi
Glad it worked!!