我有 2 个 Notesdatabase 都在 Xpages、我的地址和通信上完全运行。一个持有所有地址,另一个持有这些地址的所有通信。
现在我想将 iframe 放入我的地址 xpage 以从那里访问通信,这一切在浏览器中运行良好,但是一旦我切换到 Notes,iframe 将不会加载。
<iframe
src="#{javascript:getParaValueByKey('CorrespondenceDB')+'/xpCorrespondenceView.xsp?rows='+compositeData.rows+'&key='+compositeData.key}"
style="border: none; width: 99%; height: 400px;" ></iframe>
我注意到当前的笔记 URL 看起来像这样:
http://127.0.0.1:50136/xsp/DEV!!adresse.nsf/xpAdresse.xsp?documentId=589CBCAEAADE52F2C12579D40020BF4B&action=editDocument
所以我尝试将其切换为:
<iframe
src="#{javascript:@Word(context.getUrl().toString(),'!!', 1)+getParaValueByKey('CorrespondenceDB')+'/xpCorrespondenceView.xsp?rows='+compositeData.rows+'&glAdrID='+compositeData.key}}"
style="border: none; width: 99%; height: 400px;" >
</iframe>
上面的 src 显示了一个 computedText:
http://127.0.0.1:50136/xsp/DEV!!correspondence.nsf/xpCorrespondenceView.xsp?rows=5&key=833C5C1633E34E6CC1256CD20041DBE5
路径和一切看起来都不错,但它仍然无法打开 iframe,有人可以帮我解决这个问题吗?