Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I)

 

 

 

 

 

Section for use

VALIDATION

 

Syntax

SUPPRESSION_L2 Parameter

 

Parameter

*NO_MR | *MR | None

 

Description

This instruction is used in the block for controlling subfiles.

It allows for the automatic deletion of the file record which corresponds to the subfile line.

 

For deletion to occur, the first entry alphanumeric field of length 1 in the subfile must contain the deletion character value defined in the screen standards ("Deletion code" field).

 

To use this instruction, at least one subfile field must be used in the data flow, and the PRESENT instruction in the INITIALIZATION block of the transaction. The PRESENT instructions must use the view corresponding to the subfile updating, and not the view *N.

 

If these rules are not applied, the program cannot manage the saving of the key files, for the records to be deleted; you must then explicitly write the instructions to handle the saving and then the deletion of the records in the program, without using the SUPPRESSION_L2 instruction.

 

Warning: This instruction does not send a confirmation screen before deletion.

 

The *MR parameter allows you to generate deletion implicit management rules that are linked to the entity corresponding to the view, even if the program is generated without the option to generate implicit management rules.

 

The *NO_MR parameter allows you not to generate deletion implicit management rules that are linked to the entity corresponding to the view, even if the program is generated with the option to generate implicit management rules.

 

Example

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

VALIDATION 03

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

MANAGE_SFL 3

SUPPRESSION_L2

* The previous line is used to delete the ORDER LINE in case the option field is

* equal to 4 (supposing that this is the default suppression code)

* Any other update/create instruction will have no effect.

*

STORE ORDER_LINES

END_MANAGE_SFL

 

See also the list of 4GL instructions by topic

↑ Top of page


  • Aucune étiquette