I am trying to create a dialog box that contains a layout region for users to select a date (with the calendar). GRIEF!
I have a date field on my form that is named the same as a date field on the dialogboxform.
I have created a action (tried with button as well), on my form with the following LS.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
Call uidoc.RefreshHideFormulas()
flag = workspace.DialogBox( "dialogboxform" , True, True , False , False , False , False , "title" , doc, False , False , False )
...
This gives me the error "DialogBox cannot be used in this context; a document must be selected."
I have looked at this thru debugger....Notes seems to have a handle on 'doc'.
What am I missing?
I have searched thru the forum and have tried my declarations in the Global and PostOpen events...doesn't seem to make a difference.