在 SharePoint 2010 中的查询字符串中将参数传递给 ssrs 报告
我向 sharepoint 发布了一个 ssrs,并尝试在查询字符串中传递参数值,但我无法弄清楚语法。这是我传入的查询字符串。我正在尝试传递 CLordID = 1324381
。在我的报告中CLordID
https:///_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/TestReports/Orders.rdl&rs:Command=Render&CLordID=1324381
当我尝试此操作时,我收到:
指定参数值报告 必须指定参数值 在显示报告之前。 在中选择参数值 参数区域并单击应用 按钮。
我尝试过使参数可见、隐藏和内部,但我无法让它工作。
非常感谢任何帮助
I published an ssrs to sharepoint and am trying to pass the value of parameter in the query string but I haven't been able to figure out the syntax. Here is the query-string that I'm passing in. I am trying to pass the CLordID = 1324381
. In my report CLordID
https:///_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/TestReports/Orders.rdl&rs:Command=Render&CLordID=1324381
When I try this I receive:
Specify Parameter Values Report
parameter values must be specified
before the report can be displayed.
Choose parameter values in the
parameters area and click the Apply
button.
I have tried making the parameter, visible, hidden, and internal, but I haven't been able to get it to work.
Any help is greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在带有 Sharepoint 的 SSRS 2008 中,您需要在 URL 中传递的每个参数前加上“rp:”前缀。
例如:
https:///_layouts/ReportServer /RSViewerPage.aspx?rv:RelativeReportUrl=/TestReports/Orders.rdl&rs:Command=Render&rp:CLordID=1324381
In SSRS 2008 with Sharepoint, you need to prefix each parameter passed in the URL with "rp:".
For example:
https:///_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/TestReports/Orders.rdl&rs:Command=Render&rp:CLordID=1324381
在参数选项中,在可用值下,您是否设置了指定选项,然后不包含任何值?将其设置回无,您应该是对的。
In the parameter options, under available values, have you set the option of specify and then not included any values? Set it back to none and you should be right.
还有另一个选项,即使用 HTML 查看器呈现报告。
我在这里得到了这个想法: http://techpunch.wordpress.com/2008/09/17/sql-server-reporting-services-url-parameters-in-sharepoint-integrated-mode/
我永远不确定一篇博客文章会持续多久,所以我尝试在下面总结一下。
您可以将 URL 格式化为如下形式:
(我不确定您的服务器名称,因此我只在适用的情况下使用“Intranet”)
这避免了必须向您要传递的每个参数添加“rp:”。
There is another option, which is to render the reports using the HTML Viewer.
I got this idea here: http://techpunch.wordpress.com/2008/09/17/sql-server-reporting-services-url-parameters-in-sharepoint-integrated-mode/
I'm never sure how long a blog post will last, so I tried to summarize it below.
You could format your URL like this:
(I wasn't sure of your server name so I just used "Intranet" where applicable)
This avoids having to add "rp:" to every parameter you want to pass.
在每个参数之前包含“rp:”。
就像魅力一样。
Include "rp:" before each parameter.
Works like a charm.