Is it possible to open a new document as a modal form?

I have a form with an embedded view. Opening a document within the embedded view always opens the document in a new tab.

Is it possible to get the document to open in a modal window???

Thanks

ST

Subject: Is it possible to open a new document as a modal form?

http://www-10.lotus.com/ldd/46dom.nsf/0/e9e51d907303dcee85256d1000048c91

Subject: RE: Is it possible to open a new document as a modal form?

Thank Bruce.

Sounds like it makes sense, haven’t tried it yet. The only thing I can forsee causing a problem is the following:

Im opening a document using an embedded view in a document. By calling the new document to open via a dialogue box will saving the contents of that document update the uidoc or the actual doc itself? Because usually dialogue box fields update the uidoc, which is what i DON’T want.

Thanks

ST

Subject: RE: Is it possible to open a new document as a modal form?

The dialogbox-local code accessing the currentdocument property of the workspace will get the document inside the dialog.

Subject: RE: Is it possible to open a new document as a modal form?

Actually, this can all be a bit confusing, since the definition of workspace.CurrentDocument is a bit flexible with regard to dialog boxes. Mainly, if you have a dbox open, workspace.CurrentDocument gets a handle for the document UNDERNEATH the dbox, which may or may not be the same document handle as the dbox itself. To reliably get the dbox’s document, you have to use the Source for the PostOpen event in the dbox form.

Opening a dbox to some other document at anytime is easy. There’s a NotesDocument parameter to the .DialogBox method. I use this all the time to create strictly in-memory documents for processing in a dbox. This allows complete flexibility, since you can write back results via script to any combination of documents you choose.

Subject: RE: Is it possible to open a new document as a modal form?

This hasn’t been my experience; when I have a different doc open in the dialog box than what’s beneath it, I definitely get the dlog doc from workspace.currentdocument. Are you saying that you get different results when the two docs are the same?

Subject: RE: Is it possible to open a new document as a modal form?

I have the exact opposite question. When I try opening a document in an embedded view, it always appears in the frame, thus replacing the view. I would like to know how to get it to open in a new tabbed window.

Subject: RE: Is it possible to open a new document as a modal form?

May I also add that I’ve tried putting the value “_new” in the target field in the Embedded view’s properties but by doing so, the entire view becomes a grey box when previewed in notes client.