2010-01-07 70 views
2

我有主矩阵报告,我想从主报告中导航我的子报告 跳转到URL:(使用下面的JavaScript函数)方法。如何在SSRS 2005中通过URL传递多值参数

="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,",")+"'))" 

这是确定的单值,但给人异常的多值

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. 

基本上我已经定义的参数!RP_cll_typ_l1为多值进入我的报表每SSRS多值参数传递的方法。 该值为子报告'1,2,3,4'(数据集无法理解) 它应该像'1','2','3','4'或1,2 ,3,4 如何解决这个问题,如果有解决方案,请帮忙解答一下?

感谢

卡利·查兰帕蒂(印度)

[email protected]

[email protected]

回答

5

要使用通过multvalue参数URL访问SSRS中,您必须重复每个值的参数名称

因此,而不是

...&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&... 
+0

Thans兄弟。工作真棒。给你一个。 – Aditya 2014-02-07 08:32:19