Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
DNF98
Starting Member
12 Posts |
Posted - 2007-10-23 : 11:24:30
|
Hi, I am trying to link to a page outside of reporting services from a report. I am using SQL Server 2005 Reporting Services [Standard Edition]. The hyperlink works if it is a straight URL, however, nothing happens if I modify it to use Javascript so I can open the link in a new window. I have found many posts on the web from others indicating it should be really easy, but I can not get the link to recognize ANY Javascript (also tried a basic alert with no luck). The Javascript I am using is well formatted. I can place it into a test page and it runs fine. I can also RC and View Source on my report, grab the entire link, put it in a test page and it works fine. It just doesn't work from the report - ? Any ideas?Thanks in advance,Francine |
|
Zoroaster
Aged Yak Warrior
702 Posts |
Posted - 2007-10-23 : 13:54:43
|
Why do you need javascript to have the link open to a new window, can't you just use Target? Future guru in the making. |
 |
|
DNF98
Starting Member
12 Posts |
Posted - 2007-10-23 : 14:43:59
|
This is what I have tried (and several iterations of it)... ="javascript:void(window.open('http://google.com','_blank'))" and have had no luck so far. I am deploying the report to the server [as I've read that it doesn't work locally] and when I run it and hover over the link, I get the "hand" indicating that it is a hyperlink, but upon clicking - nothing happens. The URL displays on the status bar at the bottom of the screen, but still, nothing happens upon clicking. No new window, no JS error, no change in pages, nothing.I just now tried to use rc:LinkTarget=_blank and that did not work either. A search on this indicated that this is best used when you are linking to another report within the report server. Let me know if that's not accurate.Also, I am getting to this report [that has the hyperlink on it] via a "Jump To Report" from another report. I read from one source that I should add the rc:LinkTarget=_blank to the parent report, but I'm not calling the parent report directly in any url. |
 |
|
DNF98
Starting Member
12 Posts |
Posted - 2007-10-23 : 15:03:42
|
YEAH!!! I got it working. Yes, I added &rc:LinkTarget=_blank to the url of the Top Level report that is linked from an html menu. I was concerned that this would make the links to other reports [Mid Level & Detail Level] from the Top Level report open in new windows, but they did not. Just the one hyperlink I wanted on the Detail Level report opened in a new window. I did not use any Javascript in the Jump To Url.Thanks!! |
 |
|
|
|
|
|
|