Manage Learn to apply best practices and optimize your operations.

Just Some Ideas About Opening Documents

Just some ideas about opening documents (just like open parent doc when clicked on response).

p.s. i didn't test this code (but must work:) )
Sub Queryopendocument(Source As Notesuiview, Continue As Variant)
dim docset as NotesDocumentCollection
dim doc as NotesDocument
set docset=source.documents
set doc=docset.Getfirstdocuent
'just get document on which user clicked
'now u can put any code here and make anything with this doc:)
'u can use Queryopendocument event if u want to check maybe some config (like users want to open documents in edit or read mode automacily (Set notesUIDocument = notesUIWorkspace.EditDocument( [editMode [, notesDocument [, notesDocumentReadOnly [, documentanchor$ ]]]] )))
'sample (read parent document and open it in edit mode)
dim session as New NotesSession
dim db as NotesDatabase
dim uidoc as NotesUiDocument
set db=session.CurrentDatabase

if doc.IsResponse then set doc=db.GetDocumentByUnid(doc.ParentDocumentUnid)
uidoc=uispace.EditDocument True, doc
continue = false
End Sub

Dig Deeper on Domino Resources - Part 5

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 ...