Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I)

 

 

 

 

 

Section for use

VALIDATION

 

Syntax

SUPPRESSION_L1 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, all input fields must be set to blank or zero.

 

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

 

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 records in the program, without using the SUPPRESSION_L1 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_L1

* The previous line is used to delete the ORDER LINE in case all screen fields have been

* set to zero or blank. 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