AVANTBOUT

Description

This action is called when a button or a menu has been triggered, before the execution of the process linked to this button or menu

OBJect type

Simple, Grid, Combined

Transaction

No

Use

For instance, it is possible to check the access rights to this button or menu, or to limit the possibilities in case of tunnel to an OBJect with the GCONSULTvariable. The button code is known via the BOUT variable.

GCONSULT = 0  access without limitations.
GCONSULT = 1 access to all the records being read.
GCONSULT = 2 access to the current record being read.

    the execution of the button or menu is prevented by setting the OK variable to 0.

    a message is displayed via the GERR variable= 1, 2 or 3.
Warning: Depending on the value of GERR, the button will be executed or not, irrespective of the value of the FOK variable.
    GERR=1    no button execution
    GERR=2    button execution
    GERR=3    button execution if response by button OK.

In other words, if the button should be prohibited and an information message sent: OK should be set to 0, but not GERR=2 that will be replaced by Call MESSAGE ( message ) From GESECRAN.