Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I)

 

 

 

 

 

Section for use

INITIALIZATION, VERIFICATION, VALIDATION, TRANSACTION, SFTKYS_PROCESS, or any other section, specifying the transaction number.

 

Syntax

DISPLAY Option SeriesVarId Transaction

 

Option

*ON | *OFF | None

 

 

 

SeriesVarId

SeriesVarId VarId | None

 

 

 

Transaction

TransactionNum | None

 

Description

This instruction is used whenever a screen field display is to be conditioned.

 

Whenever this instruction is placed in the model, a conditioning indicator is attributed to the fields indicated after the keyword.

It is primarily used for traditionally non-displayed fields which, for certain situations, must be shown.

 

It is only possible to mention a transaction number if this instruction is used with *ON or *OFF.

 

Whenever this instruction is used without *ON or *OFF, it is deactivated (indicator reset to 0) after each screen reading.

However, when used with *ON, it will remain active until executed with *OFF for the same variables.

 

Notes:

    • A variable used with a group of variables must always be used with that same group.
    • For a specific variable, this instruction cannot be used once with *ON or *OFF and another time without *ON or *OFF.
    • This instruction cannot be applied to a subfile field.

 

Example

* displays the employee header upon authority level

*

P_USER = *USER

P_PGM_NAME = *PGM_NAME

P_RETURN_GROUP = *BLANK

CALL AUTHORITY_CHECK P_USER P_PGM_NAME P_RETURN_GROUP

*

IF   P_RETURN_GROUP = 'CHRMN';'PRSDT';'MANGR'

DISPLAY *ON Z_EMPL_ADDRESS Z_EMPL_PHONE Z_EMPL_CATEGORY Z_EMPL_SALARY

ELSE

DISPLAY *OFF Z_EMPL_ADDRESS Z_EMPL_PHONE Z_EMPL_CATEGORY Z_EMPL_SALARY

END

 

See also the list of 4GL instructions by topic

↑ Top of page

  • Aucune étiquette