Progress
Programming
Handbook


FIND Session Trigger Example

The following is an example of a FIND session trigger for the customer table:

ON FIND OF customer DO: 
  FIND salesrep OF customer. 
  IF sales-rep NE userid THEN 
  RETURN ERROR. 
END. 

This trigger checks the user ID of the current user and compares it to the customer’s sales representative. If they are different, then the customer record is not displayed.

If you plan to use a FIND trigger for security reasons, be aware that the user can still check for the existence of records with the CAN–FIND function. This function does not fire the FIND trigger.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095