all groups > sql server reporting services > april 2005 >
You're in the

sql server reporting services

group:

How can I open hyperlink in a new window?


How can I open hyperlink in a new window? Misha_SQL
4/20/2005 11:48:02 AM
sql server reporting services: I have a number of dynamically configured hyperlinks in my report. Clicking
on them, takes user to a different application. I want for this new app to
open in a different browser window from the report itself, but instead it
opens in the same window and replaces my report data. Any ideas how to force
it to open in a new window?

Re: How can I open hyperlink in a new window? Bruce L-C [MVP]
4/20/2005 2:34:56 PM
For the following you need SP1 or greater installed.

= "javascript:void(window.open('http://www.google.com','_blank'))"


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services



[quoted text, click to view]

Re: How can I open hyperlink in a new window? Jens Süßmeyer
4/20/2005 9:26:35 PM
Copied from newsgroup:


You put it in the document map label. This is a standard thing for
hyperlinks. You can also use _self, _top, _parent, etc...

From Books Online,

"Advanced Textbox Properties (Navigation Tab)
Use the Navigation tab of the Advanced Textbox Properties dialog box to
define navigation options for the text box.

Options

Document map label
Type or select a label or an expression that evaluates to a label. Click the
expression (fx) button to edit the expression. The value of the label
appears on the document map."



HTH, Jens Suessmeyer,.





---

http://www.sqlserver2005.de

---

"Misha_SQL" <Misha_SQL@discussions.microsoft.com> schrieb im Newsbeitrag
news:AB7CB9AF-6CAA-4A13-9A75-8FF174E9E5D3@microsoft.com...
[quoted text, click to view]

Re: How can I open hyperlink in a new window? Jens Süßmeyer
4/20/2005 9:33:05 PM
Some more links:

#1:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RShowto/htm/hrs_designer_v1_6mwb.asp
#2: Take a look at _LinkTarget device info setting:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_prog_soapapi_dev_3i49.asp


Jens Suessmeyer.

"Jens Süßmeyer" <Jens@Remove_this_For_Contacting.sqlserver2005.de> schrieb
im Newsbeitrag news:uv4rf7dRFHA.3716@TK2MSFTNGP14.phx.gbl...
[quoted text, click to view]

Re: How can I open hyperlink in a new window? Misha_SQL
4/21/2005 7:00:01 AM
Thank you, Jens!

These links contained information that solved my problem.

[quoted text, click to view]
Re: How can I open hyperlink in a new window? Archana
5/9/2006 4:51:02 AM
Hi Bruce/Misha,

I tried the solution given below and it opens in the new window with the URL
given,even when i change it to "_Self".

Please note i am trying to open the url in a particular frame and not the
full window.

And also i see that "javascript:void(window.open
'http://www.google.com','_blank'))" gets pasted in the address bar of the IE
, removing all the frames and also the page is not loaded untill i press the
enter key.

Please help me find a solution to this.

Thanks in advance,
Regads,
Archana Kamath


[quoted text, click to view]
Re: How can I open hyperlink in a new window? Jim Underwood
5/9/2006 10:03:58 AM
Window.open create a new browser window. You want soemthign like:

(javascript)
Window.parent.FRAMENAME.src = 'http://www.google.com'

or
<a href='http://www.google.com' target='FRAMENAME'>Insert Text Here</a>

[quoted text, click to view]

Re: How can I open hyperlink in a new window? Archana
5/9/2006 8:28:01 PM
Thanks Jim for a quick response.
But i am still facing the problem.
The problem is Reporting services report expression doesnot accept "<a href>".
And when i try to give the javascript,it doesnot get exceuted.What it simply
does is opens up a new browser and paste the javascript on the adress bar.It
doesnt not get executed untill we press the enter key.

In most of the solutions for such problems they have suggested to use the
javascript.But in my case, it doesnt get executed at all.

Do i need to set any internet settings so that javascript get executed with
out user pressing the enter key.

Please help me out with this issue.

Many Thanks,
Archana

[quoted text, click to view]
Re: How can I open hyperlink in a new window? Archana
5/9/2006 10:05:02 PM
Hi Jim,

Javascript works fine in the report.That is when i try opening the report
using the report manager /reportserver it works fine.When i click the link,
the page ('google') gets loaded.

But when i include the same report in my sharepoint site ,using the page
viewer webpart and try accessing the link,it throws up an error saying "Page
cannot be displayed" and the javascript gets pasted on the address bar.

Any idea why this behaviour?
Many thanks inadvance,
Regards,
Archana

[quoted text, click to view]
Re: How can I open hyperlink in a new window? Archana
5/10/2006 3:54:02 AM
HI Jim,

Thanks for your help.
The javascript works fine.There was some problem with mysharepoint page.

Anyways Many thanks
Regards,
Archana

[quoted text, click to view]
Re: How can I open hyperlink in a new window? Jim Underwood
5/10/2006 12:56:28 PM
I am glad to hear you got it working.

[quoted text, click to view]

AddThis Social Bookmark Button