"context.setDocumentMode" fails in Xpage Extension Library toolbar -
i try put document in edit mode using toolbar extension library. below source toolbar. when clicked page refreshes mode not change. have added regular button same code in on-click event , works there.
<xe:toolbar id="toolbar2" style="font-family:arial,sans-serif;font-size:12pt;font-weight:bold"> <xe:this.treenodes><xe:basiccontainernode label="article actions"> <xe:this.children> <xe:basicleafnode label="edit article" submitvalue="edit" rendered="# {javascript:!document1.iseditable();}"> </xe:basicleafnode></xe:this.children></xe:basiccontainernode> </xe:this.treenodes><xp:eventhandler event="onitemclick" submit="true" refreshmode="complete"><xe:this.action><![cdata[#{javascript:var achoice = context.getsubmittedvalue(); switch(achoice){case "edit": context.setdocumentmode("document1","edit"); }}]]></xe:this.action></xp:eventhandler></xe:toolbar>
Comments
Post a Comment