Calendar View Button To Create New Copy Of Selected Document In View

I recently was asked to create a button in a calendar view that would let a
user have the ability to select an existing document and create a clone of it
in edit mode. A date field could then be modified and the document saved.

It would save the user the steps of cutting and pasting the document and then
opening the new document in edit mode to change the date.

Of great use to authors where documents have essentially the same information
but only one or two fields need revising.
Dim session As New NotesSession
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Dim newdoc As NotesDocument
Dim uidoc As NotesUIDocument
Set db=session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = session.DocumentContext
Set newdoc = New NotesDocument(db)
Call doc.CopyAllItems(newdoc,True)
Set uidoc=ws.editdocument(True,newdoc,False)

Dig Deeper on Domino Resources - Part 2

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...