如何将JavaScript嵌入到SSRS报告中?

时间:2017-05-29 06:35:42

标签: javascript sql-server reporting-services ssrs-2008 ssrs-2012

我尝试使用JavaScript在报告中为操作按钮创建表达式,如下所示:

="javascript:void(window.open(‘http://dwh/Reports/Pages/Folder.aspx?ItemPath=%2fReports%2fANEXIA%2fANEXIA+-+new’, ‘Odvod tržeb řidiči‘))"

...不幸的是,它在运行时返回错误:

The URL javascript:void(window.open(‘http://dwh/Reports/Pages/Folder.aspx?ItemPath=%2fReports%2fANEXIA%2fANEXIA+-+new’, ‘Odvod tržeb řidiči‘)) has an invalid schema. URLs in reports may only use http://, https://, ftp://, file:, mailto: or news: (rsUnsupportedURLProtocol)

如何在报告中运行JavaScript?

0 个答案:

没有答案