LOTUSSCRIPT/COM/OLE CLASSES


Examples: MakeResponse method
This script makes the second document in a view a response to the first document in a view. It also modifies the Form item in the second document so that it displays in the user interface as a Response.

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 )

See Also