简体   繁体   English

尝试通过SSRS中的URL将值传递给参数时出错

[英]Error when trying to pass a value to a parameter via a URL in SSRS

I have a report in SSRS that has a drill-down report. 我在SSRS中有一个报告,其中包含一个细分报告。 I would like to have the action linking to the drill-down report open it in a new page. 我希望链接到追溯报告的操作在新页面中打开。

I've used this expression as the action URL: 我已将此表达式用作操作URL:

="javascript:void(window.open('server?ItemPath=%2fTimisoara%2fDrilldown%2fDrill01&ID=123', '_blank'))"

When trying to access the drill-down report I get the following error: 尝试访问深入报告时,出现以下错误:

The ID parameter is missing value

You're not constructing your URL properly. 您的网址构造不正确。 For starters the server bit should actually be the name of the server (or the IP address) and you need to properly construct the URL including the http:// 对于初学者来说, server位实际上应该是server的名称(或IP地址),并且您需要正确地构造包括http://的URL

You can then construct your URL like so: 然后,您可以像这样构造您的URL:

http://reportserver/ReportServer?/Path/To/Report/DrillDownReport&Param1=Value1&Param2=Value2

I recommend reading the following MSDN pages: 我建议阅读以下MSDN页面:

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

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