Atlanta Custom Software Development 

   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools


Reporting Services gives you several ways to navigate within your report or navigating to external item (i.e. Navigating to other reports or any web URL).

You can use a feature called "Jump to URL". Use the following steps to set "Jump to URL"

Method-1
- Drag a datafield on the report
- Click on the Textbox
- Find the Action property of Textbox the property window
- Select Jump to URL option
- Type any valid URL (i.e. http://binaryworld.net/Main/CodeDetail.aspx?CodeId=3668), valid URL must start with protocol like http: ,ftp:, mailto: ...

Method-2
- Drag a datafield on the report
- Right click and open properties dialog box (or just look in the property window ->Action ->Jump to URL)
- Click on "Advanced >>"
- Click on the navigation tab
- Select "Jump to URL"
- Type any valid URL (i.e. http://binaryworld.net/Main/CodeDetail.aspx?CodeId=3668)

Opening Link in a new window

Well this is very common requirement but unfortunately there is no direct option available in Reporting Services Designer. You can do that using the following technique

Use the following expression in the "Jump to URL"

Note: The following expression will only work if you have applied SP1 or Higher for SQL Reporting Services

Click here to copy the following block
="javascript:void(window.open('http://binaryworld.net/Main/CodeDetail.aspx?CodeId=3668','_blank'))"

How to overcome expression length limitation

Another limitation of "Jump to URL" field is you are limited to Maximum expression characters. You can solve this problem by using "Dummy parameters". You can create parameters for report without any prompt string and then specify default value which will act as a constant for your report.

For example if I have a really long URL which is not allowed in the "Jump to URL" expression then I can create a new report parameter called CW_URL. Set your long URL as default value for this parameter. Now remove any prompt string for this parameter so it wont appear when you run your report.

default value for cw_url => http://binaryworld.net/Main/CodeDetail.aspx?CodeId=

Now you can type the following expression in "Jump to URL" to get dynamic URL based on Database field called CodeID and static URL from cw_url hidden parameter.

Click here to copy the following block
="javascript:void(window.open('" & Parameters!cw_url.Value & Fields!CodeId.value & "','_blank'))"



Audit, Notify, Deploy and Manage SSIS
Download the Free 30-day Trial Version...Learn More About This Product...

Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (883) submissions by this author  (Birth Date : 7/14/1981 )

Recommanded Links

 

New Comment
 
  How to overcome URL length limitation when passing multivalued parameters by java scripting in ssrs 2005(Jump To URL)   Kali Jan 21 2010 2:15AM


Home  |  Comment  |  Contact UsPrivacy PolicyTerms & Conditions

© 2008 BinaryWorld LLC. All rights reserved.