This function is used to describe the facts table which are to be used as base for the reports of the driven version of the software. A facts table is a data table loaded by one or several tables coming from one or several live folders and present in a datamart. It integrates:
The facts tables are not created in the folder itself but in a data structure called datawarehouse, which may be common to several folders.
The facts tables are loaded via a function integrated to the software (it is thus not necessary to use an external software of type ETL). Its parameters are defined by a dedicated function.
The ABITUNNEL entry point is used to modify the value of the OKK variable.
If [L]OKK = 0 then no tunnel can be defined on the dimension.
In any other case, it is possible to define a tunnel on the dimension.
Presentation
Is used to define the code and the title of the table but also an abbreviation which will be used to access the facts table via the update processings.
Close
Fields
The following fields are present on this tab :
|
This code identifies the current record in a unique way. It corresponds to the name of the table that will be created in the datamart database. |
|
The table abbreviation must be composed of 1 to 4 characters (letters or numbers but must start with a letter). It is the unique identifier for all the table abbreviations of the data dictionary. The Adonix reserved words are prohibited. |
|
  |
|
  |
|
  |
Close
Presentation
General information on the facts tables can be found here, notably on:
Close
Fields
The following fields are present on this tab :
Characteristics
|
An activity code is used to:
In this way, if the activity code is disabled, the marked element will not be useable, and the associated code (if any) will neither be generated nor can be activated. |
|
  |
Authorizations
|
If this box is checked, a filtering by site can be made on the data in the facts table. This assumes that a site field exists in this table. The access rights for the site in the reports will be determined by means of a function code managing the data filtered by site : the sites authorized for the function in question for a given user will be assigned to the data in the report. |
|
Mandatory if an authorization by site is defined, this field is used to define the site field code to be used to filter the data. It must correspond to a field defined in the tab Fields in the facts table. This field must in addition be of the type FCY. |
Purge info
|
This date type field is used, where it exists, to base any purging of the facts table from this date. |
|
Number of information detention days. The superior data will be purged as that calculated date. |
Generation
|
This field defines if the loading logic for the facts table must be :
|
|
If this box is checked, an object that is used to count the number of lines in the facts table is created in the universe. |
Close
Presentation
Here is the detailed definition of the fields which can be:
Close
Fields
The following fields are present on this tab :
|
  |
|
Defines the code for the field in the facts table or the table describing dimensions. This code is that under which the field is known in the database (it is automatically suffixed with the characters "_0"). It is not visible when in the management reports (it is the title that is displayed) but can be viewed if looking at the SQL syntax that extract the data from the datamart. |
|
  |
|
The field type is defined here, which characterize the entry format (numeric, any characters, date...) and the coherence controls (reference to a table for example). The principal generic types that exist : A : Alphanumeric In the case of the facts tables, it is necessary to enter the additional information for certain types (dates, miscellaneous tables, local menus). |
|
Used to define the length of a field when this field uses a generic data type where the length is not fixed. This is notably the case for the types A and DCB. |
|
When a field from the facts or dimensions table is of the type date and is defined as dimension, it is automatically associated with a dimensions table named AX3DAT, which is automatically managed. It is then possible to specify here what are the time characteristics linked to the date that will be accessed in the analyses. A list of characters to be defined is given, not forgetting there are the following correspondences :
Thus, for example, YMW signifies that a direct access is available for the year, the month and the week defined by the date. |
|
Defines the local menu number associated with the field defined on the line. When a field is of the type local menu (from 1 to 255) corresponding to the rank of a title in a table named local menu, stored in the messages table APLSTD. On entry or on display, the following are displayed according to the choices made in the user interface :
The interest of this type of entry is that the list of choices is displayed in the user connection language. Each local menu number characterises the list of available titles. For example, the local menu 1 corresponds to the choice No / Yes in this order. In this particular case, the user interface can also be a check box. |
|
If the field is associated with a miscellaneous table, the number that identifies it is defined here. |
|
Used to characterize the data in the facts table. The following values are possible:
It should be noted that a field of the type ACS (access code) is automatically defined as technical (it will not appear in the description of the fields in the facts table, but will be used to filter the data when used for queries in the facts table). |
|
  |
|
  |
|
Used to specify if a count of the number of lines available is required by criterion value. A measure of the account type is then created, to optimize the corresponding access. |
|
An activity code is used to:
In this way, if the activity code is disabled, the marked element will not be useable, and the associated code (if any) will neither be generated nor can be activated. |
Close
Action icon
Fields
The following fields are included in this window :
Block number 1
|
The table code must be composed of 1 to 10 characters (letters or numbers but must start with a letter). It is the unique identifier for all the table abbreviations of the data dictionary. The Adonix reserved words are prohibited. |
|
Corresponds to the name field in the database table (this name is automatically completed with "_0"). |
|
Title associated to the previous code. |
|
If the response is Yes on the line, the selected field is transferred with its characteristics (type, length...) to the screen from which the selection function has been called. It should be noted that, by right click on the line (without being in entry on the field), it is possible to globally set the lines to Yes or No from the current line. |
Close
This function is used to add to the field grid fields coming from a table entered previously in the header of the window being opened from the current line. If the facts table has the name of one the tables of the software, this name is proposed by default.
Default values are applied to the grid containing the lines that are thus recovered:
If fields having the same title as a field to insert already exist, they are not inserted.
Close
Presentation
This tab is used to define the various links to the dimension tables managed by the software.
A link is characterized by the code of the dimension table and by a link expression. When there are several links to a same dimension table, it is necessary to give a distinct alias number.
Note that the automatic links do not need to be described here. Automatic links are the ones generated for the following fields:
Close
Fields
The following fields are present on this tab :
|
  |
