Embedded View - delete document

Hello All - I want to run an agent that is triggered by the deleting of a document in an embedded view, but I’m note really sure where the trigger is for this function.

The senario is:

When an employee decides not to take an already approved vacation day, I want the manager to select the approved request from the embedded view and delete it. When the manager deletes the record, I want to run an agent that gives back the employee their time. Currently the time is deducted when the manager approves the request.

As always thanks in advance.

Pat

Subject: Embedded View - delete document

Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)Sub Postdocumentdelete(Source As Notesuidatabase)

Both in Database script.

Better to mark those documents for deletion and let the schedulet agent do all the job.

Subject: RE: Embedded View - delete document

Thank you very much!