Select to view content in your preferred language

return codedValue in InfoWindow using Custom Formatter

541
0
04-29-2011 10:13 PM
HaroldBostic
Frequent Contributor
Sorry if I missed how to do this in the documentation.

I want to use one function to return the coded value for an attribute

Something like

function CVFormatter(value,key,data){
      return cvLayer.fields[key].domain.codedValues[value];
     }
I'm not sure of the way to get the index from key

Thanks in advance
0 Kudos
0 Replies