LISTSERV Maestro 8.1-4 Help

Forward >> << Back Table Of Contents

Lookup Table

Defines the general settings of a lookup table:

If this screen is used to edit an existing table, then you are restricted in the way how you can edit the encoding settings: You can only change the encoding to another encoding, if the new encoding is a superset of the original encoding. This means you can "widen" the encoding from ASCII to ISO and from ISO to Unicode, but not "tighten" it in the reverse.

Note: When you use a lookup table by assigning it to a dataset or list profile field of the Single Select type or Multiple Select type, then you will only be able to use lookup tables that use the ASCII encoding or the same ISO encoding as is specified for the dataset (or in case you are working on a profile field of a list, the same ISO encoding as is specified for the dataset the list belongs to).

Advanced Settings

In addition to the standard settings, a lookup table can have additional secondary columns. The standard column of a lookup table holds the lookup table entries' names (the main values), which are used to create the entries of either a single- or multiple-select list for the user and must therefore be unique. Contrary to this, a secondary column of a lookup table holds additional entry information that is associated with the main entry.

In contrast to the main values, the values in a secondary column do not have to be unique, i.e. two different lookup table entries may have the same value in one of the secondary columns. The number of secondary columns per lookup table is generally not limited (although system limits may apply).

The values in a secondary column can be accessed in different ways:

Important: Please remember that if a secondary column is referenced in a calculation formula (using the SecondaryValue function), then this reference is by name only. Therefore, if you reference a secondary column in a formula anywhere, and then later edit the name of the secondary column in the lookup table definition (or delete the secondary column from the lookup table), then this will not automatically change the formula too. The effect will be that the formula becomes invalid, as it now references a non-existent secondary column. This in turn could cause mail job delivery errors (if the formula is used in a *Calc formula, or in a target group condition tree), or prevent the re-calculation of a derived profile field value (if the formula is used in the derivation rule formula of a derived field).

Example for using secondary columns:

An organization with customers worldwide wants to create a dataset which in its profile shall contain a single-select field called "COUNTRY" that shall allow each subscriber to select the country he lives in. For this, a lookup table "Countries" is created, with each country as an entry in the standard column of the lookup table. This lookup table is assigned to the single-select profile field.

In the organization, each country also has a service phone number that customers of that country can call for service requests. Most countries have their own number, but sometimes smaller countries share a number. For this, a secondary column called "Service Number" is added to the "Countries" lookup table, which is filled with the associated service number for each country. And since values in the secondary columns do not have to be unique, it is no problem to assign the same service number to different countries, where necessary.

The organization has also divided the world into sales regions, where each country belongs to exactly one sales region (but usually most regions consist of several countries, for example "North America", "Europe", "South Pacific", etc.). For this, another secondary column called "Sales Region" is added to the "Countries" lookup table, where the sales region for each country entry is defined (i.e. it defines to which region each country belongs). Again, this takes advantage of the fact that entries in secondary columns do not have to be unique, which makes it possible to define the same region for different countries.

With this setup, the secondary columns in the lookup table Countries can now be used in the following ways (these are examples only; there are many other additional usages):

© 2002-2017 L-Soft Sweden AB. All rights reserved.