AUTORIS
Description
This action is called at the very beginning of the template. The template has checked that the user is authorized to launch this inquiry.
Template
Enquiry
Use
It is used to perform additional checks on the template and to prevent the inquiry by positionning OK = 0.
It can also be used to change the memo code associated with the inquiry based on the context by feeding the MEMO variable.
For instance:
Inquiry of the ATB balance. BAG inquiry.
$AUTORIS
If GFONCTION="CONSBAG"
MEMO="bag"
If PARAM(1) = "2": MEMO = "bg2": Endif
Else
MEMO="bah"
If PARAM(1) = "2": MEMO = "bh2": Endif
Endif
Return