Search code examples
javascriptreporting-servicesssrs-2008

Opening the URL in a new window in SSRS while passing a paramater


I'm trying to use the code below to open a new window while passing a value to the url.

="javascript:void(window.open('http://MYSite.aspx?acctcode=" &Fields!Account.Value', '_blank'))"

Currently the link is appearing but when I click it nothing is happening.


Solution

  • try with this (expression was incomplete)

    ="javascript:void(window.open('http://MYSite.aspx?acctcode=" & Fields!Account.Value & "', '_blank'))"   
    

    also, verify the same after deploying to the report server, it might not work in preview