Frameset opening issue

We have a form with two framesets and the bottom frameset contains an embedded view with history documents, Since upgrading to Notes 9 we get an intermittent issue whereby opening the history document causes the document to open in the bottom frame only. It should open in a new window. When this happens we cannot print from the form. Seems to be a conflict with something although I cannot identify what. We have to reload Notes to clear this.

I know this is a long shot but does anyone have any ideas what we could try to overcome this or clear the conflict. Is there anything I could do to make the document open in a new window. The code for opening the document is:

Set uidocHallLets = workspace.EditDocument(False,Doc)

and there’s no option in NotesUIWorkspace to say open in new window.

Subject: Hm?

I thought you could specify opening in a new window … but maybe I misunderstand, does it even work if you’re in a frame that’s embedded this way?

notesUIWorkspace .EditDocument( [editMode] , [notesDocument] , [notesDocumentReadOnly] , [documentAnchor$] , [returnNotesUIDocument] , [newInstance] )

Subject: SetTargetFrame

Thanks for your suggestion and sorry for the delayed reply. NewInstance didn’t work but it did lead me to SetTargetFrame(“”) which seems to have resolved the issue. This is a legacy booking system which should have been replaced years ago but the users cannot find anything that even comes close to what the Notes system can do!