Select to view content in your preferred language

Label Expression to Display Code from Coded Value Domain

8813
6
10-05-2011 08:23 AM
TylerKiehle
Occasional Contributor
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
Emerging 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
Frequent Contributor

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

0 Kudos
TonyDaSilva1
Regular Contributor

Maria_TeresaAto_Vertiz1
Deactivated User

This action resolved the problem.

0 Kudos
DavidForbuss1
Frequent Contributor

Yes, that worked thank you!

0 Kudos