Export
This function is used to extract the data from the database to an ASCII type file (with fixed length or variable with separators), whose structure is described by an import/export template. This export can be total or chronological, that is to say it will only export the data modified since the last export of this type.
Prerequisite
Refer to documentation Implementation
Screen management
Entry screen
At the launch of the function, this screen is used to enter the parameters related to the export to be launched.
Block number 1
Template to use (field MODELE) |
Corresponds to the implemented import-export template. |
Chrono management (field CHRONO) |
If this checkbox is activated, the export is only carried out on the records modified since the last export. The operating principle of this export mode is the following:
When an export with event management is carried out, it is possible to use the # meta-character in the name of the file to be exported; this character is then replaced by the current value of the EXPORT counter formatted over 4 characters. Thus, the file name donnees#.asc will be replaced by donnees00001.asc, donnees00023.asc, etc., based on the counter value. Of course, the EXPNUM field must exist in the table linked to the exported object for this type of import to exist. If it exists, it is automatically entered by object management, therefore it can be used for exports of this type. The current value of the [C]EXPORT counter can be modified in the import-export parameters. |
File generation
field TYPEXP |
Data file (field VOLFIL) |
Grid Range
Field (field BNOM) |
This field defines the name of the field for which a range can be entered. |
Start (field BDEB) |
Used to enter lower and upper ranges on a group of fields of the template, in order to limit the data to be exported. If this range is not assigned, no filtering is carried out on the field concerned. |
End (field BFIN) |
Grid Criteria
Tables (field FICHIER) |
The tables used in the import/export template are listed here to enable the filtering of the exported data. |
Selection criterion (field CRITERE) |
Used to define additional criteria to filter the data to be exported for the table concerned, in the form of logical expressions that must be checked and that can use the table fields. |