The documentation from version 39.5.17 of PLANTA project can be found in the new PLANTA Online Help.

Data Dictionary MOD009101

Access path

  • Customizer System Customizer Data Dictionary

Information

  • In this module, you can
    • create new data items
    • edit existing data items
    • edit data table header data
    • edit relations of a data table

Module Variants

Data items with structure shows the child data items below the DIs
DB options shows all DI parameters relevant for the database
DF settings shows the default parameters for the data fields, in which the DIs are included
DI use shows the frequency of use of the DIs
Exits shows the exits below the DI to which they refer
Incarnations shows the child data items of incarnations
SQL value ranges only shows DIs that have "computesql" in the Value range field.
Virtual DIs only shows DIs for which the virtual checkbox is activated.
Value ranges displays the Value range field.

Data Table

Update System Customizing

From S 39.5.20

Attention
  • If system customizing changes are made to data tables or data items (e.g. new data items are created, data item parameters are changed), the NEW Tools Restart PLANTA service menu item must be carried out in order to make the changes visible.
    • Note: If you click on the menu item, all open client connections (sessions) are closed. During restart, new client connections are not possible. This does not apply to changes made to I-texts, e.g. changes to the DI name or adjustment of value ranges (also of the VR type).
    • NEW Before restarting the service, the target directory must be deleted so it can be created anew upon server restart in order to make sure that the POJO classes contained in it, which are responsible for the meta data of the data dictionary, are generated anew.

From S 39.5.13 / DB 39.5.5

Attention
  • If system customizing changes have been made to data tables or data items (e.g. new data items have been created, data item parameters have been changed), the Reload system customizing button must be clicked on, or the Tools Reload system customizing menu item must be carried out in the Data Dictionary or Data Items modules to make the changes visible.
    • This does not apply to changes to I-texts, e.g. changes made to the DI name or adjustment of value ranges (also of the VR type).

From DB 39.5.3

Attention
  • If system customizing changes have been made to data tables or data items (e.g. new data items have been created, data item parameters have been changed), the NEW Reload system customizing button, or the menu item of the same name, must be clicked on in the Data Dictionary or Data Items modules to make the changes visible.
    • This does not apply to changes made to I-texts, e.g. changes made to the DI name or adjustment of value ranges (also of the VR type).

From S 39.5.0

Attention
  • If system customizing changes have been made to data tables or data items (e.g. new data items have been created, data item parameters have been changed), the NEW Restart server button, or the menu item of the same name, must be clicked on in the Data Dictionary or Data Items modules to make the changes visible.
    • This does not apply to changes made to I-texts, e.g. changes made to the DI name or adjustment of value ranges (also of the VR type).

Up to S 39.5.0

Attention
  • If system customizing changes have been made to data tables or data items (e.g. new data items have been created, data item parameters have been changed), the Reload forking server button, or the menu item of the same name, must be clicked on in the Data Dictionary or Data Items modules to make the changes visible.
    • This does not apply to changes made to I-texts, e.g. changes made to the DI name or adjustment of value ranges (also of the VR type).

Set column name button

Information
  • Clicking on the Set column name button starts the following action:
    • It is checked whether the SQL ID is set for all real data items.
      • If not, the SQL ID is set for the corresponding data items. The entry is composed of the "DI" text and the DI field.
        • Example: If you create data item 100001 and click on the Set column name button, the following value is entered in SQL ID: DI100001

Relations

Information

  • Data tables are linked to each other via relations. The logical correlation of the PLANTA software data thus depends on these relations.

Procedure

  • Right-click on the header of the data table.
  • Select Insert Relation.
    • A new relation record is inserted.
  • Define the relation and the relation parameters.
  • Save.

Details

  • By clicking on the link in the Index data field, the corresponding data table is displayed instead of the one that was just opened.
  • By clicking on the link in the Ident from DI data field, the corresponding data item is marked in the Data Dictionary module.

Data Items

Standard Data Items

General rules
  • Usually standard data items must not be changed.
  • Exceptions:
    • DF lengths are usually changed for alphanumeric data items. Here, it is distinguished between different DI classes:
      • DI class = 0: Classic alphanumeric data item
        • The DF length value must not be larger than the DB length value since these DIs are physically saved in the database in the size of the DB length.
        • The DB length cannot be extended.
      • DI class = 15: International text (I-text)
        • These data items behave in the system like alphanumeric DIs but they are saved in the database as 4 byte numeric DIs. The values of these data items can be saved in the available languages. Their DF length can easily be increased to 80. To do so, simply adjust the DB length.
    • Data item names that differ from the standard throughout the system can simply be overwritten. This must, however, be documented so that it can be replicated after an update.
    • Assignment of individual value ranges to standard DIs
      • The update deletes individual value ranges if they are assigned to standard DIs, even if there is a standard value range among them.
      • If an individual value range is assigned to a standard DI with standard value range, it has to be documented so that it can be replicated after the update is completed.

