SSRS 2008 Action Go to URL open in new window works sometimes
I have used Javascript:void(window.open('MYURL','_blank')) to successfully open hyperlinks from SSRS 2008 reports. However, I have a report where this refuses to work. The command is implemented in the same way as for other reports by setting
the Action for a textbox to "Go to URL" and entering the expression using the javascript. I've gone so far as to copy the TablixCell tags from the code view from a report where this is working to the code view of the one that is not,
and it still only works in the original report. I don't know what else to look for. Ideas? I'm stumped.
July 20th, 2012 8:04pm
Hi There
Thanks for your posting. Did you see any error in report manager /Report server browser when you try to open the link.
Can you please just try
="javascript:void(window.open('http://www.google.com','_blank'))" and see if it works
="javascript:void(window.open('http://www.google.com','_blank'))"
The scripts look Ok, it could be related to your browser(IE may block the JavaScript), you could try:
Reset IE security settings. Or uninstall all IE third plugins.
Please also have a look
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8d1dff86-c581-4066-b010-dca216801a98/
Many thanks
Syed Qazafi Anjum
Free Windows Admin Tool Kit Click here and download it now
July 20th, 2012 9:28pm
Hi There
Thanks for your posting. Did you see any error in report manager /Report server browser when you try to open the link.
Can you please just try
="javascript:void(window.open('http://www.google.com','_blank'))" and see if it works
="javascript:void(window.open('http://www.google.com','_blank'))"
The scripts look Ok, it could be related to your browser(IE may block the JavaScript), you could try:
Reset IE security settings. Or uninstall all IE third plugins.
Please also have a look
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8d1dff86-c581-4066-b010-dca216801a98/
Many thanks
Syed Qazafi Anjum
July 20th, 2012 9:28pm
Syed,
Thank you for your response. I can hardly believe this but the links in the report that were giving me trouble last Friday are working fine this morning. I use IE 8 and was going to try resetting the security settings, but when I tested
the links and they worked, I decided to leave well enough alone. When this type of thing happens, I'm floored by how much time may be spent troubleshooting an issue that, ultimately, magically self-corrects.
Best regards,
DianeDiane Joel
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2012 11:41am