When I use NotesUIWorkspace.EditDocument I get the following error "Unable to find Document window"I am using NotesUIWorkspace.SetTargetFrame to specify which frame in the frameset I want to open my document.
Here is the code:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set ws = New NotesUIWorkspace
Set db = Session.CurrentDatabase
Set uidoc = ws.CurrentDocument
Set doc = New NotesDocument(db)
doc.form = "MyForm"
Call ws.SetTargetFrame("RightPane")
Set uidoc = ws.EditDocument(True, doc, False)
If I change the code to
Call ws.SetTargetFrame(“”)
I do not get the error, but the document opens in a new window. I have checked the Launch Properties on the Form properties and this is set to open in “RightPane”
Using formula language it works fine.
How to I use LotusScript to open a doc in a designated Frame and not in a new window?
Many thanks
Adam.