Development > Script dictionary > Transaction type 

This function is used to exploit all the types of transactions. 

Transactions are used to define the properties for certain screen fields (entry, display, invisible). The Transaction generation utility, in the menu Development / Utilities / Dictionary, uses both the transaction type dictionary and the detailed definition of each transaction, to generate the screen and windows from the basic screens and windows. This utility calls the sub-program GENDOS written in the process associated with each transaction.

This information is used by the "Transaction copy" utility in the menu Development / Utilities / Dictionary, This utility calls the sub-program TRTCOP written in the process associated with each transaction.

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Presentation

This tab is used to record the information related to the transaction generation and copy.

 

Close

 

Fields

The following fields are present on this tab :

Block number 1

The code for a type of transaction is constructed from 1 to 10 alphanumeric characters. The Adonix reserved words are prohibited.

 

  • Description (field ZDES)

Enter the description of the relevant record.

This long description is used as a title in screens and reports.

Generation

  • Active (field ENAFLG)

Select this check box to activate the current record.

Disabled records keep their content and setup but cannot be used (by recalling their code) on other records (documents, settings ...), or for mass processes.

The authorizations to a given function can prohibit the creation of an active record. In this case, the check box is disabled by default. It can only be modified by an authorized user or through a signature Workflow.

An activity code is used to:

  • make optional an element in the dictionary if the value associated with the activity code is null.
  • identify the specific/custom elements if they are marked with a code starting with X, Y or Z.
  • size a maximum number of lines when the activity code marks elements from a grid.

In this way, if the activity code is disabled, the marked element will not be useable, and the associated code (if any) will neither be generated nor can be activated.

  • Module (field MODULE)

The module to which the transaction type belongs. The selection of the transaction types from the "Transaction generation" utility is organised by module. The copying of transactions can only take place for active modules.

  • Script (field CODTRT)

The generation of the associated screens and windows must be programmed in the GENDOS sub-program of the process indicated in this field.

The copying of the transactions must be programmed in the TRTCOP sub-program of the process indicated in this field.

This is the object that will use the window generated by the entry transaction.

Block number 3

  • Copy (field COP)

The copy is authorized for this transaction if the "active" and "copy" flags are set.

Transaction

"Entry transaction" object as well as the table associated with it.

 

  • Field code (field FLDCOD)

Field in the table on which a selection range will be applied at the start of the copy utility.

  • Condition (field CND)

Expression used in the copy utility in order to process only certain transactions.

Block number 5

Close

 

Specific Buttons

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 transaction type definition to another folder.

Menu Bar

Options / Validation

Error messages

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

Reserved code

The entered process code is a code reserved for Adonix, and it therefore cannot be used.

Non-existent field

The field entered must exist in the table identified above.

 

Tables used

SEEREFERTTO Refer to documentation Implementation