|
Define the table for thedimensions linked to the facts table. |
|
Contains the links expression that is used to move up through the dimensions table by means of its key. A links expression can be composed of fields coming from the facts table and/or constants, separated by a semi-colon when there are several. |
|
  |
|
  |
|
  |
Close
Presentation
This type is used to define the indexes which are created in the facts table in order to optimize the access times.
Close
Fields
The following fields are present on this tab :
|
  |
|
This is where the list of fields that make up the index are entered. The fields are separated by a '+' if there are several fields (for example, in the sites table FACILITY there is a key whose definition is LEGCPY+FCY). A descending sort field is preceded with the sign "-" (warning, it is used in the left list). The first field that makes up the index is without a sign and is therefore ascending. |
|
An activity code is used to:
In this way, if the activity code is disabled, the marked element will not be useable, and the associated code (if any) will neither be generated nor can be activated. |
Storage characteristics
|
A text describing the technical configuration of the table in the database is entered in this section. This text is recorded in a file "name.cfg" in the FIL directory for the application. This file is used by the "valfil" instruction. View the dedicated technical annex for more information. |
Close
Presentation
In this tab the aggregates to be managed are to be defined. An aggregate is a table storing the intermediate totals based on the various values that a field or combination of fields can take. The advantage of these aggregates is that they help optimize the access times when a report concerns only the measures totaled on one of the aggregates: the access is direct since the data are not recalculated.
In this tab, one or several aggregates can be defined:
The table Dimensions displays the list of dimensions whose crossing defines an aggregate. These dimensions can have a predefined type (date, local menu, miscellaneous table), or have type Other; this type is used to enter one of the dimensions listed in the corresponding tab.
Note that for each aggregate defined in the facts table:
The table Index is used to define the indexes in order to make faster the access to the aggregate data.
Close
Fields
The following fields are present on this tab :
Grid Aggregates
|
  |
|
This code identifies the aggregate parameterized in the facts table. |
|
This activity code is used to make the aggregates defined in a facts table optional. An activity code is used to:
In this way, if the activity code is disabled, the marked element will not be useable, and the associated code (if any) will neither be generated nor can be activated. |
Grid Dimensions
|
This field defines the dimension type that is part of the aggregation. This can be either a dimension defined in the links tab (in this case, the type Other is used), or a dimension implicitly created from the particular data type (the type Date, on which time aggregates can be defined and the types local menu and miscellaneous tables). |
|
Used to give the code of the dimension that is part of the aggregate. When the type of dimension is not Other, the first dimension of the selected type is proposed by default (it is imposed if no others exist). |
|
Value displayed that gives the list of fields concerned by the dimension that is part of the aggregate. |
|
Define the aggregation level for a dimension when it is of the type date. This can be either the day, the month, the quarter or the year (but only the levels defined in the grid containing the fields that can be used). |
Grid Index
|
This is where the list of fields that make up the index are entered. The fields are separated by a '+' if there are several fields (for example, in the sites table FACILITY there is a key whose definition is LEGCPY+FCY). A descending sort field is preceded with the sign "-" (warning, it is used in the left list). The first field that makes up the index is without a sign and is therefore ascending. |
Close
|
The following fields are included on the window opened through this button : Block number 1
Block number 2
Close This button is used to copy the record definition from or to another folder. |
This function is used to access the documentation management on the first paragraph of the documentation (if there is one) associated to the current record.
This function is used to access the link management. It is used to define the links between the current record and other records (for instance the links between functions and parameters). These links are specific to the documentation and are used to load the generation of documentation structures.
This menu is used to launch a documentation generation. The generation can also be launched from the [Generation] button at the bottom of the window.
Three types of generation can be launched one by one or simultaneously:
The range suggested by default takes into account the current record but it can be modified upon launch.
In addition to the generic error messages, the following messages can appear during the entry :
The attempt was made to create a facts table without fields.
The attempt was made to create a measure on a non numeric field.
It is forbidden to define twice a link to a same dimension.
The expression of links defined in the link grid has a component number different from that defined by the main dimension key (whose code is given in the message, the number of expected components being specified in brackets).
The field entered in the link expression has a type which does not match the component type defined in the key.
When entering in the aggregate grid a field aggregate of type date, local menu or dimension, the system verifies that the field in question is declared as dimension (and not as information or technical field) and that his type is correct. If this is not the case, one of the two previous messages is displayed.
When entering in the aggregate grid an aggregate of type Other, the link expression is only entered if there are several links to the same dimension. This error is displayed if the entered link does not match one of the link expressions of the tab Links.
These errors concern the site field specified in the first tab. This field must be of type FCY (here it is of type XXX), and cannot be optional, which could be the case if it was allocated an activity code.
These errors concern the date field specified in the first tab. This field must be of type D (here it is of type XXX), and cannot be optional, which could be the case if it was allocated an activity code.
A field defined as dimension is present is no link expression.
An aggregate is defined with no dimension associated to it.
The field that defines the site (SITE in the example) is not present in the corresponding aggregate.
When a field is used to filter the access to the facts table, it does not make any sense to manage the aggregates because they could total information which are then partially filtered in the case of a zoom on the detail.
In the aggregate tab, an existing dimension is referenced which is not declared in the tab Links of the facts table.