0

notesDocument をフェッチするために dblookup を実行するボタンがあります。データソースをそのドキュメントに設定して、xpage の他の場所で使用できるようにしたいと考えています。

たとえば、同じドキュメントに対して動作する 3 つの異なるボタンがあります。各ボタンでそのドキュメントを検索する必要はありません。

データ ソース docUNID を、dblookup を実行してから xPage を更新する最初のボタンで更新されるスコープ変数に設定しようとしましたが、データ ソースが更新されないようです。

何かご意見は?

4

1 に答える 1

1

dblookup が docunid を返すことを確認し、dblookup を xpages のドキュメント データ ソースの documentUniqueID プロパティに追加してから、データ ソース変数を使用して値を保存または更新します。

unid を取得するための dblookup にキーワードがあります。または、unid を含む列を返すことができます。

このようなもの

<xp:panel>
    <xp:this.data>
        <xp:dominoDocument var="doc" action="openDocument"
            documentId="#{javascript:@DbLookup(...)}">
        </xp:dominoDocument>
    </xp:this.data>
    <xp:button value="Label" id="button1">
        <xp:eventHandler event="onclick" submit="true"
            refreshMode="complete">
            <xp:this.action><![CDATA[#{javascript:doc.save()}]]></xp:this.action>
        </xp:eventHandler></xp:button>
    <xp:button value="Label" id="button2">
        <xp:eventHandler event="onclick" submit="true"
            refreshMode="complete">
            <xp:this.action><![CDATA[#{javascript:doc.save()}]]></xp:this.action>
        </xp:eventHandler></xp:button>
    <xp:button value="Label" id="button3">
        <xp:eventHandler event="onclick" submit="true"
            refreshMode="complete">
            <xp:this.action><![CDATA[#{javascript:doc.save()}]]></xp:this.action>
        </xp:eventHandler></xp:button>

于 2013-02-16T13:52:43.507 に答える