Opending a Document in a New Frameset

I have a document with embedded views. Instead of opening the document from a view to its own tab in a Notes client, I want to open a two pane frameset in its own tab with the document in the top frame and a preview of docs from the embedded view in the bottom pane.

I have unsuccessfully tried the following code first in the view Querydocumentopen event, then in a an agent and then in a library sub called from that event:

Call workspace.OpenFrameSet("DocumentContent")

Call workspace.SetTargetFrame("NotesDocument")

Call workspace.EditDocument(False, doc)	

I then tried a three pane frameset with a Page opening in one pane. The view Querydocumentopen event has:

Call workspace.OpenFrameSet("DocumentContent")

While the Page Postopen event has:

Call workspace.SetTargetFrame("NotesDocument")

Call workspace.EditDocument(False, doc)	

That worked the FIRST time a document was open. If the frameset is closed before opening a second document, I get “Nonexistent frame of frameset specified.” If I don’t close the frameset and go back to the view to open second document the newest frameset is opened in the “NotesDocument” frame of the previous frameset (not surprisingly).

I suspect this has thought of before and perhaps Notes doesn’t support this. Is that right? Does anyone know of solution method?

Subject: Opending a Document in a New Frameset

Have you played around with the Auto Frame parameter on the Form definition? It’s on the Launch tab of the Form properties dialog.

From the description, perhaps you could have a form formula in your embedded view that would open the document using a Form that is set up with the Auto Frame settings included.

To test it, I would probably set up a separate form just in case this setting messes up something on your form (I saw an issue here where someone was not able to turn off the setting).

disclaimer - I have not used this, but it sounds like it might work for what you’re trying to do

Subject: RE: Opending a Document in a New Frameset

Thanks, that was really helpful. Didn’t even think about that one :slight_smile:

Subject: Opening a Document in a New Frameset

That seems to do the trick. Thanks!