HiCan anyone advise me on the steps to create a response document based on a condition via an agent (background, checking a date) using LotusScript?
Thanks.
HiCan anyone advise me on the steps to create a response document based on a condition via an agent (background, checking a date) using LotusScript?
Thanks.
Subject: Create a response doc via agent with script
Coll,
Once you have a handle on your main document, create a document as normal (using the New NotesDocument(db) method
Once the new document is about to be saved, use the MakeResponse method to make it a response of your main document
HTH
Mike
Subject: RE: Create a response doc via agent with script
The example from the MakeResponse method in the R6 Help illustrates this a treat (although its not using a new doc):
Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim docA As NotesDocument
Dim docB As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView( “All documents” )
Set docA = view.GetFirstDocument
Set docB = view.GetNextDocument( docA )
Call docB.MakeResponse( docA )
docB.Form = “Response”
Call docB.Save( True, True )
HTH
Liam