Displaying coded domain values in a popupTemplate - QueryTask/Graphics Layer

171
1
08-25-2021 10:29 AM
luckachi
New Contributor III

Is it possible to display coded domain values (the text, not the numbers) in a popupTemplate for the features returned in a FeatureSet from a QueryTask? Or somehow get the domain values prior to performing the query?

0 Kudos
1 Reply
Sage
by
New Contributor II

I think its possible to use the CodedValueDomain layer support class to do this: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.h... 

There seems to be an excellent example posted here: https://community.esri.com/t5/arcgis-api-for-javascript-questions/js-api-4-16-coded-domain-values-wi...

I hope this helps