Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Help with setting LinkTarget=_blank to open URLs in new window Expand / Collapse
Author
Message
Posted Wednesday, May 15, 2013 9:45 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 8:53 PM
Points: 153, Visits: 449
I want to change links on one report to open in a new window. I have read enough to know that using the LinkTarget="_blank" syntax somewhere is part of the solution, but nothing I have tried is working. Can anyone help me understand where to set this option?

I have tried to put it in the URL of the report I'm working with by manually typing it after the report URL after opening the report. Even after refreshing the report with it in the URL, links still open in the same window.

I have tried to put it in the URL of the link that is in the Action property of the report item.

I don't know where else to put it, but clearly I'm not putting it in the right place for it to work.
Post #1453192
Posted Thursday, May 16, 2013 7:01 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Monday, July 7, 2014 2:30 PM
Points: 579, Visits: 2,086
To open in a new window I use this

="void(window.open('http://ServerName/ReportServer/Pages/ReportViewer.aspx?/Path/ReportName
&ParameterName=" & Parameters!ParameterNameDepartment.Value & "
&rs:Command=Render&rc:Parameters=false&rc:Toolbar=false', 'WindowTargetname','width=1025,height=600,location=no,toolbar=no,resizable=1,scrollbars=yes,dependent=yes'))"

It should be all one line but I CRLF'd it to make it more readable. For the url I usually open the report I want to jump to and just copy & paste the URL. I added a papameter too so you can see how that part works. yOU can name the wondow too by replaceing the Window Target Name Value.

This syntax is very picky, a lot of times I have to cut my losses and start over with one that workss and slowly replace stuff until it works.
Post #1453496
Posted Thursday, May 16, 2013 7:11 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 8:53 PM
Points: 153, Visits: 449
Thanks, I will give this a try. For the time being I just told the customer to hold down the Ctrl key while they click. I even put that into the "tool tip" text as a reminder of the technique for opening any link in a new window. I think that will suffice for this particular situation, but before the next time this comes up, I will try to master the URL string you supplied.

Thanks again!
Post #1453507
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse