How to open a classical Notes document in a new client tab, triggered by a XPage -
i have implement following request, tries failed:
if click on button/link in xpage (xpinc), classic notes-document shall created in notes database. new notes document has open in new client tab beside tab xpage.
i’ve tried several ways with
facescontext.getcurrentinstance().getexternalcontext().redirect("notes://server/anotherdb/newdocumentunid?opendocument")
but none of them led desired result (there 3 tabs opened or xpage tab empty).
edit:
it possible execute csjs ssjs view.postscript()
.
<xp:button value="client" id="button3"> <xp:eventhandler event="onclick" submit="true" refreshmode="partial" disablevalidators="true"> <xp:this.action><![cdata[#{javascript:var url = myjavaclass.createnewdocumentandreturnnotesurl(); view.postscript("window.open('" + url + "')");}]]></xp:this.action> </xp:eventhandler> </xp:button>
csjs function window.open(url)
executed ssjs after creating document in other database , getting url new document. way, code executed when button clicked , new document opens in new window.
Comments
Post a Comment