Showing posts with label navigation. Show all posts
Showing posts with label navigation. Show all posts

Friday, March 23, 2012

Open url in a new window

hi, I got a problem with reporting services 2005.

I have to create a link activated by clicking on an image.

In the image navigation properties I inserted the link in "jump to url" but the problem is that no new window is opened, the url is opened in the initial report page.
I tried to use jscript this way:

javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0");

but in this case the url opens in a new window but a blank page is shown in the report page.

How can I solve this problem and open the url in a new window without changing the report page?

Thanks in advance and sorry for my english

="javascript:void window.open('http://yoururl&rs:Command=Render.....and whatever else you need "')"

|||

ok it works!

Thanks a lot for your help

|||

I made the Jump to URL expression as:

=void window.open('http://barn/apx/PortfolioDetail.aspx?linkfield=" & Fields!APX_PortfolioID.Value & "', '_blank')"

The above expression opens a new window correctly when the source report is run from the SSRS ReportServer or Reports (ReportsManager) pages. So far so good. But if the source report is first opened in an HTML frame via the following link, then clicking on the above link (on the source report) does nothing at all (just gives a click sound from IE):

<a href="http://brat/ReportServer/Pages/ReportViewer.aspx?%2fAccount+Profile&rs:Command=Render&rc:Zoom=100" target=apcontent><u>Accounts</u></a>

Very perplexing (at least to me). Any ideas on why this could be happening would be greatly appreciated. TIA.

|||

Adding more info to above. On my development machine (XP/SP2), the link is working from a frame also.

So, the link is not working on the production intranet site for some reason. The dev platform is 2005 Reporting Services with the reporting server databases on sql server 2005 on XP/SP2. The production platform is 2005 Reporting Services but the reporting server databases are on sql server 2000 on windows 2003 server.

The data source for the report is identical for both the platform (stored proc on sql 2000). Any ideas? TIA.

|||

MaryAnn80 wrote:

ok it works!

Thanks a lot for your help

Hi, mate, how did you make it work? I used the same code but the link disappeared when I use '=javascript'. I am using SQL 2005 reporting services. I just want make UserID as an URL and when I click it, it open a new window, it just doesn't work.

|||Yeahhh!I got it working now.Thanks folks!|||

I have a piece of JavaScript for Jump to URL like the following:

