繁体   English   中英

从 SSRS 报告中打开新 window 中的 SharePoint 文档

[英]Opening a SharePoint document in a new window from an SSRS report

我有一个 SSRS 报告,我试图让用户能够通过单击报告中的字段将 go 直接转换为 SharePoint 文档。 报告的源数据是 SQL 表,该表中的一个字段包含完整的 url。 If I select the Go To URL option and provide this field as the URL, it successfully opens the document, however, it does it in the same window. 如果单击返回返回报告,则不再显示报告。 因此,我想在新的 window 中打开它。 我已经查看了 stackoverflow 上发布的一堆解决方案,但似乎没有一个通过字段名传递完整的 url。

我试过这个 ="javascript:void(window.open('Fields.SignedDocument:Value'))" 但它试图 go 到这个不存在的网址: https://reportserver.abc.org/Reports/Fields.SignedDocument 。价值

有什么建议么?

您的表达式正在将您的字段添加为文本的一部分。

您希望表达式将您的值插入到 OPEN 字符串中。 使用双引号关闭字符串,然后添加您的字段值和 append 字符串的 rest(做起来比说的容易)。

="javascript:void(window.open('" & Fields!SignedDocument.Value & "'))" .

这会将 Signed Document 字段的任何值放入字符串中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM