2010-01-07 151 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