Map Values Example for Expression Configuration
You can use the Map Values field on the Expression Configuration for Auto Numbering dialog box to map values for lookups, drop-down lists, check boxes, and the current month and year.
When you map values, you create a relationship between data so that the mapped value is substituted for the value entered in a field. This enables better customization of automatic numbering to match your business requirements.
For example, assume that you want to generate the first two characters of your employee’s automatic number based on the employee's regional location in the United States: Northeast, Northwest, Southeast, or Southwest.
To do so, you complete the following actions:
- On the Expression Configuration for Auto Numbering dialog box, select EM.State as an Item
- Set the Length Used in Number field to 2.
- Click the Map Values column and then click the ellipsis icon to open the Mapped Values dialog box.
- In the Value in DPS column, insert the states Vermont, New Hampshire, Massachusetts, and Connecticut.
- Set the Value for Use in Number to NE for all.
- Complete the same steps for the states of Florida, Alabama, North Carolina, and South Carolina, but set the Value for Use in Number as SE.
- Save your changes. When the auto number is generated, the first two numbers are based on the employee's regional location.