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 button | AVANT_ENR | ENR |
Create | AVANT_CRE | CRE |
Delete | AVANT_SUP | SUP |
Cancel | AVANT_ABA | ABA |
Ok | AVANT_OK | OK button |
New | AVANT_NEW | NEW |
First | AVANT_FIR | FIR |
Last | AVANT_LAS | LAS |
Previous | AVANT_PRE | PRE |
Next | AVANT_SUI | SUI |
Selection | AVANT_SEL | SEL |
Code change | AVANT_CHG | CHG |
Printing | AVANT_EDI | EDI |
List | AVANT_LIS | LIS |
Attachments | AVANT_JOI | JOI |
Comments | AVANT_COM | COM |
Properties | AVANT_PRO | PRO |
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.