Friday, February 24, 2012
hyperlinks in reports and the target problem
We are developing a web site and we have the Reporting Services
Reports nested into a
iframe. One of the reports has the hyperlinks that open the same
report with different parameters.
Unfortunately by default, the report reopens in the top window and I
want to open it in the iframe, so I´ve added the "LinkTarget"
parameter to the URL address that opens the report the first time. It
works perfectly during the first click, but once the report is
reloaded, the LinkTarget parameter is lost therefore the second click
opens the same report in the top window. I have no idea how to pass to
the hyperlinks' definition the "LinkTarget" parameter.
All suggestions will be appreciated.
Thanks in advance
Maciej KiewraHi there Maciej
Have you tried putting the LinkTarget on the URL of the parent page
too. This solved the problem for me.
Hope it does for you!
Hyperlink Target property in SharePoint 2007 Report Viewer Web Part
of the dashboard. The SSRS Report displayed in the SSRS Web Part
contains a link (aka Jump To Report) to a second report. I want the
second report to open in the parent SharePoint page, not in the Web
Part.
The Web Part contains a property called "Hyperlink Target", which
should specify where hyperlinks are opened. Even if I set this
property to be "_blank", the second report opens inside of the web
part.
Had anyone been able to use the "Hyperlink Target" of the Sharepoint
2007 SSRS Web Part?Anyone?
Hyperlink Target in SharePoint Report Viewer Web Part
Am I doing something incorrectly or is this not implemented correctly?
I couldnt got it properly, are you trying to deploy a report in sharepoint (2007 or 2003?).
Can you please rephrase you q. ?
Priyank
|||SharePoint 2007. I have the SSRS Web Part embedded in a page as part of the dashboard. The SSRS Report displayed in the SSRS Web Part contains a link (aka Jump To Report) to a second report. I want the second report to open in the parent SharePoint page, not in the Web Part.The Web Part contains a property called "Hyperlink Target", which should specify where hyperlinks are opened. Even if I set this property to be "_blank", the second report opens inside of the web part.
Had anyone been able to use the "Hyperlink Target" of the Sharepoint 2007 SSRS Web Part?
Hyperlink Target in Same Frame
I'm having trouble creating a hyperlink that opens the page in the same frame (_self). I have a report being displayed in a frame, and want a hyperlink to stay in the same frame. I've read all about opening a new window, etc., etc., but the techniques I've read about don't work for the "_self" target.
I've tried appending the "&rc:LinkTarget=_self" to the URL, but that doesn't work. I've also tried the javascrippt options but they don't work either. They work fine for opening a new window, but not for staying in the same frame.
When I look at the source code generated for a hyperlink in a report page, it specifically spells-out "target=_top" in the resultant code, even though I'm not specifying that anywhere. If I could only suppress that, then it might work and stay in the same frame.
Can anyone help here? Thanks.
Did you happen to solve this issue? I was just trying to do the same thing and I'm not getting anywhere.
Thanks,
Derek
|||Derek,
I had to add the target parameter in the report control on the web page:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" PromptAreaCollapsed="True" Width="100%" Height="98%" HyperlinkTarget="_self">
Now, I'm not sure if it's still needed, but I also have this in the hyperlink in the report XML:
<Action>
<Hyperlink>="http://www.somewhere.com/Page.aspx?ID=" & trim(Fields!ID.Value) & "&rc:LinkTarget=_self"</Hyperlink>
</Action>
This worked and now the hyperlinks in the reports stay in the same frame. Hope this helps!
Dan
Hyperlink Target in Same Frame
I'm having trouble creating a hyperlink that opens the page in the same frame (_self). I have a report being displayed in a frame, and want a hyperlink to stay in the same frame. I've read all about opening a new window, etc., etc., but the techniques I've read about don't work for the "_self" target.
I've tried appending the "&rc:LinkTarget=_self" to the URL, but that doesn't work. I've also tried the javascrippt options but they don't work either. They work fine for opening a new window, but not for staying in the same frame.
When I look at the source code generated for a hyperlink in a report page, it specifically spells-out "target=_top" in the resultant code, even though I'm not specifying that anywhere. If I could only suppress that, then it might work and stay in the same frame.
Can anyone help here? Thanks.
Did you happen to solve this issue? I was just trying to do the same thing and I'm not getting anywhere.
Thanks,
Derek
|||Derek,
I had to add the target parameter in the report control on the web page:
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" PromptAreaCollapsed="True" Width="100%" Height="98%" HyperlinkTarget="_self">
Now, I'm not sure if it's still needed, but I also have this in the hyperlink in the report XML:
<Action>
<Hyperlink>="http://www.somewhere.com/Page.aspx?ID=" & trim(Fields!ID.Value) & "&rc:LinkTarget=_self"</Hyperlink>
</Action>
This worked and now the hyperlinks in the reports stay in the same frame. Hope this helps!
Dan