Import/Export templates

This function defines the file formats used by the import and export functions for an object to integrate or extract data from the software database.

A file that can be used by the import module and generated by the export module is based on a file with one of the following structures:

  • Flat file with fixed-length fields
  • Flat file with separators between the fields (and records)
  • XML file

The import/export module uses the notion of objects to update the database. An object is defined by a group of tables and screens, as well as the standard actions associated with the fields and the update. In addition, there is the guarantee that all the controls and actions necessary during the database update are carried out because a single description for the object is used to both generate the code relative to an online update and an update by import.

When an object only updates a single table, the import template describes the list of fields from the table to be integrated, remembering that a block of data from the file to be imported or exported contains the data for a record; When several tables are updated by an object (for example the header and the lines), several blocks of data will be found for an instance of the object to be integrated (for example a block defining the header and N blocks, one for each line).

It is also possible to import a table without associating the notion of an object with it. The empty object field is left for this purpose and the table and the fields concerned are entered in the grid in the second section. The import is then made without any control apart from those deduced from the formats associated with the data types of the fields in the table.

Prerequisite

Refer to documentation Implementation

Screen management

An import/export template is identified by an alphanumeric code. Other than a title, two sections are used to define the technical characteristics of the template.

Tab Header

This section defines the following general characteristics of the template:

  • The data that must be exported
  • The general structure of the file such as its format, coding, and data group definition
  • The additional parameters

Tab Fields

The different fields to be imported are defined in this grid. They are organized in groups identified by the Code column in which one of the codes defined in the indicator grid of the first section is found. The field can remain blank if no table has been defined.

This section contains the grid defining the detailed structure of the groups existing in the first section. Note that:

  • It is not mandatory to define fields in all the groups. Some groups are simply technical groups that define links. For example, if the fields from the order header and the pay-by customer record are to be exported in a single group of data, you will need to define two groups (the first defining the orders, and the second associated with the customer with the appropriate link). However, only the lines associated with the second group are entered in the field section. These lines can include both the information extracted from the customer and the order header.
  • It is mandatory to define for each group the position where the group separator is located in the case of a template that can be used for imports and with multiple groups.
  • The blocks must be ordered sequentially. When a block exists for a lower level, it must follow the block to which it is linked.

Use this field to insert, from the current line in the grid, a group of fields coming from a template's table.

Indicator position re-calculation

This function is only present for templates with fixed-length file types. It recalculates the position of each of the fields in the current data group (sharing the same line indicator). The recalculation is carried out from position 1 in the first field of the group and adds the length of each field to obtain the following field's position.

Reports

By default, the following reports are associated with this function :

  PRTSCR : Screen print

This can be changed using a different setup.

Specific Buttons

Validation

Click this button to validate your import/export template.