Hyperlink (Jump to URL) Navigation


When a report developer adds Hyperlink action, SSRS generates HREF to create a navigatable HTML link. For example, when a developer enters http://www.microsoft.com into a Textbox's Jump to URL action field and sets the value of Textbox .Value equal to "Visit Microsoft," the following is the link generated by SSRS when it renders the report to HTML format:

[View full width]
 
[View full width]
<a href= "http://www.microsoft.com/" style="text-decoration:none;color:Black" TARGET="_top">Visit Micorosft </a>

Reporting Services allows navigation using other constructs valid for the hrEF tag. For example, javascript:history.back() allows you to emulate a browser's Back button. This particular construct relies on Java support by browser (Netscape 2 or higher and MSIE 3 or higher) and enabled JavaScript. Another valid construct is mailto:support@adventureworks.com , which allows creating a link that launches an email editor and places support@adventureworks.com on the To line. Other valid constructs include the following: ftp://www.microsoft.com to launch a FTP download or news:www.microsoft.com to get to a newsreader.

Note

Not all HREF constructs function in Preview mode. For example, javascript:history.back() will not deliver the action in Preview mode; also this construct will function after the report is deployed to a Report Server.


To create a Hyperlink ( Jump To URL ) action, enter a valid (such as http://www.microsoft.com or other described previously) hrEF construct in the Jump To URL action field. Figure 14.1 shows two dialogs that allow you to input Jump To URL action field for a Textbox or Image report item. Action has the following corresponding RDL.

 <Action>   <Hyperlink>http://www.microsoft.com</Hyperlink>  </Action> 

or

 <Action>   <Hyperlink>={Expression}</Hyperlink>  </Action> 

In the preceding code fragment, an {Expression} is any expression that evaluates to a valid hrEF construct as described previously, such as http://www.microsoft.com.



Microsoft SQL Server 2005 Reporting Services
Microsoft SQL Server 2005 Reporting Services
ISBN: 0672327996
EAN: 2147483647
Year: 2004
Pages: 254

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net