Data models

Use this function to define a group of linked tables, either directly or through cascading relashionships, with (1,1) or (1,N) link types to a main table that is supposed to be online.

You can then use a data model:

  • In a workflow rule:
    • Because it features the only available context to describe the tables to be scanned, as in the case of a manual-type rule, where the model is mandatory.
    • Or to enhance the triggering context (as in the case of other rule types).
  • In an allocation rule, where the model is mandatory. It defines the group of tables containing the fields upon which the user allocation rule is based. The data model associated with a workflow rule and the data model associated with the allocation rule must be identical.
  • In a ZPL report, to define the data extraction logic for printing thumbnails.
  • In a setup model, to describe the setup data to extract or copy.
  • In the description of the data to be indexed by a search engine.
  • As the first entry point to define GraphQL nodes, as the required base is a table or a set of tables with relationships. You can also define the collections and standalone references for these nodes.

    Two sections in the left list filter data models related to nodes and node collections.

If a collection or standalone reference is defined with a linked table that is not a valid node, the main node will not be generated. Linked nodes must have a data model record with a node name and a package name, and they must have property names defined for their primary keys.
This function is considered part of the development, even if it is used to support some parameters. Any record created by this function must be safeguarded with an activity code.

Prerequisites

SEEREFERTTO Refer to the implementation documentation.

Screen management

The screen is defined in 3 tabs:

  • The header,
  • The Links tab,
  • The Miscellaneous tab.

Header

This section outlines the key information for data models.

Links

The definition screen displays the entire tree structure of the tables to be processed, all of which are directly or indirectly linked to the main table. The grid lines indicate the successive joins to be performed in order to have the complete context available online.

You can add conditions to filter the linked lines. These conditions are not taken into account for indexing. Use the corresponding tab to define the conditions linked to the data to be indexed.

Miscellaneous

In this section, you can define the characteristics specific to the data model, based on its intended use.

Specific buttons

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to the implementation documentation.