Xpages 如何将数据源设置为notes文档

Xpages 如何将数据源设置为notes文档,xpages,Xpages,我有一个按钮,用于执行dblookup以获取notesDocument。我想将数据源设置为该文档,以便在xpage的其他地方使用它 例如,我有三个不同的按钮作用于同一文档。我不想在每个按钮中查找该文档 我尝试将数据源docUNID设置为范围变量,该变量在执行dblookup的第一个按钮中更新,然后刷新xPage,但这似乎并没有更新数据源 有什么想法吗?确保dblookup返回docunid,并将dblookup添加到document数据源中的documentUniqueID属性到xpages,然

我有一个按钮,用于执行dblookup以获取notesDocument。我想将数据源设置为该文档,以便在xpage的其他地方使用它

例如,我有三个不同的按钮作用于同一文档。我不想在每个按钮中查找该文档

我尝试将数据源docUNID设置为范围变量,该变量在执行dblookup的第一个按钮中更新,然后刷新xPage,但这似乎并没有更新数据源


有什么想法吗?

确保dblookup返回docunid,并将dblookup添加到document数据源中的documentUniqueID属性到xpages,然后使用数据源变量保存或更新值

dblookup上有一个关键字用于获取unid,或者您可以返回包含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>