0

我已经修改了表单的 Web 访问,显示 xPage 属性并尝试使用与文档表单选项关联的 xPage 在运行时打开选定的文档,但这不起作用。当前数据库添加在 URL 的开头:

http://localhost/Requ%C3%AAtes852.nsf/%24%24OpenDominoDocument.xsp?databaseName=CN=Jocelyn%20Smith/OU=CSSS%20IUGS/OU=Reg05/O=SSSS!!iugs%5Cphysiosad.nsf&documentId=08FF9DFFD10070F585257A7F0053C282&action=editDocument

我一定错过了一些非常基本的东西。有人有工作吗?谢谢

4

1 回答 1

0

I found a work around by using a redirection page that reads the document id and database name from the URL parameters then redirects. I'ld be interested in improving upon this solution though.

<?xml version="1.0" encoding="UTF-8"?>
<xp:view
xmlns:xp="http://www.ibm.com/xsp/core"
rendered="false"
viewState="nostate">
<xp:this.afterPageLoad><![CDATA[#{javascript://Redirects to a page in another   application

var docid = param.documentId;  
var paramdbname = param.databaseName;
var hostname = context.getUrl().getHost();

//Get dbName without host
start = paramdbname.indexOf('!!');
dbName = paramdbname.slice(start+2);

var redirectstring = 'http://'+hostname+'/'+dbName+'/%24%24OpenDominoDocument.xsp?documentId='+docid+'&action=editDocument';

try{

facesContext.getExternalContext().redirect(redirectstring);
}
catch(err)
 {
//Handle errors here
 }}]]></xp:this.afterPageLoad>
    <xp:br></xp:br>
Redirects to a page in another application

于 2012-09-26T13:40:46.127 回答