Hi All
I need help displaying a dialog form that gets values from a document when selected from an embedded view. Where can I find information on this? Has anyone done this before? Thanks for any help.
Hi All
I need help displaying a dialog form that gets values from a document when selected from an embedded view. Where can I find information on this? Has anyone done this before? Thanks for any help.
Subject: Opening a document into a dialog form
Of course, many have done this
first, in the view’s queryopendocument,
you must put code like:
Dim ws As New NotesUIWorkspace
Dim doc As NotesDocument
Dim db as NotesDatabase
Set dc = Source.Documents
If Not dc Is Nothing Then
If dc.count = 1 Then
Set doc = dc.GetFirstDocument
set db = doc.ParentDatabase
Set dialogdoc = db.CreateDocument
'copy the fields to the dialogdoc
'call dialog window
If ws.DialogBox ( “dialogDocumentField”, True, True, False, False, False, False, “Edit this” , DialogDoc, True, False ) = False Then
Exit Sub
End If
'copy the fields to the main doc, if needed
doc.Save(False, True)
End If
End If
Continue = False