为什么在我单击从 SSJS 函数创建的文档 link 时打开了错误的表单?

Why is the wrong form opening when I click the doc link I created from a SSJS function?

好吧,这很奇怪。我创建了一个 xpage 输入表单。填写表格后,将创建一个文档。然后我创建一封电子邮件,通知人们文档已创建。我将 doclink 放到电子邮件正文中新创建的文档中。在测试期间,我注意到当我单击电子邮件中的 link 时,会打开错误的注释表单。代替显示字段的 'TrainingRequest' 表单,而是打开 'Feedback' 表单。这是我检查的内容:

- On the xpage data section, the 'form' is set to 'TrainingRequest'.
- When I open the document via the doc link, the field 'form' has the value 'TrainingRequest', which is correct.  Yet it's displaying the 'Feedback' form.
- When I check the other field properties of the document, all the correct fields from the 'TrainingRequest' form are there and populated correctly.  
- When I open the document via the view, the correct Notes form 'TrainingRequest' opens.
- There is no default form in the database design.

有人以前看过这个吗?

谢谢 克莱姆

源代码会很有用。但根据您所说的,最初的最佳猜测是您在 XPage 上有两个数据源,都没有设置 ignoreRequestParams,因此您正在使用这两个数据源编辑同一个文档。缺少 ignoreRequestParams 将忽略您定义的任何属性。

文档链接始终使用应用程序的默认视图创建。如果此视图中有表单公式,则它会覆盖文档中的表单。去掉默认视图的表单公式就可以了

由于副作用,我几乎从不在我的应用程序中使用表单公式。