Prints codes
A print code is a code used to launch the automatic prints within the framework of the software's functions. A print is a generic term which may correspond to:
- In a state Crystal Reports.
- a request or an SQL query, that is an inquiry which can then be printed.
- an export to a file by using an import-export template.
In the object and function management, two internal codes can be entered in order to trigger a print. These two codes are called Print-outs and List ; they correspond to the use of functions with the same name as in the menu File in the functions.
As a general rule, some transactions trigger automatically a print in the document management. In this case, a print code is defined either by general setups or in the transaction setups.
This table is used to associate a print code (also called "internal code") with one or several reports, requests, SQL queries or exports. This link may depend or not from the connection language of the user.
When calling an internal code:
- if no corresponding line can be found in this table, the supervisor considers that this is a report code and launches it. When printing a report from a function, it makes it possible to give only its code as internal code without further details to enter.
- if only one corresponding line is found, the supervisor replaces it and launches the corresponding print.
- if several lines are possible, a window is opened for the user to choose.
Prerequisites
Refer to documentation Implementation
Screen management
Entry screen
The print codes are entered in mass in a grid. Each grid line is used to associate an internal code to a print.
Grid
Internal code (field INTCOD) |
Define the internal code that is referenced in the functions, the objects and certain parameterizations, to allow the triggering of a print. |
Print type (field TYPCOD) |
Define the print type used. As a function of this type, it is possible to select the different codes in the following fields. |
Print code (field EXTCOD) |
Used to enter the code for a print, that is to say, according to the value entered in the previous field, a Crystal Reportsreport , an import-export template, a request, or a SQL request. |
Direct print (field IMPNOW) |
If this indicator is set to Yes, the entry of the parameters is inhibited and the print is launched directly. This assumes that the default values exist. They can be in a contextual fashion via the corresponding function. If this function does not return the values in the launch context :
For the reports, the default printer will also be used if this indicator is set to Yes. This print can be entered by default in the report or in a contextual fashion. |
Language (field LAN) |
The language code makes it possible to reserve a report to a particular language. If the language is not defined, the report is available to all languages. |
Error messages
In addition to the generic error messages, the following messages can appear during the entry :
Use the deletion button
A message is displayed when trying to delete the last grid line corresponding to an internal code via the function right click/delete on the grid. This is only possible when using the button. . As a matter of fact, an integrity control must be launched, which can lead to the deletion being rejected and one of the two following messages below being displayed.
Deletion impossible / Key used in the xxxxxx function
An attempt has been made to delete an internal code referenced in the xxxxxx function.
Deletion impossible / Key used in the xxxxxx object
An attempt has been made to delete an internal code referenced in the xxxxxx object.