In this article:
The Dictionary Structure page is used to create a logical structure of the future tree of elements.
Block is a basic element of the whole dictionary structure. Block is a conditional element which provides all elements from one data source on creating a dictionary. The number of blocks is unlimited, each of them will be bound to its source. Blocks can be general and recursive.
Creating a general block means that source records are directly projected to dictionary elements without defining any hierarchy. One general block presents one level of elements.
Creating a recursive block means that a dictionary hierarchy is created where an element can be a child of a number of other elements. In this case recursion depth depends on source data and cannot be calculated beforehand.
To create a block, select the Blocks element or title of already created block, then execute one of the operations:
In the web application click the Add Block button. The Block Properties panel opens
In the desktop application click the Add Block button. The Block Properties dialog box opens.
Set name and unique identifier of the block and block type: general or recursive.
The Parent Block Link Index drop-down list is available if the created block is a child one for any previously created block.
A primary index is created automatically for each block. This index will be used on building a dictionary to check for uniqueness and identify elements of this block only.
When creating a hierarchical dictionary (dictionary which elements are located on several levels) data source location is taken into account:
If all data is presented with one source, a dictionary is built based on the recursive block.
If data is presented by several sources, a dictionary can be built based on the combination of general and recursive blocks. Hierarchy of blocks can also be organized.
Hierarchy of blocks is created by the following algorithm:
After creating the first (parent) block select its name in the Blocks area and click the Add Block button.
The dialog box for creating the second (child) block opens.
In the opened dialog box specify name, identifier and block type. The Parent Block Link Index drop-down list is also available.
Select a unique index of the parent block in the list. On creating a dictionary by values of attribute(s), included into the selected index, parent elements are searched. Comparing of the "parent-child element" type is executed based on the link established for index attributes.
To delete the block, select its title in the list, then execute one of the operations:
In the web application click the Delete button.
In the desktop application click the Delete button.
The block will be deleted after confirmation.
NOTE. Child blocks will also be deleted.
Two types of indexes can be defined in the dictionary structure:
Block Indexes. They are created inside the block and used to check for uniqueness and identify elements of this block only. Block index can also be used to link different blocks.
Dictionary Indexes. They are created as a child element of the Indexes element in the Dictionary Blocks and Indexes area. They are used to check for uniqueness and identify elements of the whole dictionary. Dictionary indexes will be used on including the dictionary into the structure of a cube or to link data to dictionary elements.
TIP. It is recommended to create a primary index in dictionary indexes and include the attribute with the Indicator purpose to it, or any other attribute, by which there are unique values assumed. To ensure correct work of the dictionary, it is not recommended in the future to include attributes, by which empty values may be, into indexes.
To create an index, select the Indexes element in the Dictionary Blocks and Indexes area or inside any block, the execute one of the operations:
In the web application click the Add Index button. The Index Properties panel opens
In the desktop application click the Add Index button. The Index Properties dialog box opens.
Set name and unique identifier of the created index. If required, specify index functioning using the checkboxes:
Unique. Unique index checks for uniqueness data by attributes, which will be included into the index.
Primary. Unique index that is used for element identification. The primary index ensures that a dictionary has only one element with a specific attribute value (combination of attribute values).
NOTE. When a table dictionary is set up as a calendar one, create a primary index with the following order of attributes: the first attribute - BLOCK_TYPE, the second attribute - START_DATE. This index must be the first in the list of dictionary indexes.
To set attributes, which values will be checked by the index on creating a dictionary, execute one of the following operations:
In the Dictionary Attributes area select an attribute, in the Dictionary Blocks and Indexes area select an index and click the Bind button in the web application or the Bind button in the desktop application.
In the Dictionary Attributes area select the required attribute and drag it to the area of the index, to which the attribute should be included.
To delete index, select its title in the list and execute one of the operations:
In the web application click the Delete button
In the desktop application click the Delete button.
The index will be deleted after confirmation.
See also: