<?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:label id="label1" value="Loginユーザー : "></xp:label> <xp:text escape="true" id="computedField1" value="#{javascript:@UserName()}"></xp:text> <xp:br></xp:br> <xp:br></xp:br> <xp:label id="label2"></xp:label><xp:button value="署名ユーザーでDominoディレクトリにアクセス" id="button1"> <xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="panel1"> <xp:this.action><![CDATA[#{javascript://var db:NotesDatabase = session.getDatabase(null,"names.nsf"); var db:NotesDatabase = sessionAsSigner.getDatabase(null,"names.nsf"); viewScope.dbname = db.getTitle(); viewScope.count = db.getAllDocuments().getCount().toFixed() }]]></xp:this.action> </xp:eventHandler></xp:button> <xp:br></xp:br> <xp:br></xp:br> <xp:panel id="panel1"> <xp:label id="label5" value="実行ユーザー : "></xp:label><xp:text escape="true" id="computedField4" value="#{javascript:sessionAsSigner.getEffectiveUserName();}"> </xp:text><xp:br></xp:br> <xp:label id="label3" value="DB名 : "></xp:label> <xp:text escape="true" id="computedField2" value="#{viewScope.dbname}"> </xp:text> <xp:br></xp:br> <xp:label id="label4" value="文書数 : "></xp:label> <xp:text escape="true" id="computedField3" value="#{viewScope.count}"> </xp:text> </xp:panel> </xp:view>