AVANT_XXX

Description

This action is called before a standard button has been executed (button of the 3rd tab in the window dictionary). For each standard button, there are 2 possible actions: an action before AVANT_XXX, an action after XXX (where XXX features the buton identification ). Between these 2 actions, the dictionary action is run if it is specified on the button (in the window dictionary). The AVANT_XXX action of the END button does not exist.

The grid below contains the list of the before and after actions, for each standard button:

Button title

Action before

Action after

End END
Save buttonAVANT_ENRENR
CreateAVANT_CRECRE
DeleteAVANT_SUPSUP
CancelAVANT_ABAABA
OkAVANT_OKOK button
New AVANT_NEWNEW
FirstAVANT_FIRFIR
LastAVANT_LASLAS
PreviousAVANT_PREPRE
NextAVANT_SUISUI
SelectionAVANT_SELSEL
Code changeAVANT_CHGCHG
PrintingAVANT_EDIEDI
ListAVANT_LISLIS
AttachmentsAVANT_JOIJOI
CommentsAVANT_COMCOM
PropertiesAVANT_PROPRO
Template

Window entry

Use

    the execution of the button is prohibited via FOK=0 (no execution of the dictionary action or BUTTON action)

    a message is displayed by assigning some text to the GMESSAGE variable and selecting the type of message with GERR =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: FOK should be set to =0, but not GERR=2 that will be replaced by Call MESSAGE ( message ) From GESECRAN.