Creating Dictionaries

Dictionary is a linear or hierarchical list of elements containing brief and precise information on the same topic. Most often dictionary data is arranged in accordance with a certain order (alphabetical, systematic, chronological, and so on) which makes it easy to quickly find required information.

In the multidimensional model of data, dictionary elements play the role of indexes, which are used to create a coordinate vector of indicators stored in the cube cells. Each dictionary element has a set of attributes such as element name, unique code, and element order in the hierarchy. When elements in the dictionary are combined, the hierarchy – the most important property of a dictionary – emerges. As a rule, hierarchy is displayed as a tree, which nodes contain dictionary elements linked with attributes of ownership.

Creating Dictionaries

To create a dictionary in object navigator:

A common dictionary wizard opens after executing one of the operations. Common wizard pages are described in the Working with Wizards page. On the Object Type page select the required dictionary type:

After the dictionary is created, its contents can be viewed.

There are following types of dictionaries:

NOTE. Calendar dictionary does not support drill down by the time level, only date is taken into account.

Sub <Name>(UserDim: IUserDimension; Builder: IDimBuilder; Params: IMetabaseObjectParamValues);
Begin
    //Code for building of elements tree of calculated dictionary
End Sub <Name>;

The procedure and parameters may have any names satisfying the Fore language specification.
A module is executed each time a dictionary is used. However, due to object caching in platform this operation is automatically performed only if the module is not available in cache, or when performing an Update. In general case a calculated dictionary does not require a table to store its elements. Module definition may include any repository objects, including data tables.
A calculated dictionary can be dynamically changed via parameters, that is, this is a dynamic dictionary:

Depending on the dictionary structure, there are the following types of dictionaries:

The dictionary can be:

NOTE. Dictionaries can be created only in the desktop application. In the web application, it is possible to work only with table MDM dictionaries and composite table MDM dictionaries.

See also:

Structuring Data Sets | Dictionary Viewing