To have a button open an XPage, the source code looks like this:
<xp:button value="test" id="button3" styleClass="button">
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
<xp:openPage target="openDocument"
name="/Test.nsf/44692d275f957997852579e2004d61ed"
documentId="17b45b134f5c942585257b250054ab4a">
</xp:openPage>
</xp:this.action>
</xp:eventHandler>
</xp:button>
I need to open a document in traditional notes and it gives me an error message when I try to do that using this method, maybe because of the <xp:openPage> command. I have tried a lot of other commands in place of the <xp:openPage> like:
<xp:button value="test" id="button9" styleClass="button">
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action>
<![CDATA[window.open("http://test/Test.nsf/2d14d7438b3c1c0f85256b9c005f80ae/faad27d8dc6e428285256bb10068d786?OpenDocument",'_blank');]]></xp:this.action>
</xp:eventHandler>
</xp:button>
but, they don't seem to work.