Here is example to run event trigger procedure if procedure exists:
case event:
WHEN {&ON-CLOSE-DOCUMENT} then
do:
if lookup ( "OnCloseDocument",
THIS-PROCEDURE:INTERNAL-ENTRIES ) > 0 then
do:
run OnCloseDocument ( rid-doc ) NO-ERROR.
if ERROR-STATUS:ERROR then RETURN "ERROR".
end.
RETURN "OK".
end.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.