Setup > Destinations > Default values 

When launching a print from an X3 function, it can be interesting to propose default values to the launch setups.

This function is used to store values by default for the print setups as a function of the launch context (identified by a function code). A print means printing a Crystal Reportsreport , launching a request, an SQL query, or an export.

Prerequisite

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Presentation

When a record is selected for update, a list of setups with associated values can be found, associated with the function and printing code.

Upon creation of a new record, the setup grid is loaded with the list of setups defined for the chosen print.

In all cases, it is possible to:

  • enter the calculated expressions depending on the context in order to assign the setup values.
  • delete the setup lines if it is requested that the said setups are not assigned by the function.
  • enter the setups in a grid (in order to complete the list of those already entered).

Close

 

Fields

The following fields are present on this tab :

Block number 1

Define the function code corresponding to the context for the launch of the 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.

  • field ETAT

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.

  • field DESETA

Title associated to the previous code.

Grid

  • Parameter (field PARDES)

Define the parameter code to be entered.

  • First default (field VALDEF1)

Entered here is the value for the parameter, in the form of a calculated expression that uses the variables linked to the launch context. If the parameter is a start/end range - two values must be entered.

  • Last default (field VALDEF2)

 

Close

 

Action icon

All the setups

This function is used to select a setup among those which are not in the grid yet in order to be assigned a value.

All the setups

This function is used to complete the list of setups associated with a print when it is not complete, which can occur if the print setup list was modified or if the setups had been first deleted.

 

Close

 

Menu Bar

The following fields are included on the window opened through this button :

Block number 1

  • field OBJET

 

  • field CLES

 

Block number 2

  • From folder (field DOSORG)

Indicate the folder from which the record is going be copied. The possible syntaxes are described in the dedicated appendix.

  • All folders (field TOUDOS)

This option is used to copy the record to all the folders defined in the dictionary (ADOSSIER table from the current solution).

  • To folder (field DOSDES)

Indicate the folder in which the record is going be copied. The possible syntaxes are described in the dedicated appendix.

Close

This button is used to copy the record definition from or to another folder.

Error messages

In addition to the generic error messages, the following messages can appear during the entry :

Setups all present

All the setups present in the corresponding dictionary are present (if this is the report dictionary, only the setups that can be entered are concerned).

Non existent Report folder

An attempt has been made to copy this record to another folder in which the report does not exist.

Export impossible with this template

The entered import-export template cannot be used in export.

Tables used

SEEREFERTTO Refer to documentation Implementation