How open a view from a new database inside current frame?

Hello All

I’m trying to open a view from a second database inside a frameset of the active database. I was able to do it from an outline, but no way to do it using a button action. Here below is my simple code, as result of these lines I have the desiderate view opened inside a new window and no inside the already active frame. Someone can help?

Thanks in advance

Mauro

Sub Click(Source As Button)

Dim workspace As New NotesUIWorkspace

Call workspace.SetTargetFrame( “Frame2Use”) 'Frame name that exist inside the FrameSet of current Database

Call workspace.OpenDatabase( “ServerName”, “AnotherDB.nsf”, “View2Open”, , “”, “” )

End Sub

Subject: How open a view from a new database inside current frame?

Not sure it’s possible to be honest. SetTargetFrame doesn’t affect the OpenDatabase command (check the designer help, it tells you what you can use it with).