Easy one - open view not in correct right frame

Got the code below but it will not open the view on the ‘right’ target frame. All the default target view is set to right in the frameset.

What am i doing wrong?

Sub GotoView(VGoto)

Dim ws As New NotesUIWorkspace

Dim uidb As NotesUIDatabase

Set uidb = ws.CurrentDatabase

Call ws.OpenFrameSet(“Main”)

Call ws.SetTargetFrame(“right”)

Call uidb.OpenView(VGoto, , True)

Call ws.ViewRefresh

End Sub

Subject: easy one - open view not in correct right frame

Dear

goto view property in launch tab and provide frameset

Subject: There are some other things to try

First, does frame ‘right’ within frameset ‘Main’ have a default content set to some other view.

(Apologies if that was what you meant by

“All the default target view is set to right in the frameset.”

I assumed this related to targets)

Having ANY view open in the correct frame seems a good starting point.

Then I would try some other combinations of parameters,

in particular

Call uidb.OpenView(VGoto, , False , True )

or

Call uidb.OpenView(VGoto, , True, True )

both these seem plausible from the help (see below)

Let us know how you get on


Call notesUIDatabase.OpenView( viewName$ [, key$] [, newinstance] [, replaceView] )

Parameters

viewName$

String. The name of the view you want to open.

key$

Note This parameter is new with Release 5.

String. Optional. The value to scroll to.

newinstance

Note This parameter is new with Release 5.

Boolean. Optional. True to open the view in a new window if it is already open. False (default) to give focus to the already open view.

replaceView

Note This parameter is new with Release 5.0.4.

Boolean. Optional. True to replace a different open view in its window. Otherwise, opens the view in a new window. You cannot replace the view you are in.