Hi,I have the sample question regarding the Dialogbox in LotusScript, basically I add the following codes on the action button of a view, select any document(s) from this view, and click this button, I want to open the selected document in a dialogbox with a subform, But I got the error message" Dialogbox cannot be used in this context; a documetn must be selected".
I also copied some example from design help, it seems give me the same error,
Does anybody know what’s wrong with my codes?
Dim workspace As New NotesUIWorkspace
Dim doc As NotesDocument
Dim db As notesdatabase
Dim flag1 As Integer
Dim collection As notesdocumentcollection
Dim session As New NotesSession
Set db=session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc = collection.GetFirstDocument()
flag1 = workspace.DialogBox( "Sub-form name" , True , True , False , False , False , False , "test1" , doc , True , False)