Pop from embedded view in Notes client

When users double-click a document in an embedded view in the Notes client I want it to display in a popup window rather than full screen. I have tried using @DialogBox in the QueryOpenDocument event but it doesn’t have any affect. This is a Notes client database, not web-based. Does anyone have any suggestions?

Thanks,

Charles

Subject: pop from embedded view in Notes client

I always put the code in the queryopendocument event of the view, using the dialogbox method in lotusscript. Works great.

Dan

Subject: pop from embedded view in Notes client

Thanks for the responses, but none of them were really helpful. I finally figured it out, using NotesUIWorkspace.Dialogbox. Here’s my code, I hope it helps someone else.

This code is from the view’s QueryOpenDocument event. I am using the CaretNoteID property so it will only work in Notes 6+ and it is not backwards compatible.

– Charles


Sub Queryopendocument(Source As Notesuiview, Continue As Variant)

Dim nSession As NotesSession	

Dim nDB As NotesDatabase

Dim nDoc As NotesDocument

Dim nUIWS As NotesUIWorkspace

Dim sDocID As String



Set nSession = New NotesSession

Set nDB = nSession.CurrentDatabase



sDocID = Source.CaretNoteID

Set nDoc = nDB.GetDocumentByID(sDocID)

If Not nDoc Is Nothing Then

	Set nUIWS = New NotesUIWorkspace

	Call nUIWS.DialogBox("Comment", True, True, False, True, True, True, "Review Comments", nDoc,True, True, True)

End If



Continue = False

End Sub

Subject: RE: pop from embedded view in Notes client

Charles,

I used your code working perfectly.

Thanks

Ravi

Subject: RE: pop from embedded view in Notes client

To make it backward compatible you can use source.documents in the same event to get a notesdocumentcollection, and open the first one.

Dan

Subject: pop from embedded view in Notes client

For a hint on how to do this :

In R6 names.nsf open a server Configuration document from the Configuration->Configuration view.

On the Configurations settings document go to Route/SMTP → Restrictions And Controls ->Rules.

I think they have done the same thing that you are looking for. You can check the code of how they have done it

Regards,

Bharat Kothari

Subject: pop from embedded view in Notes client

Have you tried tinkering with the “RegionDoubleClick” event in the view design itself? That should do it.