Friday, March 23, 2012

Link opens a new window...How To?

We have a report that links to another report. The A report is a posting on
our intranet and we'd like to have it so when a user clicks on the link for
the other report it will open another window for them. Any ideas on how this
may be done?You can try putting someting like this
= "javascript:void(window.open('<insert url here>','_blank'))"
in the Jump to URL section of the action property.
David Siebert
"Marty" wrote:
> We have a report that links to another report. The A report is a posting on
> our intranet and we'd like to have it so when a user clicks on the link for
> the other report it will open another window for them. Any ideas on how this
> may be done?|||The better way of doing this is in the parent reports url place the following
as part of the url rc:LinkTarget=_Self
this will make all report links in the report open up where the parent
report is.
"David Siebert" wrote:
> You can try putting someting like this
> = "javascript:void(window.open('<insert url here>','_blank'))"
> in the Jump to URL section of the action property.
> David Siebert
> "Marty" wrote:
> > We have a report that links to another report. The A report is a posting on
> > our intranet and we'd like to have it so when a user clicks on the link for
> > the other report it will open another window for them. Any ideas on how this
> > may be done?|||David,
I have tried using the javascript code below on a report of mine and it does
not work. I put the following in the "Jump to URL" on a field as a test to
make sure the code works:-
="javascript:void(window.open('http://www.google.com','_blank'))"
I deployed the report and ran it (we are just using the standard report
manager web site), but when I click on the field to invoke the jump to all I
get is a "page cannot be displayed" message and this message is in the same
window as the report.
If I shift and click the field to force the link into a new window then I
get the same "page cannot be displayed" error, but as soon as this window
opens I do get a new window with google in it. So, the code seems to be
working directly from IE but does not work from within RS.
Any ideas why this is not working?
Thanks
Dave
"David Siebert" wrote:
> You can try putting someting like this
> = "javascript:void(window.open('<insert url here>','_blank'))"
> in the Jump to URL section of the action property.
> David Siebert
> "Marty" wrote:
> > We have a report that links to another report. The A report is a posting on
> > our intranet and we'd like to have it so when a user clicks on the link for
> > the other report it will open another window for them. Any ideas on how this
> > may be done?|||got the same problem, tried this but it doesn't work :( Looking at the
rendered page, it is putting 'TARGET='_top' into the a tag :/ ) They need to
add a 'target' property to the 'jump to url', bit of an oversight tbh :(
"David Siebert" <DavidSiebert@.discussions.microsoft.com> wrote in message
news:1306182F-57EF-48BF-93C4-596B53F79B78@.microsoft.com...
> You can try putting someting like this
> = "javascript:void(window.open('<insert url here>','_blank'))"
> in the Jump to URL section of the action property.
> David Siebert
> "Marty" wrote:
> > We have a report that links to another report. The A report is a posting
on
> > our intranet and we'd like to have it so when a user clicks on the link
for
> > the other report it will open another window for them. Any ideas on how
this
> > may be done?|||Hi,
I have the same problem :(
I want the hyperlinks in my report to open in a new window. I tried doing
this:
in Advanced->Navigation->JumptoURL of the textbox displaying the hyperlink,
I added "http://-the url"&" rc:LinkTarget=_blank" but it doesnt work - even
the javascript doesnt work :(
plz help
thanks.
"Anonymous Poster" wrote:
> got the same problem, tried this but it doesn't work :( Looking at the
> rendered page, it is putting 'TARGET='_top' into the a tag :/ ) They need to
> add a 'target' property to the 'jump to url', bit of an oversight tbh :(
> "David Siebert" <DavidSiebert@.discussions.microsoft.com> wrote in message
> news:1306182F-57EF-48BF-93C4-596B53F79B78@.microsoft.com...
> > You can try putting someting like this
> >
> > = "javascript:void(window.open('<insert url here>','_blank'))"
> >
> > in the Jump to URL section of the action property.
> >
> > David Siebert
> >
> > "Marty" wrote:
> >
> > > We have a report that links to another report. The A report is a posting
> on
> > > our intranet and we'd like to have it so when a user clicks on the link
> for
> > > the other report it will open another window for them. Any ideas on how
> this
> > > may be done?
>
>|||When you tried the javascript link, did you deploy it to the server and try
it, or just from visual studio?
My first attempt at this gave me an error regarding the link's schema type
and said it was invalid. But after deploying to the report server it worked
fine.
"Aravind" wrote:
> Hi,
> I have the same problem :(
> I want the hyperlinks in my report to open in a new window. I tried doing
> this:
> in Advanced->Navigation->JumptoURL of the textbox displaying the hyperlink,
> I added "http://-the url"&" rc:LinkTarget=_blank" but it doesnt work - even
> the javascript doesnt work :(
> plz help
> thanks.
> "Anonymous Poster" wrote:
> > got the same problem, tried this but it doesn't work :( Looking at the
> > rendered page, it is putting 'TARGET='_top' into the a tag :/ ) They need to
> > add a 'target' property to the 'jump to url', bit of an oversight tbh :(
> >
> > "David Siebert" <DavidSiebert@.discussions.microsoft.com> wrote in message
> > news:1306182F-57EF-48BF-93C4-596B53F79B78@.microsoft.com...
> > > You can try putting someting like this
> > >
> > > = "javascript:void(window.open('<insert url here>','_blank'))"
> > >
> > > in the Jump to URL section of the action property.
> > >
> > > David Siebert
> > >
> > > "Marty" wrote:
> > >
> > > > We have a report that links to another report. The A report is a posting
> > on
> > > > our intranet and we'd like to have it so when a user clicks on the link
> > for
> > > > the other report it will open another window for them. Any ideas on how
> > this
> > > > may be done?
> >
> >
> >|||David
Did you get this to work, I am getting the problem where it only works if I
use the shift key when pressing the mouse button.
Was it a server change or report as the same is happening on all reports?
Darren
"DaveW" wrote:
> David,
> I have tried using the javascript code below on a report of mine and it does
> not work. I put the following in the "Jump to URL" on a field as a test to
> make sure the code works:-
> ="javascript:void(window.open('http://www.google.com','_blank'))"
> I deployed the report and ran it (we are just using the standard report
> manager web site), but when I click on the field to invoke the jump to all I
> get is a "page cannot be displayed" message and this message is in the same
> window as the report.
> If I shift and click the field to force the link into a new window then I
> get the same "page cannot be displayed" error, but as soon as this window
> opens I do get a new window with google in it. So, the code seems to be
> working directly from IE but does not work from within RS.
> Any ideas why this is not working?
> Thanks
> Dave
> "David Siebert" wrote:
> > You can try putting someting like this
> >
> > = "javascript:void(window.open('<insert url here>','_blank'))"
> >
> > in the Jump to URL section of the action property.
> >
> > David Siebert
> >
> > "Marty" wrote:
> >
> > > We have a report that links to another report. The A report is a posting on
> > > our intranet and we'd like to have it so when a user clicks on the link for
> > > the other report it will open another window for them. Any ideas on how this
> > > may be done?|||Since there are many who cannot get "LinkTarget" to work I want to share my
mistake.
Remember that it is the url to the "master"-report that will need the
parameter "LinkTarget", it is not the action-links to the "Detail"-report
that will need the parameter.
Url 1: http://localhost/rerportMaster&rc:LinkTarget=_blank
Url 2 (Action In report 2): Anything (renders with target=_blank)
I struggled with this for a long time before I realized my mistake.
Regards Maran
"Marty" wrote:
> We have a report that links to another report. The A report is a posting on
> our intranet and we'd like to have it so when a user clicks on the link for
> the other report it will open another window for them. Any ideas on how this
> may be done?

No comments:

Post a Comment