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