Avatar of MadIce
MadIce

asked on 

Display SSRS linked report in new tab passing parameters.

Have a report in SSRS that I've added a link to another report within a textbox using "Go to URL" because wanted to open in new tab. The below code will open the report but doesn't pass the parameters:

="javascript:void(window.open('https://servername/RsMgt/Pages/Report.aspx?ItemPath=%2fInventory+Data%2fActivity+Lifespan&rs:Command=Render & Fields!Location.Value & Fields!SN.Value'))"

Any ideas what I'm doing wrong?
on SQL Server 2008 R2.
SSRSMicrosoft Server OSMicrosoft SQL Server

Avatar of undefined
Last Comment
MadIce
Avatar of irudyk
irudyk
Flag of Canada image

Try the following which places the field values outside of the string you are building between the ""

="javascript:void(window.open('https://servername/RsMgt/Pages/Report.aspx?ItemPath=%2fInventory+Data%2fActivity+Lifespan&rs:Command=Render" & Fields!Location.Value & Fields!SN.Value & "'))"
Avatar of irudyk
irudyk
Flag of Canada image

Just curious if you had any luck with the above suggestion?
Avatar of MadIce
MadIce

ASKER

Thank you for the reply irudyk. I tried before what you suggested but couldn't get it to work. This is how I got it to work:
="javascript:void(window.open('https://servername/ReportServer/Pages/ReportViewer.aspx?%2fInventory+Data%2fActivity+Lifespan&rc: Command=Render&Dodic=" & Fields!Location.Value & "&Lot=" & Fields!SN.Value & "'))"

I switched to ReportServer  vs RsMgt. not sure If that mattered but changing from RS to RC did right before Comannd=Render.

Not sure what the difference is. Tried to research. So this difference in an example. Worked for me.
ASKER CERTIFIED SOLUTION
Avatar of MadIce
MadIce

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo