Answered by:
Include Special Characters in a passing parameters in javascript in drill through report

Question
-
Hi,
I am passing a field value from main report to a parameter in a drill through sub report. But some field values contain 'special characters'.
Those field values that contain special characters are not working for drill through.
can you suggest javascript code to include special characters to pass to sub report parameter?
Sunday, September 6, 2015 4:18 PM
Answers
-
Hi Jd26,
Try the url encoding.Refer below links
http://www.javascripter.net/faq/escape.htm
http://www.permadi.com/tutorial/urlEncoding/
and check this too please refer to the simlar thread, and then check if it works for you.
Is there an escape character in SSRS scripting: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/28a78133-fe70-4e7a-8a6c-c51f4112b42b/
If you have any question, please feel free to ask.
Please Dont forget to mark as answer and Helpful Post. It helps others to find relevant posts to the same question. Milan Das
- Edited by Milan Das Sunday, September 6, 2015 5:14 PM
- Proposed as answer by Qiuyun YuMicrosoft contingent staff Monday, September 7, 2015 7:15 AM
- Marked as answer by Qiuyun YuMicrosoft contingent staff Monday, September 21, 2015 12:28 PM
Sunday, September 6, 2015 5:11 PM -
Hi j.d.26,
In your scenario, you can also use the HttpUtility.URLEncode() function to handle the special characters. To use this function, we must add a reference to System.Web assembly, then call the function in the expression. For more information, please refer to this article: URL Encoding in Reporting Services.
If you have any question, please feel free to ask.
Best regards,
Qiuyun YuQiuyun Yu
TechNet Community Support- Proposed as answer by Qiuyun YuMicrosoft contingent staff Sunday, September 13, 2015 9:06 AM
- Marked as answer by Qiuyun YuMicrosoft contingent staff Monday, September 21, 2015 12:28 PM
Monday, September 7, 2015 7:15 AM
All replies
-
Hi Jd26,
Try the url encoding.Refer below links
http://www.javascripter.net/faq/escape.htm
http://www.permadi.com/tutorial/urlEncoding/
and check this too please refer to the simlar thread, and then check if it works for you.
Is there an escape character in SSRS scripting: http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/28a78133-fe70-4e7a-8a6c-c51f4112b42b/
If you have any question, please feel free to ask.
Please Dont forget to mark as answer and Helpful Post. It helps others to find relevant posts to the same question. Milan Das
- Edited by Milan Das Sunday, September 6, 2015 5:14 PM
- Proposed as answer by Qiuyun YuMicrosoft contingent staff Monday, September 7, 2015 7:15 AM
- Marked as answer by Qiuyun YuMicrosoft contingent staff Monday, September 21, 2015 12:28 PM
Sunday, September 6, 2015 5:11 PM -
Hi j.d.26,
In your scenario, you can also use the HttpUtility.URLEncode() function to handle the special characters. To use this function, we must add a reference to System.Web assembly, then call the function in the expression. For more information, please refer to this article: URL Encoding in Reporting Services.
If you have any question, please feel free to ask.
Best regards,
Qiuyun YuQiuyun Yu
TechNet Community Support- Proposed as answer by Qiuyun YuMicrosoft contingent staff Sunday, September 13, 2015 9:06 AM
- Marked as answer by Qiuyun YuMicrosoft contingent staff Monday, September 21, 2015 12:28 PM
Monday, September 7, 2015 7:15 AM