Using the Use Code Standard Rule
The Use Code standard rule enables you to use code lists to validate the contents of a field and use as a reference to look up an associated description for a field. A code list is a list of values and their corresponding descriptions. Code lists seldom change and are stored within the map itself. A field with a Use Code standard rule enables values to be either checked against or selected from the codes in a specified code list. Code lists are typically used to qualify another field.
You create code lists in the Sterling B2B Integrator Map Editor as part of a map and manage them through the Sterling B2B Integrator Map Editor. You can import and export code lists and copy and paste code lists between maps. Code lists differ from the trading partner code lists used by the Select standard rule in that code lists are generally static and stored within the map file.
If you need to attach a generic code list to a map, you have two options:
- Add the code list to the map, using the instructions in Defining or Modifying a Code List.
- Create a trading partner code list but do not specify the sender identity and receiver identity. Because the code list is generic, this ensures that it is “global,” as it applies to all partners.
For more information, see: