我有主矩阵报告,我想通过以下方式从主报告中导航我的子报告 跳转到 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(印度)
最佳答案
要在 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/