Overview
When tunneling into a function from a query / requester you may find you can’t perform any CRUD actions to that record. This is controlled by the GCONSULT variable. If you need these actions enabled you can add code similar to below to the $OUVRE label of the function’s SPE.
Example
# Allow "Edit" if from a Requestor.
If GFONCTION1 = "EXEALH" # Tunneling from requester
If left$(GCLE,8) = "ZSHGENLT" or # only for specific requesters
& left$(GCLE,8) = "ZSHGENPU" or
& left$(GCLE,8) = "ZSHGENSB"
GCONSULT = 0
Endif
Endif