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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 HTML in SSRS

Author  Topic 

s_anr
Yak Posting Veteran

81 Posts

Posted - 2010-09-22 : 22:45:12
I have a view which gives following output / query

(select name, ('http://' + name + '.com') as URL from my table)

Name URL
test1 http://test1.com
test2 http://test2.com
test3 http://test3.com
test4 http://test4.com

I created a SSRS report (report on report manager). It dosn't show a hyperlink.

i'd like to show just one column and link it to the corresponding URL

NamewithURL
test1 (pointing to http://test1.com)
test2 (pointing to http://test2.com)
test3 (pointing to http://test3.com)
test4 (pointing to http://test4.com)

It simply doesn't show the hyperlink.
i even tried (select name, ('<a href http://' + name + '.com>' + '</a>') as URL from my table)

Any suggestions please...

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-09-23 : 12:35:05
nope. you just bring url as it as without hyperlink tag and add the field to jump to url property of cell in expression as

=Fields!yoururlfieldname.value

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

s_anr
Yak Posting Veteran

81 Posts

Posted - 2010-09-23 : 23:59:43
Thanks vikash. It was really simple and i spent hours on it.. :)
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-09-25 : 00:26:30
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

s_anr
Yak Posting Veteran

81 Posts

Posted - 2010-09-25 : 00:34:59
Hey vikash,

The hyperlink opens in the same window. Any idea how to open in a target new window. Appreciate your help.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-09-25 : 00:55:10
give like

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

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

s_anr
Yak Posting Veteran

81 Posts

Posted - 2010-09-25 : 16:25:30
Awesome...... Perfect!!!!

Thanks Vikash. You made my day!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-09-26 : 02:07:55
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -