Functioning (detail management)

Description

In the management of an OBJect of the single type, in addition to the principal table (header table) it is also possible to manage an additional table (detail table). For example the management of orders, shipments, invoices... This detail table will have as its key the following two fields : the key field for the principal table and a line number defined as a long integer type with a length of 8.

The detail lines are numbered from 1000 in 1000s to allow a number of insertions. Thus, when a record of 3 lines is created, they are numbered 1000, 2000, 3000. The later insertion of a line (in modification) between the first and second lines will lead to the creation of line 1500. If a new line is inserted between the 2nd and 3rd line, it will be numbered 1750 etc.

The management of the header is assured by the OBJects management, the TABLEAUX process supplies the sub-programmes to be called to manage the detail lines.

This supposes a certain number of rules to be respected :

    call to the standard sub-programmes of the TABLEAUX are to be defined from the actions for the process SUBXXX.

    In addition, the actions linked to the management of the detail, can be called from the process SUBXXX. Only the action DEFLIG is mandatory.

    the standards for the screen that manages the details.