Open xpage document from view in cliente Notes

128 Views Asked by At

I need to open a document in an xpage in the browser from a document in the notes client. If I click on the view I open the document in the associated xpage, however in the xpinc client. Is there a way, which is not redirected to the browser from a code in xpage events?

1

There are 1 best solutions below

1
On BEST ANSWER

Instead of auto-launching the XPage, open the url via code in your form.

Sub Postopen(Source As Notesuidocument)
    Dim ws As New NotesUIWorkspace  
    Call  ws .URLOpen(<computed url to XPAGE>)
    source.Close
End Sub

You must do this in Postopen, because URLOpen does not work in the Queryopen.