Hello,
I’m developing an application on college at the moment, and I’ve came to a bit of a problem here.
I’ll shortly describe my problem:
I’ve created a frameset called “RotRbsFrameset”. In this frameset I defined five frame’s. The content frame is called “NotesView”, I want all my views, documents etc to open in this frame.
So, I’ve inserted a company in my database, which I open afterwards, there is a button on this form. Once I hit this button, it has to open a new form in the same frame, NotesView. The problem is, that, once I hit the button, it opens in a new tab. I’ve tried about everything, so I’m asking for your help now.
Once I add the code: Call workspace.SetTargetFrame(“NotesView”) I get the error: “Notes Error - Target frame is a ancestor blabla”
I’ve searched on this forums for the solution, but havn’t found the solution yet.
Here is the code for the action button:
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim id As String
Dim uidoc As NotesUIDocument
Dim uidoc2 As NotesUIDocument
Set db = session.CurrentDatabase
Set uidoc = workspace.CurrentDocument
id = uidoc.FieldGetText("RotRbsBedrijfID")
Set uidoc2 = workspace.ComposeDocument("", "", "RotRbsFormContactBedrijf")
Call uidoc2.FieldSetText("RotRbsFormContactBedrijfID", Cstr(id))
Call uidoc2.Refresh
End Sub
Thanks in advance,
Stephan