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

sql server reporting services

group:

jump to url option with _blank


jump to url option with _blank beeyule
8/1/2005 2:52:12 PM
sql server reporting services:
I am trying to set up a link using the navigation/hyperlink action/jump to
url feature of reporting services(Right Click ->Advanced->Navigation->Jump To
Url).

When I click on the hyperlink, I would like the navigation target to be a
new form (_blank), NOT the existing one. I have tried the following code
with some success

="javascript:void(window.open('" & Fields!feature_url.Value & "','_blank'))"

As you can see the actual url is contained in: " & Fields!feature_url.Value
& "

If I preview my report in Visual Studio, click on the hyperlink it will
launch a page that contains the entire line:

="javascript:void(window.open('" & Fields!feature_url.Value & "','_blank'))"

in the browser's url field, it then launches a second page with the correct
url.

Unfortunately, it doesn't work at all from the report server...I just get a
page with the entire line and then nothing.

Does anyone know how to do this? Here's the html if that's of any use.

<Action>
<Hyperlink>="javascript:void(window.open('" &amp; Fields!feature_url.Value
& "','_blank'))"
</Hyperlink>
</Action>





RE: jump to url option with _blank RP
8/2/2005 7:22:05 AM
bee,
Please check the url of the first report
dont type in localhost/reorts - type <yourservername>/reports.

Hope this helps

[quoted text, click to view]
Re: jump to url option with _blank Jeronimo Vogt
8/2/2005 9:58:41 AM
I create a test report and it works fine...I have SP2.
Check the post "Please Help"

Jeronimo Vogt

[quoted text, click to view]

RE: jump to url option with _blank beeyule
8/2/2005 11:11:01 AM


[quoted text, click to view]

bee,
[quoted text, click to view]


I have sp4...

I'm not typing in the localhost address. The url to the report server is
determined by the "Fields!feature_url.Value" field.

The report itself opens without incident. When I click on the hyperlink
located within the report column I get a directed to a web page with the url:

javascript:void(window.open('http://websiteaddress/app/Page.aspx?ID=1','_blank'))

the url contained within the code is correct, it just doesn't behave the way
I had anticipated.



RE: jump to url option with _blank ASP Yaboh
8/8/2005 5:42:56 AM
We are on SP1 and found the "LinkTarget" property does NOT work the way it is
supposed to on the report server (be careful when testing in the Visual
Studio designer - it opens a new page because you are running in VS.)

The Javascript code to open a new window does NOT work in SP1. SP2 is
supposed to have fixed this - I have not yet found out if that is actually
the case.

Tom

[quoted text, click to view]
Re: jump to url option with _blank ASP Yaboh
8/8/2005 6:20:02 AM
I'm pretty certain we thoroughly flogged this issue, but I will deploy a test
report later today with that exact link just to be certain.

Thank you.

[quoted text, click to view]
Re: jump to url option with _blank Bruce L-C [MVP]
8/8/2005 8:11:16 AM
Hmm, not sure why it isn't working correctly for you. I suspect something in
how you are creating the URL. Are you using jump to URL? I have had this
working in both SP1 and SP2 and I know others have as well. Here is a URL
that works for me (opening a new window). One thing to note, it does not
work from VS, you have to deploy it. Try copying and pasting the below into
the jump to URL and give it a try.

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


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

AddThis Social Bookmark Button