Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I)

 

 

 

 

 

Section for use

INITIALIZATION

 

Syntax

INITIALIZATION TransactionNum

 

Description

This instruction marks the beginning of the section for a transaction initialization.

The transaction is identified by its number TransactionNum.

 

Inside this section (block) can be found all the reading instructions of the database, the file field transfers to the associated screen fields (data flow), and the screen field display conditioning regarding this transaction.

 

In case the transaction that is to be initialized contains a subfile, the subfile loading instructions will be found in this section.

The INITIALIZATION instruction is automatically generated by Adelia (option: Level 2 generation from the Adelia menu), for all the "INITIALIZE TransactionNum" instructions with different transaction numbers and defined in the Level 1 prototype.

 

There can be only one INITIALIZATION instruction per transaction. However, there can be several INITIALIZE instructions regarding one INITIALIZATION instruction.

 

Example

***********************

INITIALIZATION 02

***********************

CHAIN ORDERS

PRESENT ORDERS

IF   OR_CUST_CODE = 0

REVERSE_IMAGE ZOR_CUST_CODE

END

CHAIN PAYMENTS

PRESENT PAYMENTS

*

MANAGE_SFL 2

* loading all order lines in subfile 2 and getting the item description

PRESENT ORDER_LINES

ZORDER_DATE = &DATE6_FORMAT('YMD';'MDY';ZORDER_DATE)

CHAIN ITEM

PRESENT ITEM

LAST_NUMBER = ZORDER_LINE_N

UPD_SFL

END_MANAGE_SFL

 

See also the list of 4GL instructions by topic

↑ Top of page


  • Aucune étiquette