使用 link 中的替代格式打开文档

open document with alternate form from a link

类似于在视图中使用表单公式的功能,我想想办法通过 URL 向某人提供文档 link 并在另一种形式。我试图不修改文档上的实际表单值,这会变得混乱以保持直线。

该表单是一个非常复杂的表单,包含选项卡式表格和 90% 的管理数据,但我想将一小部分字段的维护工作交给用户社区,而不让他们看到其他所有内容。

有没有办法强制 link 通过具有表单公式的视图打开它?这就是我的想法。或者我在提供 link 时 create/populate 一些较小的文档,然后将 link 发送到这个较小的文档并让它在它的 webquerysave 事件中更新 'parent'。

谢谢,

马特

如果您想在 Notes 中打开文档,您可以尝试以

的形式向他们发送 notes-URL
notes://yourServer/yourDatabase.nsf/yourView/yourKey?OpenDocument

我记得很多很多年前与 Domino Web 服务器的一位原始开发人员就此进行过一次对话——但我不能 100% 确定我是否记得正确的答案。所以,我只是搜索了我的旧文件,寻找我进行那次谈话时正在写的文章草稿(1997 年!)。事实证明我并没有在那篇特定的文章中介绍它,但几年后我在为 Lotus Notes & Domino 6 编程圣经

写的其中一章中确实介绍了它

You may be wondering why, since a UNID uniquely identifies any note, is it necessary to include both a Document UNID and a View UNID in a URL. The same question actually applies to doclinks, which were discussed above. The truth is that you don’t have to include a View UNID in either case, but it does serve a purpose if you do. You can replace the View UNID in a URL with a zero, retaining the slash characters that surround it. If you do this, Domino will not be able to execute a Form formula, which you may have included in the code of one or more Views in your application. See chapter 15 for more information about Form formulas.

换句话说,如果您在要发送到服务器的 ?OpenDocument URL 中包含具有您想要的表单公式的视图的 UNID。表格公式将得到尊重。