无法获取文档页面名称 [英] Unable to get document page name for

查看:27
本文介绍了无法获取文档页面名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视图,其中 XPage 与文档表单集相关联.

I have a view that has XPage Associated with document form set.

表单属性具有与文档关联的 xpage.

The form property has the xpage associated with the document.

如果我点击视图中的链接,就会按预期显示正确的 xpage.

If I click on the link in the view the proper correct xpage is displayed as expected.

但是,如果我关闭浏览器,并将文档的 URL 粘贴到浏览器中,我会收到错误消息,无法获取(和 unid)的文档页面名称.只要我保持登录状态,url 就可以正常工作,或者如果我将匿名设置为 Reader,则 url 将继续工作.但是如果我关闭浏览器,在那里我会被提示登录,然后我会收到错误,但我会在提示登录之前收到错误.

But if I close the browser, and paste the URL to the document into the browser, I get the error, Unable to get document page name for (and the unid). As long as I remain logged in the url will work without error or if I set anonymous to Reader the url will continue to work. But if I close the browser where I would be prompted to login then I get the error but I get the error before being prompted to log in.

关联表单的 url 看起来与使用视图显示 xpage 时略有不同.

The url for assocated forms looks a little different than when the view is used to display the xpage.

myserver/mydb.nsf/$$OpenDominoDocument.xsp?documentId=12B571F2B03E3764852573690041E273&action=openDocument

myserver/mydb.nsf/$$OpenDominoDocument.xsp?documentId=12B571F2B03E3764852573690041E273&action=openDocument

该视图具有各种类型的表单,因此我需要将表单与 xpage 相关联,或者我想我可以计算表单的 xpage.但知道是什么导致了这个问题吗?

The view has various types of forms so I need to associate the form with the xpage or I suppose I can compute the xpage for the form. But any idea what would be causing this issue?

推荐答案

如果您从视图中打开文档,关联的表单可能会被视图的表单公式覆盖.当直接使用 $$OpenDominoDocument.xsp 打开文档时,将使用存储在文档中的原始表单.

If you are opening a document from a view, the associated form could be overriden by a form formula of the view. When opening the document directly with $$OpenDominoDocument.xsp the original form stored in the document is used instead.

表单可以通过不同的方式与 XPage 相关联:

The form can be associated with a XPage in different ways:

  1. 对于 XPiNC,表单中有一个 $XPagesAltClient 字段
  2. 对于 Web 访问,表单中有一个 $XPageAlt 字段
  3. xsp.properties 文件中有一个条目.
  1. For XPiNC there is a field $XPagesAltClient in the form
  2. For web access there is a field $XPagesAlt in the form
  3. There is a entry in the xsp.properties file.

例如这个条目...

xsp.domino.form.xpage.foo=bar

...将使用 XPage bar.xspForm 字段中打开一个值为 foo 的文档.

...will open a document with the value foo in the Form field with the XPage bar.xsp.

希望能帮到你

斯文

这篇关于无法获取文档页面名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