Skip to content

Auxiliary tables#

An auxiliary table is a table of codes and descriptions: the zones, the product families, the payment methods. It gives code dimensions (lookup ones and hierarchies) the description of each value, its order and, in a hierarchy, its levels. Users see “Norte” (North) instead of N, and choose the values from a list instead of typing them.

Before you start#

  • You need Metadata administration.
  • The table has to be in the catalog and have a primary key: ““…” has no primary key: it cannot be an auxiliary table.”

Register an auxiliary table#

  1. In Structure, click New auxiliary table…. It can also be done from the panel of a dimension, in its Lookup section.
  2. Choose a table from the catalog. Those that are already auxiliary tables cannot be chosen.
  3. Click Create auxiliary table.

The table appears in the Auxiliary tables group of the tree, with its physical name, and its panel opens.

A table that is already a fact table can also be an auxiliary one (in the demonstration, CLIENTES, PRODUCTOS and VENDEDORES). If that fact table has universes, they also apply to the values chosen from it: whoever only sees the customers of the North can only choose customers of the North when segmenting.

The panel of an auxiliary table#

Properties#

What is set here is what is proposed when linking a dimension with this table. Each dimension can change it afterwards in its Lookup section.

Property What it is
Description column The column with the text users see instead of the code.
Sort The columns by which the values are sorted: the code, the description or another.
Range from and Range to Two columns that gave ranges in Empowerment Center 7. They are kept (in the demonstration, EDAD_DESDE and EDAD_HASTA of AUX_TRAMOS_EDAD), but ECenter 8.0 does not use them. To group by ranges, create a grouping by ranges (see Groupings).

Creations and deletions from forms#

In a form, the field of a lookup dimension is filled in by choosing a value from its auxiliary table. From that selector, whoever has the privileges of this section can also create, change or delete values of the auxiliary table:

Privilege What it allows
Add values Adding a new value to the auxiliary table.
Change values Changing the description or other columns of a value.
Delete values Deleting a value that no record uses.

Without a privilege (No one), nobody can do it. A value used by some record is never deleted. The selector of each privilege also offers New privilege… to create it without leaving the panel.

In the demonstration, the after-sales team can add new incident types in AUX_TIPOS_INCIDENCIA from the incidents form.

Fields#

One row per column, with its type according to the catalog and the Primary key mark on the key ones:

Column What it is
Description The column header when the table's values are displayed in the edit forms, and when creating a value.
Next-value SQL Gives the column's value when a value is created: a statement the database recognizes, with a sequence or a function, so that the key is unique even if several users create values at the same time.

Click Save changes to save the properties, the privileges and the fields.

If the database table gains columns, after Refresh catalog a note at the top of its panel says which ones are not fields of the auxiliary table; Add as fields adds them. As with fact tables, what is no longer in the database is not removed.

Indexes and usage#

Indexes shows those of the database, for information only. Who uses it? says which dimensions use it and, through them, which documents.

Delete an auxiliary table#

  1. Choose the auxiliary table and click Delete… (or Del in the tree).
  2. If any dimension uses it, ECenter shows what would happen and what prevents it.
  3. Confirm with Delete auxiliary table.

The database table is not touched. An auxiliary table cannot be renamed: its name is that of the database table.

See also#