jump to url does not work when SSRS report is opened within an iFrame on a webpage
Hi,I have a SSRS report which has links in one column. I have added javascript's window.open() function in the "jump to Url" property of these links as I want the new page to open in a new browser window.The report works fine from report manager, but when I open the report within an iFrame on my website, the links do not work. There is no action on the click of the link.any help will be appreciated.Thanks,Rajni.
January 13th, 2010 1:23pm

One way I've gotten this to work is instead by hosting the report in the iFrame by pointing to the reports ReportServer address (as in http://<servername>/Reportserver/...). They key is to add "&rc:LinkTarget=_Top" to the URL string, like shown here:http://<servername>/Reportserver?%2fFolderName%2fReportName&rs:Command=Render&rs:ClearSession=true&rc:Toolbar=false&rc:LinkTarget=_TopThis should automatically cause the clicked link to open in a new window instead of simply loding within the exiting iFrame. Note that I have other URL commands (like Toolbar=false) just to show what all can be done here. I hope this helps you.
Free Windows Admin Tool Kit Click here and download it now
January 13th, 2010 9:48pm

Hi Rajni, That is because of security reason. If the content page is not in the same domain of the parent page, the JavaScript in the content page won’t be executed. For example: The URL of parent page is http://server.A.com/parent.aspx The URL of the content page is http://server.B.com/reportserver?/report(The src property of the Frame) Now, these two pages are not in the same domain. In this case, using “JavaScript:window.open” in “Jump to URL” action is not allowed. To solve the issue, please make sure the 2 pages are in the same domain or in the same server. E.g. Parent: http://appServer.contoso.com/parent.aspx Report: http://reportserver.contoso.com/reportserver?/report By the way, to submit feedback for a product to Microsoft, we can use the Connect site: http://connect.microsoft.com Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects. Please feel free to ask, if you have any more questions. Thanks, Jin ChenJin Chen - MSFT
January 15th, 2010 11:51am

Hi,Within a iframe i deployed ssrs report but jump to url is not woking for me ,http://<servername>/Reportserver?%2fFolderName%2fReportName&rs:Command=Render&rs:ClearSession=true&rc:Toolbar=false&rc:LinkTarget=_Topeven this is not working for me but in the report manager everything works fine......
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2010 8:57am

This worked for me and it worked well. The confusion may be that people are adding that param to the LINK within their report for the URL they want to open in a new window. You need to add this PARAM to the ACTUAL REPORT that contains child links to other report or URLs. Also, as a side note, if you are using a Javascript formula: ="javascript:window.open([yourUrl],features)" it will fail if both the parent page and the child report are not in the same domain, this was not a good solution for me since I debug on localhost. Happy Coding! ~VbManwww.VbMan.com
March 3rd, 2012 5:35pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics