reporting-services - 如何在 SSRS 2005 中通过 URL 传递多值参数

标签 reporting-services parameters urlaccess

我有主矩阵报告,我想通过以下方式从主报告中导航我的子报告 跳转到 URL:(使用下面的 JavaScript 函数)方法。

="javascript:void(window.open('http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fKonsolidata_Data_Exporting_Project%2fEXPORT_REPORT_TEST&rs:Command=Render&RP_cntry="+Fields!STD_CTRY_NM.Value+"&RP_cll_typ_l1="+Join(Parameters!RP_cll_typ_l1.Value,",")+"'))"

单值可以,但多值异常(exception)

喜欢

An error has occurred during report processing. (rsProcessingAborted) 
Cannot read the next data row for the data set DS_GRID_DATA. (rsErrorReadingNextDataRow)
Conversion failed when converting the nvarchar value '1,2,3,4' to data type int.

基本上,我已按照 ssrs 多值参数传递方法将Parameters!RP_cll_typ_l1 定义为多值到我的子报告中。 该值在子报告中显示为“1,2,3,4”(数据集无法理解) 它应该像“1”、“2”、“3”、“4”或 1、2、3、4 我该如何解决这个问题,如果有解决方案请帮忙?

谢谢

Kali Charan Tripathi(印度)

[email protected]

[email protected]

最佳答案

要在 SSRS 中通过 URLAccess 使用多值参数,您必须为每个值重复参数名称

所以而不是

...&RP_cll_typ_l1=1,2,3,4&...

你会有

...&RP_cll_typ_l1=1&RP_cll_typ_l1=2&RP_cll_typ_l1=3&RP_cll_typ_l1=4&...

关于reporting-services - 如何在 SSRS 2005 中通过 URL 传递多值参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2020151/

相关文章:

c# - MySQL参数必须用C#定义

C API : why are functions using returnParameters with buffer + size instead of returning char*

javascript - 与 onblur 一起使用的动态创建的元素和函数无法正常运行

grails - Grails域类保存NULL id属性;运行Web应用程序时导致错误

reporting-services - Azure 数据库是否支持 SSRS?

vb.net - SSRS 组变量 SUM 和 VB.NET 自定义代码

sql-server - 在 MS Reporting Services (SQL Server 2008) 中针对 ODBC 数据源使用参数

reporting-services - SSRS 每条记录自动生成一个 pdf