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 |
jassie
Constraint Violating Yak Guru
332 Posts |
Posted - 2013-12-17 : 15:42:11
|
In a SSRS 2008 R2 report, I am able to have the users open a pdf document in a new window by using the following code in the action field of a textbox property:="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))".My goal is not to hard code the url path. I would like the url path to be dynamic based upon which report server the ssrs report is running from.Basically I would like to replace the http://test1.op.org/ReportServer with the Globals!ReportServerUrl variable that report server has a available.I would like to replace the above expression with the following:="javascript:void(window.open('Globals!ReportServerUrl/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))". However this expression does not work.Thus can you tell me how to use the Globals!ReportServerUrl ssrs item with the javasctript window open statement so that the expression works correctly? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-12-18 : 07:48:06
|
try like below="javascript:void(window.open('" + Globals!ReportServerUrl + "/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
jassie
Constraint Violating Yak Guru
332 Posts |
Posted - 2013-12-18 : 11:13:24
|
works great! Thanks |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-12-19 : 03:37:32
|
welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|