Forum Post: RE: Dynamic browse, can't add triggers

  • Thread starter Thread starter Matt Gilarde
  • Start date Start date
Status
Not open for further replies.
M

Matt Gilarde

Guest
The triggers are scoped to the procedure in which they are defined and they go out of scope when procedure ArmaBrowse ends. To fix this you need to move the trigger code into procedures and run the procedures from the TRIGGERS block with PERSISTENT RUN. For example, add a procedure like this: PROCEDURE ArmaBrowseReturnTrigger: MESSAGE "return" VIEW-AS ALERT-BOX. END. And change the TRIGGERS block like this: TRIGGERS: ON RETURN ANYWHERE PERSISTENT RUN ArmaBrowseReturnTrigger. [... other triggers ...] END TRIGGERS.

Continue reading...
 
Status
Not open for further replies.
Back
Top