XPage 中的多个数据源 [英] Multiple data sources in XPages
问题描述
我有 2 个可以交互的 xpage.第一个充当主页,允许用户创建一个新文档并填写一些基本的标题信息.创建新文档的按钮使用 NoteID
设置 sessionScope
变量.然后保存 document1 并使用另一个 xpage 打开同一个文档.
I have 2 xpages that interact together. The first acts as a homepage and allows the user to create a new document and fill out some basic header information. The button to create the new document, sets a sessionScope
var with the NoteID
. It then saves document1 and opens the same document using another xpage.
第二个 xpages 绑定到 document1,并使用 sessionScope
编辑文档.这个 xpages 包含和 editPanel 绑定到 document2.我想为document2创建一个子文档.这有效,但发生的情况是 document1 也被保存为冲突.它也被保存为第二个主文档.
The second xpages is bound to document1, and uses the sessionScope
to edit the document. This xpages contains and editPanel bound to document2. I want to create a child document to document2. This works but what happens is document1 is also saved as conflict. It is also saved as a second main document.
我根本不想保存 document1,但似乎无法阻止它.创建 document2 的按钮使用简单操作保存文档,并指定 document2.
I DO NOT want to save document1 at all, but can't seem to prevent it. The button that creates document2 uses the simple action save document, and specfies document2.
帮助,我已经尝试了所有方法,并且已经坚持了 2 天.
HELP, I have tried everything, and have been stuck on this for 2 days.
谢谢!史蒂夫
推荐答案
要绑定到多个数据源,请在 XPage 上的属性"下展开数据"并将忽略请求参数"设置为 TRUE
To bind to multiple datasources, on your XPage, under Properties expand Data and set "Ignore Request Params" to TRUE
这篇关于XPage 中的多个数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!