Attention

From DB 39.5.14

  • Since all changes made to the standard data items will be overwritten in an update, such changes should be documented (individual ICOU) and be made subsequent to the update NEW or be treated with the new PLANTA conflic management procedure.

Up to DB 39.5.14

  • Since all changes made to the standard data items will be overwritten in an update, such changes should be documented (individual ICOU) and be made subsequent to the update.
  • Note

    From DB 39.5.7

    • The standard DIs deactivated by PLANTA must not be reactivated by customer users since such DIs are very likely to be removed in one of the releases following the deactivation. If a customer user tries to activate such a DI anyway, a warning message is displayed.
    • NEW The deactivated data items are displayed grayed out in the Data Dictionary module.

    Up to DB 39.5.7

  • The standard DIs deactivated by PLANTA must not be reactivated by customer users since such DIs are very likely to be removed in one of the releases following the deactivation. If a customer user tries to activate such a DI anyway, a warning message is displayed.
  • Create Individual Data Items

    The creation, modification, and deletion of data items in data tables of the Q1B and Q2B schemas must only be carried out by PLANTA. The only exception is data table DT400, which can contain custom DIs as well.

    From S 39.5.2

    Notes
    • If individual data items are required for data tables of the Q1B or Q2B system databases, an individual data table with relation to the corresponding system database data table must be created.
    • Creating and changing is allowed in the application database data tables (Q4-Q7).
    Procedure
    • Open the Data Dictionary module.
    • Select the required data table from the listbox.
    • Right-click on an existing DI and select Insert Data item.
    • Allocate and save the name in the Name field as well as the Column type (in window 2).
      • As a result, the number of the new DI is generated automatically and some own fields, like e.g. DB type, DF type, and PPMS type, and other fields depending on the column type (data type), are filled automatically.
    • For real data items (data items with Virtual parameter = Unchecked):
      • Allocate a Python ID in the DI Python ID field.
      • Allocate an SQL ID in the SQL ID field (usually the DI addition is put in front of the automatic number, e.g. DI100001)
        • By clicking on the Set column name button (in the header area of the module), SQL IDs can be created automatically for all created DIs at once.
      • Allocate the number ascending to the number of the previous DI in the DB Pos. field. Please make sure that this field does not remain empty.
      • Activate the activated checkbox.
      • If DB length and DF length were not filled when the column type was set, please do so now.
      • Save.
        • As a result, the following message is displayed: Due to your changes to DT412, your database must be adjusted. Please select the appropriate ./xx_*.sql file (depending on the database system) and run the content on your database.
        • Warning: If other DIs are created in the same session, the schema update information is no longer displayed. The text file, however, is extended by the other DIs.
      • NEW Check the text file created by the schema update and run it on the database. For this purpose, see the next chapter Creating a Data Item in the Database.
      • Create the data item in the database by right-clicking on the newly created data item and selecting the Create data item command. Further information

    Up to S 39.5.2

    Notes
    • Only PLANTA can create and change data items in system database data tables (Q1-Q3).
    • If individual data items are required for system database data tables, an individual data table with relation to the corresponding system database data table must be created.
    • Creating and changing is allowed in the application database data tables (Q4-Q7).
    Procedure
    • Open the Data Dictionary module.
    • Select the required data table from the listbox.
    • Right-click on an existing DI and select Insert Data item.
    • Allocate the name in the Name field as well as the column type (in window 2) and save. As a result, the number of the new DI is generated automatically.
    • For real data items:
      • Allocate the number ascending to the number of the previous DI in the DB Pos. field. Please make sure that this field does not remain empty.
      • Allocate an SQL ID in the SQL ID field.
        • This is automatically done by clicking on the Set column name button.
      • Allocate a Python ID in the DI Python ID field.
    • Define further Data item parameters where appropriate.
    • Create the data item in the database by right-clicking on the newly created data item and selecting the Create data item command. Further Information
    • Save.

    New from DB 39.5.11

    Create New Column(s) from the Database in PLANTA project

    Information
    • With this function, columns which only exist in the database but not as a DI in PLANTA project can be created.

    Procedure

    • Open the Data Dictionary module.
    • Select the required data table from the listbox.
    • Click on the Create new column(s) as DI(s) button.
    • The Create Data Items module is opened. Here, all columns of the current data table which are available in the database but not in PLANTA project are displayed.
    • Activate the Copy checkbox for the columns which are to be created as DIs.
    • Click on the Copy marked data items button. As a result, the required columns are created in the PLANTA data table.

    Note

    • If there are no columns on the DB which do not exist as DIs in PLANTA, the No new data items available on the database message is displayed.

    Create Data Item in the Database

    From S 39.5.2

    Note
    • NEW The new Schema Update function replaces the Create data item (in the database) function from the context menu. That is why this context menu command has been removed.

    Up to S 39.5.2

    Context menu

    Note

    • If the relevant values are entered incompletely, a message is displayed suggesting that you complete the missing value.

    Actions on Data Items

    Context menu

    Insert Data Item

    When selecting the Insert Data Item context menu command on an already existing data item in the data dictionary, a new empty record will be inserted, in which a new data item can be defined. Procedure for inserting a data item, see here.

    Define Automatic Number Generation for Data Items

    Information

    • For particular data items of a data table you can define whether an automatic ID with this DI is to be generated in the application.

    • Automatic IDs
      • Automatic Ids (automatic numbers) are not entered manually but they are generated by the system according to a particular rule.
      • An automatic ID is only created when all foreign key DIs of the record and, if available, all mandatory data fields are filled with valid values.
    • Manual IDs
      • are allocated by the user.

    Procedure

    Note

    • An automatic number must be part of the primary key.

    Insert Exit

    Automatic Creation of Fetch Exit Data Items

    Exits

    Automatically create target data item and the corresponding exits

    From DB 39.5.7

    Up to DB 39.5.7

  • Open the Data Dictionary module.
  • Right-click on the required source data item and select the Define incarnation/fetch exit command.
  • The Define Incarnation/Fetch Exit module is opened.
    • Fill the data fields as follows:
      • From table: data table from which a data item value is to be fetched.
      • Data item: data item the value of which is to be fetched to the target data item.
    • When opening the module, the following fields are automatically filled with the data table and the DI from which the context menu command was made.
      • Source DT: data table in which the source DI is located.
      • Incarnation for: data item of the source data table via which the fetch data table is referenced to fetch the required value.
  • Click on the Create fetch exit button.
    • The fetch-data item with the exit is automatically created in the target data table (which is the source data table at the same time).
  • Automatic Creation of Incarnations and Their Child Data Items

    Incarnations

    Create an incarnation automatically

    From DB 39.5.7

    Up to DB 39.5.7

  • Open the Data Dictionary module.
  • Right-click on the required data item (ID data item) and select the Define incarnation/fetch exit command.
  • The Define Incarnation/Fetch Exit module is opened.
  • Fill the data fields as follows:
    • from table: Data table from which the name for a CO data item of the incarnation is fetched via exit.
    • Data item: Data item from which the name for a CO data item of the incarnation is fetched via exit.
  • When opening the module, the following fields are automatically filled with the data table and the DI from which the context menu command was made.
  • Click on the Create incarnation button.
    • The CO data item with the corresponding exit and
      • the incarnation data item are
      • created automatically.
  • Save.
  • Edit Data Item

    Procedure

    • Right-click on the required data item and select the Edit data item command from the context menu.
    • Open the Data Items module in which separate data item parameters can be defined and edited.
      • The Data Items module can be opened by clicking on the link in the DI data field of the required DI as well.

    Edit Exit

    Procedure

    • Right-click on the required data item and select the Edit exit command from the context menu.
    • Open the Exits module, in which separate exit parameters can be edited.

    Edit Format

    Procedure

    • Right-click on the required data item and select the Edit format command from the context menu.
    • Open the Formats module, in which separate format parameters can be edited.

    Transfer Data Items to Data Area

    Procedure

    • Enter the number of the required data table in the DT field or select it from the listbox.
    • Mark the data items that are to be included in the data area.
    • Right-click on one of the data items and select the Include Data Items in Data Area context menu command.
      • As a result, only marked data items are copied.
    • The Select Data Area module is opened automatically.
      • A new data area is created automatically.
      • If instances of the Data Areas module are still open, they will be read and automatically inserted.
        • If the data items are to be added to another already existing data area, a new record can be created in Window 1 by pressing F4.
        • Afterwards, enter the ID of the required data area in the DA field.
      • The value in the DDI field is automatically set to the ID from DI of the corresponding data table.
      • The data items selected before are displayed in window 2.
      • Click on the Include Data Item in Data Area button.
        • The data items are included in the data area.
    • Save.

    Attention

    • Although data items from different data tables can be combined arbitrarily, errors in the visualization may occur if the combination does not make any sense due to the relation.

             PLANTA project









     
    • Suche in Topic-Namen

    • Suche in Topic-Inhalten
    This site is powered by the TWiki collaboration platform Powered by Perl