Hello all I pretty new to SRS. I've got an asp.net application that uses
iframes to display reports. I'm trying to get the reports to drill down.
I've tried using the 'Jump to report' option but it opens the report on top
of my application so I loose my iframe (and app header and navigation). I
can't work out how to change this behaviour. I also tried the 'Jump to URL'
but ran into some issues with this too. I had to hardcode my server name in
the link. I also have to put code in my page to handle the parameters. Is
there a better way?What about using the _self target rather than the _top target, which is
default. ?
--
HTH, Jens Suessmeyer.
--
http://www.sqlserver2005.de
--
"Patrick P via SQLMonster.com" <forum@.nospam.SQLMonster.com> schrieb im
Newsbeitrag news:53526a45e0544eb1a51ed6169737ca1a@.SQLMonster.com...
> Hello all I pretty new to SRS. I've got an asp.net application that uses
> iframes to display reports. I'm trying to get the reports to drill down.
> I've tried using the 'Jump to report' option but it opens the report on
> top
> of my application so I loose my iframe (and app header and navigation). I
> can't work out how to change this behaviour. I also tried the 'Jump to
> URL'
> but ran into some issues with this too. I had to hardcode my server name
> in
> the link. I also have to put code in my page to handle the parameters. Is
> there a better way?|||I couldn't find where this property is stored. The Link is generated as
follows:
<a style="color:Blue" href="http://links.10026.com/?link=http://localhost/myreport/Reports/Summary.aspx?
ReportName=rptNoRevisions&BeginDate10/10/2003" TARGET="_top">Day
Shift</a>
So even if I set the target at a page level the element level will override
it. Is there a way to change the default target for report links?|||http://groups.google.de/group/microsoft.public.sqlserver.reportingsvcs/browse_frm/thread/54a5075b1e3f48e7/55e040db2460e6b1?q=iframe+open+target&rnum=3&hl=de#55e040db2460e6b1
--
HTH, Jens Suessmeyer.
--
http://www.sqlserver2005.de
--
"Patrick P via SQLMonster.com" <forum@.SQLMonster.com> schrieb im Newsbeitrag
news:a5299fd9cb314afbbb5d64a4a7493296@.SQLMonster.com...
>I couldn't find where this property is stored. The Link is generated as
> follows:
> <a style="color:Blue"
> href="http://links.10026.com/?link=http://localhost/myreport/Reports/Summary.aspx?
> ReportName=rptNoRevisions&BeginDate10/10/2003" TARGET="_top">Day
> Shift</a>
> So even if I set the target at a page level the element level will
> override
> it. Is there a way to change the default target for report links?|||Thanks for the link but unfortunately google groups is blocked by our
firewall, which makes it really hard to get technical research done (very
annoying). Could you please cut and paste relevant bits for me. Thanks
again!
--
Message posted via http://www.sqlmonster.com|||Let me be your proxy :-)
Bryan Keller [MSFT] 19 Mär. 2004 19:39 Optionen anzeigen
Newsgroups: microsoft.public.sqlserver.reportingsvcs
Von: "Bryan Keller [MSFT]" <brya...@.online.microsoft.com> -
Nachrichten von diesem Autor suchen
Datum: Fri, 19 Mar 2004 10:37:32 -0800
Lokal: Fr 19 Mär. 2004 19:37
Betreff: Re: href TARGET property defaults to "_top"
Antwort an Autor | Weiterleiten | Drucken | Einzelne Nachricht |
Original anzeigen | Missbrauch melden
What action are you using to generate the URL? Jump to Report will not
work
with LinkTarget. Jump to URL will. So in your example below, when a
user
clicks on the link, any URL's in the Consolidated report will have
target = _self. But unless the parent report of Consolidated has
rc:LinkTarget=_self,
your link below will open in _top. Where are you running into a
problem?
Please be more specific about parent reports, child reports and the
expected
navigation of users. This will help me to better answer your question.
--
Bryan Keller
Developer Documentation
SQL Server Reporting Services
A friendly reminder that this posting is
HTH, Jens Suessmeyer.
--
http://www.sqlserver2005.de
--
"Patrick P via SQLMonster.com" <forum@.SQLMonster.com> schrieb im Newsbeitrag
news:4f06f19c226447c0bc25587933cc43c3@.SQLMonster.com...
> Thanks for the link but unfortunately google groups is blocked by our
> firewall, which makes it really hard to get technical research done (very
> annoying). Could you please cut and paste relevant bits for me. Thanks
> again!
> --
> Message posted via http://www.sqlmonster.com
begin 666 dot_clear.gif
K1TE&.#EA`0`!`( ``/___P```"'Y! $`````+ `````!``$```("1 $`.P``
`
end|||Thanks for the help. I worked out the solution. For anyone struggling with
the same issue here is what I did.
1. Use 'Jump to URL' instead of the other options.
2. Open Report Viewer project and add the following code:
Private _linktarget As String = "_self"
<Category("HTMLViewer Commands"), Description("Sets rc:linktarget to change
iFrame target")> _
Public Property LinkTarget() As String
Get
Return Me._linktarget
End Get
Set(ByVal Value As String)
Me._linktarget = Value
Me.SetParameter("rc:LinkTarget", Value)
End Set
End Property
3. Recompile and place dll in project bin.
Now the default is _self and you have the option to change the target from
your code.
This solution isn't ideal because you have to use the jump to url which
means more work in creating the url with params, and you may have to hard
code your servername.
If anyone comes up with a better solution please post it.
--
Message posted via http://www.sqlmonster.com
No comments:
Post a Comment