xpages - How to set the data source to a notes document -
i have button dblookup fetch notesdocument . set datasource document utilize elsewhere in xpage.
for example, have 3 different buttons deed upon same document. don't want have lookup document in each button.
i tried setting info source docunid scope variable updated in first button dblookup, refreshes xpage, doesn't seem update info source.
any thoughts?
make sure dblookup homecoming docunid , add together dblookup documentuniqueid property in docment info source xpages , utilize info source variable save or update values
there keyword on dblookup getting unid or can homecoming column containing unid
something
<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>
xpages
No comments:
Post a Comment