ComposeDocument method within frames can't pass values

I have an action button one document (A) that is supposed to open another document (B) and populate some selected fields using data already entered into document (A). However, document (B) uses frames (two frames, a header on top and the body in the bottom frame). And, I cant populate the fields in the bottom frame (where document (B) is) because Notes defaults the current document to the top frame.

Does anyone know how to choose which frame you want to manipulate in this case? I have included the code I am using below…Thanks in advance…

Sub Click(Source As Button)

Dim workspace As New NotesUIWorkspace



Dim uidoc As NotesUIDocument

Dim doc As NotesDocument



Dim newdoc As NotesDocument

Dim newUidoc As NotesUIDocument







'Get current document

Set uidoc = workspace.CurrentDocument	

Set doc = uidoc.Document



 	'Compose the new Postiion

	'Set newUidoc = workspace.ComposeDocument("", "", "assTag")

Set newUidoc = workspace.ComposeDocument("","","assTag",,,False)



Set newUidoc = workspace.CurrentDocument

Call newUidoc.FieldSetText("assDetClass", doc.HwAssClass(0))

End Sub

Subject: Try it this way instead…

'Get current document

Set uidoc = workspace.CurrentDocument	

Set doc = uidoc.Document



Dim s as New NotesSession

Set newdoc = s.CurrentDatabase.CreateDocument

Call newdoc.ReplaceItemValue("assDetClass", doc.HwAssClass(0))

            newdoc.Form = "assTag"

Set newUidoc = workspace.EditDocument(True, newdoc)

Subject: RE: Try it this way instead…

Thanks for the help, though the same “Cannot find fields” error comes up. I’m baffled!

Subject: Don’t do any UIdoc.FieldSetText. Set all your fields in the backend doc before the ws.EditDocument

Subject: RE: Try it this way instead…

[newdoc.Form = “assTag”]

Oh man… the temptation… it’s sooooo hard to resist!

Subject: RE: Try it this way instead…

I mentioned that one “next door” too. I’m assuming there are no supervisory code reviews in place…