Label Expression to Display Code from Coded Value Domain

7553
6
10-05-2011 08:23 AM
TylerKiehle
New Contributor III
So, I've got a [MATERIAL] field that has a coded value domain associated with it in the geodatabase.  The domain is like:

Code    Description
CI           Cast Iron
AC          Asbestos Cement
...

How can I get the code value to use in my label expression?
Tags (2)
0 Kudos
6 Replies
PrasadRao1
New Contributor
Uncheck "Display Coded Value Description"
http://forums.esri.com/Thread.asp?c=158&f=1696&t=296653
0 Kudos
RichardLafleur
New Contributor

I have a similar question. I have a label that uses the same field on two lines but not using the coded value both times. For example how do I get the following result.

[basenameid] & vbnewline & [basenameid]

Should look like this when verified. And it does

N65432

N65432

What i want is the same code altered to say

N65432

Naval Station Glouse

basically i am using the same field but with its coded and uncoded values. So far i can't get the above script to work. what do i need to add or change in order to get the result i am looking for?

0 Kudos
AndrewZimba
Occasional Contributor

Unfortunately that only seems to work in attribute tables, not in labels.

0 Kudos
TonyDaSilva1
Occasional Contributor

Maria_TeresaAto_Vertiz1
New Contributor

This action resolved the problem.

0 Kudos
DavidForbuss1
Occasional Contributor III

Yes, that worked thank you!

0 Kudos