Select to view content in your preferred language

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

771
1
08-25-2021 10:29 AM
luckachi
Frequent Contributor

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
Occasional Contributor

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