=void window.open('MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The SSRS report is hosted by a Report Viewer control in a Web page (like MyPage.aspx).

The Web page is under a sub-folder of the application root (like http://MyApp/Module1).

The link works fine when the page shows up for the first time (http://MyApp/Module1/MyPage.aspx and the report shows up as expected).

However, if the Refresh button of the Report Viewer is pressed, the access path between the application root and page is chopped off (and I will have an error 404 message says Requested URL: /MyApp/MyPage.aspx resource can not be found.

Everything works fine if I change the JavaScript to:

=void window.open('http://MyServer/MyApp/Module1/MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The problem with hard coding the full access path is that I have to modify the JavaScript every time when I roll a report from development to production.

I’ve tried a variety of access path strings to make the JavaScript server independent (such as ../Module1/MyPage.aspx, and so on) and have no luck so far.

Can anyone help?

Thanks

Open url in a new window

hi, I got a problem with reporting services 2005.

I have to create a link activated by clicking on an image.

In the image navigation properties I inserted the link in "jump to url" but the problem is that no new window is opened, the url is opened in the initial report page.
I tried to use jscript this way:

javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0");

but in this case the url opens in a new window but a blank page is shown in the report page.

How can I solve this problem and open the url in a new window without changing the report page?

Thanks in advance and sorry for my english

="javascript:void window.open('http://yoururl&rs:Command=Render.....and whatever else you need "')"

|||

ok it works!

Thanks a lot for your help

|||

I made the Jump to URL expression as:

=void window.open('http://barn/apx/PortfolioDetail.aspx?linkfield=" & Fields!APX_PortfolioID.Value & "', '_blank')"

The above expression opens a new window correctly when the source report is run from the SSRS ReportServer or Reports (ReportsManager) pages. So far so good. But if the source report is first opened in an HTML frame via the following link, then clicking on the above link (on the source report) does nothing at all (just gives a click sound from IE):

<a href="http://brat/ReportServer/Pages/ReportViewer.aspx?%2fAccount+Profile&rs:Command=Render&rc:Zoom=100" target=apcontent><u>Accounts</u></a>

Very perplexing (at least to me). Any ideas on why this could be happening would be greatly appreciated. TIA.

|||

Adding more info to above. On my development machine (XP/SP2), the link is working from a frame also.

So, the link is not working on the production intranet site for some reason. The dev platform is 2005 Reporting Services with the reporting server databases on sql server 2005 on XP/SP2. The production platform is 2005 Reporting Services but the reporting server databases are on sql server 2000 on windows 2003 server.

The data source for the report is identical for both the platform (stored proc on sql 2000). Any ideas? TIA.

|||

MaryAnn80 wrote:

ok it works!

Thanks a lot for your help

Hi, mate, how did you make it work? I used the same code but the link disappeared when I use '=javascript'. I am using SQL 2005 reporting services. I just want make UserID as an URL and when I click it, it open a new window, it just doesn't work.

|||Yeahhh!I got it working now.Thanks folks!|||

I have a piece of JavaScript for Jump to URL like the following:

=void window.open('MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The SSRS report is hosted by a Report Viewer control in a Web page (like MyPage.aspx).

The Web page is under a sub-folder of the application root (like http://MyApp/Module1).

The link works fine when the page shows up for the first time (http://MyApp/Module1/MyPage.aspx and the report shows up as expected).

However, if the Refresh button of the Report Viewer is pressed, the access path between the application root and page is chopped off (and I will have an error 404 message says Requested URL: /MyApp/MyPage.aspx resource can not be found.

Everything works fine if I change the JavaScript to:

=void window.open('http://MyServer/MyApp/Module1/MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The problem with hard coding the full access path is that I have to modify the JavaScript every time when I roll a report from development to production.

I’ve tried a variety of access path strings to make the JavaScript server independent (such as ../Module1/MyPage.aspx, and so on) and have no luck so far.

Can anyone help?

Thanks

sql

Open url in a new window

hi, I got a problem with reporting services 2005.

I have to create a link activated by clicking on an image.

In the image navigation properties I inserted the link in "jump to url" but the problem is that no new window is opened, the url is opened in the initial report page.
I tried to use jscript this way:

javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0");

but in this case the url opens in a new window but a blank page is shown in the report page.

How can I solve this problem and open the url in a new window without changing the report page?

Thanks in advance and sorry for my english

="javascript:void window.open('http://yoururl&rs:Command=Render.....and whatever else you need "')"

|||

ok it works!

Thanks a lot for your help

|||

I made the Jump to URL expression as:

=void window.open('http://barn/apx/PortfolioDetail.aspx?linkfield=" & Fields!APX_PortfolioID.Value & "', '_blank')"

The above expression opens a new window correctly when the source report is run from the SSRS ReportServer or Reports (ReportsManager) pages. So far so good. But if the source report is first opened in an HTML frame via the following link, then clicking on the above link (on the source report) does nothing at all (just gives a click sound from IE):

<a href="http://brat/ReportServer/Pages/ReportViewer.aspx?%2fAccount+Profile&rs:Command=Render&rc:Zoom=100" target=apcontent><u>Accounts</u></a>

Very perplexing (at least to me). Any ideas on why this could be happening would be greatly appreciated. TIA.

|||

Adding more info to above. On my development machine (XP/SP2), the link is working from a frame also.

So, the link is not working on the production intranet site for some reason. The dev platform is 2005 Reporting Services with the reporting server databases on sql server 2005 on XP/SP2. The production platform is 2005 Reporting Services but the reporting server databases are on sql server 2000 on windows 2003 server.

The data source for the report is identical for both the platform (stored proc on sql 2000). Any ideas? TIA.

|||

MaryAnn80 wrote:

ok it works!

Thanks a lot for your help

Hi, mate, how did you make it work? I used the same code but the link disappeared when I use '=javascript'. I am using SQL 2005 reporting services. I just want make UserID as an URL and when I click it, it open a new window, it just doesn't work.

|||Yeahhh!I got it working now.Thanks folks!|||

I have a piece of JavaScript for Jump to URL like the following:

=void window.open('MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The SSRS report is hosted by a Report Viewer control in a Web page (like MyPage.aspx).

The Web page is under a sub-folder of the application root (like http://MyApp/Module1).

The link works fine when the page shows up for the first time (http://MyApp/Module1/MyPage.aspx and the report shows up as expected).

However, if the Refresh button of the Report Viewer is pressed, the access path between the application root and page is chopped off (and I will have an error 404 message says Requested URL: /MyApp/MyPage.aspx resource can not be found.

Everything works fine if I change the JavaScript to:

=void window.open('http://MyServer/MyApp/Module1/MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The problem with hard coding the full access path is that I have to modify the JavaScript every time when I roll a report from development to production.

I’ve tried a variety of access path strings to make the JavaScript server independent (such as ../Module1/MyPage.aspx, and so on) and have no luck so far.

Can anyone help?

Thanks

Wednesday, March 21, 2012

Open url in a new window

hi, I got a problem with reporting services 2005.

I have to create a link activated by clicking on an image.

In the image navigation properties I inserted the link in "jump to url" but the problem is that no new window is opened, the url is opened in the initial report page.
I tried to use jscript this way:

javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0");

but in this case the url opens in a new window but a blank page is shown in the report page.

How can I solve this problem and open the url in a new window without changing the report page?

Thanks in advance and sorry for my english

="javascript:void window.open('http://yoururl&rs:Command=Render.....and whatever else you need "')"

|||

ok it works!

Thanks a lot for your help

|||

I made the Jump to URL expression as:

=void window.open('http://barn/apx/PortfolioDetail.aspx?linkfield=" & Fields!APX_PortfolioID.Value & "', '_blank')"

The above expression opens a new window correctly when the source report is run from the SSRS ReportServer or Reports (ReportsManager) pages. So far so good. But if the source report is first opened in an HTML frame via the following link, then clicking on the above link (on the source report) does nothing at all (just gives a click sound from IE):

<a href="http://brat/ReportServer/Pages/ReportViewer.aspx?%2fAccount+Profile&rs:Command=Render&rc:Zoom=100" target=apcontent><u>Accounts</u></a>

Very perplexing (at least to me). Any ideas on why this could be happening would be greatly appreciated. TIA.

|||

Adding more info to above. On my development machine (XP/SP2), the link is working from a frame also.

So, the link is not working on the production intranet site for some reason. The dev platform is 2005 Reporting Services with the reporting server databases on sql server 2005 on XP/SP2. The production platform is 2005 Reporting Services but the reporting server databases are on sql server 2000 on windows 2003 server.

The data source for the report is identical for both the platform (stored proc on sql 2000). Any ideas? TIA.

|||

MaryAnn80 wrote:

ok it works!

Thanks a lot for your help

Hi, mate, how did you make it work? I used the same code but the link disappeared when I use '=javascript'. I am using SQL 2005 reporting services. I just want make UserID as an URL and when I click it, it open a new window, it just doesn't work.

|||Yeahhh!I got it working now.Thanks folks!|||

I have a piece of JavaScript for Jump to URL like the following:

=void window.open('MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The SSRS report is hosted by a Report Viewer control in a Web page (like MyPage.aspx).

The Web page is under a sub-folder of the application root (like http://MyApp/Module1).

The link works fine when the page shows up for the first time (http://MyApp/Module1/MyPage.aspx and the report shows up as expected).

However, if the Refresh button of the Report Viewer is pressed, the access path between the application root and page is chopped off (and I will have an error 404 message says Requested URL: /MyApp/MyPage.aspx resource can not be found.

Everything works fine if I change the JavaScript to:

=void window.open('http://MyServer/MyApp/Module1/MyPage.aspx?ContactId=" + CStr(Fields!ContactId.Value) + "','_blank','location=yes,toolbar=yes,scrollbars=yes,resizable=yes,left=100,top=100,height=600,width=1000')"

The problem with hard coding the full access path is that I have to modify the JavaScript every time when I roll a report from development to production.

I’ve tried a variety of access path strings to make the JavaScript server independent (such as ../Module1/MyPage.aspx, and so on) and have no luck so far.

Can anyone help?

Thanks

|||

I know it's a while late - but I thought it worth posting something here which I have struggled with for some time in RS.

I have a site with 2 frames - left (named "Menu") for the... you guessed it... Menu. and the right frame called "Body".

I was using several dynamic menu items to open up RS reports.

I went to use this, as per many examples, and it did not work. It just clicked with no action (or with Friendly Error Messages turned on it came up with an error screen with the java<removethis>script in the address bar.

="java<removethis>script:void(window.open('" + Trim(Fields!MY_URL.Value) + "','_blank', 'location=no,toolbar=no,left=100,top=100,height=600,width=800'))"

I figured out after much trial and error that because everything in RS has a target of _top it was causing problems in a frameset. So, the solution which I came up with, and have implemented is as follows:

In the left menu I have added &rc:LinkTarget=Body to the end of all the calls to the report (they populate in the Body frame). Then I use the above javascript for all URL's, and it opens them in a blank window as required.

Hope this may help someone else who struggles with this one.

Cheers,

AndyCJ

Open the link in new window

When i giving a url passing some parameter..in Jump to Url of cell navigation properties..

In VS Studio its opening in new window ..but when deployed in server and its opening same browser while my requirement is to open in new window..

You need to set the LinkTarget deviceinfo to "_blank". This can be set using a url parameter or in the rsreportserver.config file.

See this link for more information on setting the device info:

http://msdn2.microsoft.com/en-us/library/ms155397.aspx

This link has information on the device info settings for the html renderer.

http://msdn2.microsoft.com/en-us/library/ms155395.aspx

|||

I have Used this code in jump to url of navigation text box void(window.open(url))" its working and had satisfied mine requirement..

sql

Open the link in new window

When i giving a url passing some parameter..in Jump to Url of cell navigation properties..

In VS Studio its opening in new window ..but when deployed in server and its opening same browser while my requirement is to open in new window..

You need to set the LinkTarget deviceinfo to "_blank". This can be set using a url parameter or in the rsreportserver.config file.

See this link for more information on setting the device info:

http://msdn2.microsoft.com/en-us/library/ms155397.aspx

This link has information on the device info settings for the html renderer.

http://msdn2.microsoft.com/en-us/library/ms155395.aspx

|||

I have Used this code in jump to url of navigation text box void(window.open(url))" its working and had satisfied mine requirement..

Monday, March 19, 2012

Open New Window from Iframe

I am having this problem. Any thoughts?
the standard way of opening a new window using the Jump To URL
navigation feature - ie using the
="javascript:void(window.open('someURL'))" works great as long as the
report containing these links is NOT in an IFRAME. If it is, it's
treating the Javascript as the URL.
Anyone getting same results? Anyone know of a workaround?This is one I use. But, this opens it up in a new window.
="javascript:void(window.open('" & Globals!ReportServerUrl &
"?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
"&rs:Format=CSV&rc:Encoding=ASCII','_blank'))"
I worked with someone about a week ago who wanted to do what you do. This is
what I believed worked for him. Let's say your iframe is called main. Then
do this:
="javascript:void(window.open('" & Globals!ReportServerUrl &
"?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
"&rs:Format=CSV&rc:Encoding=ASCII','main'))"
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Raz" <Raz@.discussions.microsoft.com> wrote in message
news:184220F9-B42F-42B9-80F1-ED8946C29EB6@.microsoft.com...
>I am having this problem. Any thoughts?
> the standard way of opening a new window using the Jump To URL
> navigation feature - ie using the
> ="javascript:void(window.open('someURL'))" works great as long as the
> report containing these links is NOT in an IFRAME. If it is, it's
> treating the Javascript as the URL.
> Anyone getting same results? Anyone know of a workaround?
>|||Thanks for the Reply Bruce. I have read many of your posts and have already
tried opening a window using your technique. Actually the technique works
fine except for when you are opening a window from an Iframe the address bar
in the new window shows
"javascript:void(window.open('http://www.google.com','_blank'))" instead of
the url "http://www.google.com" of course the result of this is "Page cannot
be displayed"
Any thoughts?
"Bruce L-C [MVP]" wrote:
> This is one I use. But, this opens it up in a new window.
> ="javascript:void(window.open('" & Globals!ReportServerUrl &
> "?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
> "&rs:Format=CSV&rc:Encoding=ASCII','_blank'))"
> I worked with someone about a week ago who wanted to do what you do. This is
> what I believed worked for him. Let's say your iframe is called main. Then
> do this:
> ="javascript:void(window.open('" & Globals!ReportServerUrl &
> "?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
> "&rs:Format=CSV&rc:Encoding=ASCII','main'))"
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Raz" <Raz@.discussions.microsoft.com> wrote in message
> news:184220F9-B42F-42B9-80F1-ED8946C29EB6@.microsoft.com...
> >I am having this problem. Any thoughts?
> >
> > the standard way of opening a new window using the Jump To URL
> > navigation feature - ie using the
> > ="javascript:void(window.open('someURL'))" works great as long as the
> > report containing these links is NOT in an IFRAME. If it is, it's
> > treating the Javascript as the URL.
> >
> > Anyone getting same results? Anyone know of a workaround?
> >
>
>|||Just to let everyone know I go this working by including &rc:linktarget=_self
in the url to the report server.
"Raz" wrote:
> Thanks for the Reply Bruce. I have read many of your posts and have already
> tried opening a window using your technique. Actually the technique works
> fine except for when you are opening a window from an Iframe the address bar
> in the new window shows
> "javascript:void(window.open('http://www.google.com','_blank'))" instead of
> the url "http://www.google.com" of course the result of this is "Page cannot
> be displayed"
> Any thoughts?
> "Bruce L-C [MVP]" wrote:
> > This is one I use. But, this opens it up in a new window.
> >
> > ="javascript:void(window.open('" & Globals!ReportServerUrl &
> > "?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
> > "&rs:Format=CSV&rc:Encoding=ASCII','_blank'))"
> >
> > I worked with someone about a week ago who wanted to do what you do. This is
> > what I believed worked for him. Let's say your iframe is called main. Then
> > do this:
> >
> > ="javascript:void(window.open('" & Globals!ReportServerUrl &
> > "?/SomeFolder/SomeReport&ParamName=" & Parameters!ParamName.Value &
> > "&rs:Format=CSV&rc:Encoding=ASCII','main'))"
> >
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> >
> >
> > "Raz" <Raz@.discussions.microsoft.com> wrote in message
> > news:184220F9-B42F-42B9-80F1-ED8946C29EB6@.microsoft.com...
> > >I am having this problem. Any thoughts?
> > >
> > > the standard way of opening a new window using the Jump To URL
> > > navigation feature - ie using the
> > > ="javascript:void(window.open('someURL'))" works great as long as the
> > > report containing these links is NOT in an IFRAME. If it is, it's
> > > treating the Javascript as the URL.
> > >
> > > Anyone getting same results? Anyone know of a workaround?
> > >
> >
> >
> >

Open Navigation Link in a new window

I have a report with a hyperlink. When I go to the navigation tab, it does not give me any options to open the link in a new window. I have a link to show help and I do not want the user to actually move away from the reports
Any ideas? This is such a simple thing..I wonder how MS misses this?

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

Note: be careful with single and double quotes in the expression - especially if you use RDL expressions to concatenate static information with dynamic information from e.g. a field value.

-- Robert

|||The reason it does not work is the built in rendering extension puts "_Top" in the <a href> tag that it renders. Somehow, we need to change that '_Top" to "_blank" while rendering.

Is there any way you know of?

Thanks.|||

You can do this by using URL access to render the report and specifying the rc:LinkTarget parameter. See: http://msdn2.microsoft.com/en-us/library/ms155395.aspx

-- Robert

|||

Hi, Robert,

All of my users are using http://machine/reports or http://machine/reportserver with IE. Is there anyway to change the default value of LinkTarget at navigation link from _top to _blank in .config file to make this behavior by default?

I tried to modify rsreportserver.config without luck.

I also noticed that the default behavior of SSRS 2000 does allow one to open new window at navigation link (right click -> Open new window). But this has been removed from SSRS 2005 (well, at least its default behavior is not to open a new window).

Thanks.

Kong

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because or report server runs in a framed wrapper the window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any other frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because our report server runs in a framed wrapper the javascript clientside window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

It's perfect but I coudn't figure out how to do it with a field value like:

"https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf"

Could you help me Robert ?

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

Thank you Robert !

It worked like a charm, I'm using SQL 2005 for about 2 months, and it's really difficulty to find good information.

I've bought 2 books from the "dummies" series, but this kind of info is not there :(

Thank you again !

RGDS

Norberto

ps-would you know also how to complete this command, hiding all the bars from the browser (address bar, toolbar, etc...)

|||

Never mind, just found it

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank','toolbar=false'))"

Don't know why, i was using "menu=no"

Tks again

|||

hello :

On a hypertext link in a report, how to open the link in a new window IE. ?

Thank's

Open Navigation Link in a new window

I have a report with a hyperlink. When I go to the navigation tab, it does not give me any options to open the link in a new window. I have a link to show help and I do not want the user to actually move away from the reports
Any ideas? This is such a simple thing..I wonder how MS misses this?

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

Note: be careful with single and double quotes in the expression - especially if you use RDL expressions to concatenate static information with dynamic information from e.g. a field value.

-- Robert

|||The reason it does not work is the built in rendering extension puts "_Top" in the <a href> tag that it renders. Somehow, we need to change that '_Top" to "_blank" while rendering.

Is there any way you know of?

Thanks.|||

You can do this by using URL access to render the report and specifying the rc:LinkTarget parameter. See: http://msdn2.microsoft.com/en-us/library/ms155395.aspx

-- Robert

|||

Hi, Robert,

All of my users are using http://machine/reports or http://machine/reportserver with IE. Is there anyway to change the default value of LinkTarget at navigation link from _top to _blank in .config file to make this behavior by default?

I tried to modify rsreportserver.config without luck.

I also noticed that the default behavior of SSRS 2000 does allow one to open new window at navigation link (right click -> Open new window). But this has been removed from SSRS 2005 (well, at least its default behavior is not to open a new window).

Thanks.

Kong

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because or report server runs in a framed wrapper the window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any other frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because our report server runs in a framed wrapper the javascript clientside window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

It's perfect but I coudn't figure out how to do it with a field value like:

"https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf"

Could you help me Robert ?

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

Thank you Robert !

It worked like a charm, I'm using SQL 2005 for about 2 months, and it's really difficulty to find good information.

I've bought 2 books from the "dummies" series, but this kind of info is not there :(

Thank you again !

RGDS

Norberto

ps-would you know also how to complete this command, hiding all the bars from the browser (address bar, toolbar, etc...)

|||

Never mind, just found it

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank','toolbar=false'))"

Don't know why, i was using "menu=no"

Tks again

|||

hello :

On a hypertext link in a report, how to open the link in a new window IE. ?

Thank's

Open Navigation Link in a new window

I have a report with a hyperlink. When I go to the navigation tab, it does not give me any options to open the link in a new window. I have a link to show help and I do not want the user to actually move away from the reports
Any ideas? This is such a simple thing..I wonder how MS misses this?

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

Note: be careful with single and double quotes in the expression - especially if you use RDL expressions to concatenate static information with dynamic information from e.g. a field value.

-- Robert

|||The reason it does not work is the built in rendering extension puts "_Top" in the <a href> tag that it renders. Somehow, we need to change that '_Top" to "_blank" while rendering.

Is there any way you know of?

Thanks.|||

You can do this by using URL access to render the report and specifying the rc:LinkTarget parameter. See: http://msdn2.microsoft.com/en-us/library/ms155395.aspx

-- Robert

|||

Hi, Robert,

All of my users are using http://machine/reports or http://machine/reportserver with IE. Is there anyway to change the default value of LinkTarget at navigation link from _top to _blank in .config file to make this behavior by default?

I tried to modify rsreportserver.config without luck.

I also noticed that the default behavior of SSRS 2000 does allow one to open new window at navigation link (right click -> Open new window). But this has been removed from SSRS 2005 (well, at least its default behavior is not to open a new window).

Thanks.

Kong

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because or report server runs in a framed wrapper the window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any other frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because our report server runs in a framed wrapper the javascript clientside window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

It's perfect but I coudn't figure out how to do it with a field value like:

"https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf"

Could you help me Robert ?

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

Thank you Robert !

It worked like a charm, I'm using SQL 2005 for about 2 months, and it's really difficulty to find good information.

I've bought 2 books from the "dummies" series, but this kind of info is not there :(

Thank you again !

RGDS

Norberto

ps-would you know also how to complete this command, hiding all the bars from the browser (address bar, toolbar, etc...)

|||

Never mind, just found it

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank','toolbar=false'))"

Don't know why, i was using "menu=no"

Tks again

|||

hello :

On a hypertext link in a report, how to open the link in a new window IE. ?

Thank's

Open Navigation Link in a new window

I have a report with a hyperlink. When I go to the navigation tab, it does not give me any options to open the link in a new window. I have a link to show help and I do not want the user to actually move away from the reports
Any ideas? This is such a simple thing..I wonder how MS misses this?

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

Note: be careful with single and double quotes in the expression - especially if you use RDL expressions to concatenate static information with dynamic information from e.g. a field value.

-- Robert

|||The reason it does not work is the built in rendering extension puts "_Top" in the <a href> tag that it renders. Somehow, we need to change that '_Top" to "_blank" while rendering.

Is there any way you know of?

Thanks.|||

You can do this by using URL access to render the report and specifying the rc:LinkTarget parameter. See: http://msdn2.microsoft.com/en-us/library/ms155395.aspx

-- Robert

|||

Hi, Robert,

All of my users are using http://machine/reports or http://machine/reportserver with IE. Is there anyway to change the default value of LinkTarget at navigation link from _top to _blank in .config file to make this behavior by default?

I tried to modify rsreportserver.config without luck.

I also noticed that the default behavior of SSRS 2000 does allow one to open new window at navigation link (right click -> Open new window). But this has been removed from SSRS 2005 (well, at least its default behavior is not to open a new window).

Thanks.

Kong

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because or report server runs in a framed wrapper the window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any other frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because our report server runs in a framed wrapper the javascript clientside window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

It's perfect but I coudn't figure out how to do it with a field value like:

"https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf"

Could you help me Robert ?

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

Thank you Robert !

It worked like a charm, I'm using SQL 2005 for about 2 months, and it's really difficulty to find good information.

I've bought 2 books from the "dummies" series, but this kind of info is not there :(

Thank you again !

RGDS

Norberto

ps-would you know also how to complete this command, hiding all the bars from the browser (address bar, toolbar, etc...)

|||

Never mind, just found it

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank','toolbar=false'))"

Don't know why, i was using "menu=no"

Tks again

|||

hello :

On a hypertext link in a report, how to open the link in a new window IE. ?

Thank's

Open Navigation Link in a new window

I have a report with a hyperlink. When I go to the navigation tab, it does not give me any options to open the link in a new window. I have a link to show help and I do not want the user to actually move away from the reports
Any ideas? This is such a simple thing..I wonder how MS misses this?

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

Note: be careful with single and double quotes in the expression - especially if you use RDL expressions to concatenate static information with dynamic information from e.g. a field value.

-- Robert

|||The reason it does not work is the built in rendering extension puts "_Top" in the <a href> tag that it renders. Somehow, we need to change that '_Top" to "_blank" while rendering.

Is there any way you know of?

Thanks.|||

You can do this by using URL access to render the report and specifying the rc:LinkTarget parameter. See: http://msdn2.microsoft.com/en-us/library/ms155395.aspx

-- Robert

|||

Hi, Robert,

All of my users are using http://machine/reports or http://machine/reportserver with IE. Is there anyway to change the default value of LinkTarget at navigation link from _top to _blank in .config file to make this behavior by default?

I tried to modify rsreportserver.config without luck.

I also noticed that the default behavior of SSRS 2000 does allow one to open new window at navigation link (right click -> Open new window). But this has been removed from SSRS 2005 (well, at least its default behavior is not to open a new window).

Thanks.

Kong

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because or report server runs in a framed wrapper the window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any other frame names.

here is my code sample:

="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"

Because our report server runs in a framed wrapper the javascript clientside window.open method cannot work either.

any suggestions would be helpful.

Thanks.

|||

One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"

It's perfect but I coudn't figure out how to do it with a field value like:

"https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf"

Could you help me Robert ?

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

|||

Try this:

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"

-- Robert

Thank you Robert !

It worked like a charm, I'm using SQL 2005 for about 2 months, and it's really difficulty to find good information.

I've bought 2 books from the "dummies" series, but this kind of info is not there :(

Thank you again !

RGDS

Norberto

ps-would you know also how to complete this command, hiding all the bars from the browser (address bar, toolbar, etc...)

|||

Never mind, just found it

="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank','toolbar=false'))"

Don't know why, i was using "menu=no"

Tks again

|||

hello :

On a hypertext link in a report, how to open the link in a new window IE. ?

Thank's