Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Problem in subreport with parameter

Author  Topic 

abhit_kumar
Posting Yak Master

147 Posts

Posted - 2012-01-13 : 04:05:48
Dear All Experts,

In my report i can ab;e to access to subreport so that Visibility part i have given jump to URL as below and its working fine in all cases, its have two parameters Itemcode and warehouse


"javascript:void(window.open('http://localhost/reportserver?/Intellicon_Inventory/BrnchStock_SODetails&rs:Command=Render&itemcode=" & Fields!itemcode.Value & " &warehouse=" & Fields!whscode.Value & "','_blank'))"


But when the parameters takes values where "+" comes in between its not showing any data in the subreport. For example Itemcode:- "ABC+123"

Please help me resolve this problem.

Regards,
AKM

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-01-13 : 04:45:06
you need to add a custom code to encode url in that case ie convert + to %2B as per link below.
once custome code is create replace current expression with new function

"javascript:void(window.open(Code.EncodedURl('http://localhost/reportserver...')))"
http://www.w3schools.com/tags/ref_urlencode.asp

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

abhit_kumar
Posting Yak Master

147 Posts

Posted - 2012-01-19 : 00:49:08
Can you please let me know how to create custom code ?
Go to Top of Page
   

- Advertisement -