Javascript in SSRS
Hi ,
Can i write javascript in jump to another report when i click a row
Thanks in advance
Nishant
September 26th, 2008 2:41pm
Yes you can.. You can go to the expression window and write Javascript expression.
Regards..
Girija Shankar
Free Windows Admin Tool Kit Click here and download it now
September 26th, 2008 3:17pm
Yes you can.
You can go to properties of the row and select Navigation>>Jump to URL
You can then right the following expression to open another report. Just replace the SERVERNAME to the server which you have deployed the reports to. Replace the REPORTFOLDER with the folder name which your reports reside in and replace the REPORTNAME with the name of the report you wish to see.
="javascript:void(window.open('http://<<SERVERNAME>>/Reports/Pages/Report.aspx?ItemPath=%2f<<REPORTFOLDERNAME>>%2f<<REPORTNAME>>','_blank'))"
Hope this helps.
September 26th, 2008 3:58pm
I have tried with jump to report and wrote expression like javascript:alert('hi') but its not working .
Girija do u have any samples for this ???
Thanks in advance
Nishant
Free Windows Admin Tool Kit Click here and download it now
September 26th, 2008 4:16pm
Viral Bhundia wrote:
Yes you can.
You can go to properties of the row and select Navigation>>Jump to URL
You can then right the following expression to open another report. Just replace the SERVERNAME to the server which you have deployed the reports to. Replace the REPORTFOLDER with the folder name which your reports reside in and replace the REPORTNAME with the name of the report you wish to see.
="javascript:void(window.open('http://<<SERVERNAME>>/Reports/Pages/Report.aspx?ItemPath=%2f<<REPORTFOLDERNAME>>%2f<<REPORTNAME>>','_blank'))"
Hope this helps.
I suppose that window.open does't work in 50% of cases because of pop-up blockers. Please see my idea how to resolve it.Please go to page 2 from this reportand click a link after "PROFESSIONAL EXPERIENCE"
September 26th, 2008 4:34pm
Hi Nishant,
You can select provides "Jump to report option" of the action property to redirect to another report.
If there are any more questions, please let me know.
Thanks.
Free Windows Admin Tool Kit Click here and download it now
September 29th, 2008 8:46am
hi
try this
Jump To URL in an SSRS 2005 report.your Jump To URL expression should be
To URL expression:
You window.open() statement requires three arguments. ="javascript:void(window.open('http://pms:5555/sfa/opps/edit.aspx?id=" + Fields!opportunityid.Value.tostring + "','newWin','menubar=0,statusbar=0,width=500,height=500'))"
thanks
anlis
Plz mark as answer if this posthas solved your problem
September 29th, 2008 9:38am
Pls go through the given link..http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/5c525e46-c47e-4bea-9356-ac93537cb88cTripathi_soft
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2010 6:47am
For a certain purpose, I need go back from subreport. I put a text under the table, and set it like a link, then I use "javascript:history.go(-1);" in it expression, but this link can not work well.
December 14th, 2011 2:18am