Javascript in SSRS?
I just found that we can use javascript in SSRS. Just wondering if we could use some of the jQuery plugins to display errorMessage in fancy MessageBox using javascript and jQuery plugin?
jQuery message box plugins:http://stanlemon.net/projects/jgrowl.html#samples
http://abeautifulsite.net/notebook_files/87/demo/
Thoughts? If yes, how?
creativity..
August 5th, 2009 7:03pm
hmm...no reply so far...does that mean we can't use javascript in SSRS report.
Correct me if i am wrong.creativity..
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2009 7:30pm
This seems feasible, although using javascript in reports is kind of a hack as it is. If you include a script reference to the scripts you posted, maybe added a javascript function to a custom script file you create to do what you want, then in a textbox link etc, do the "javascript:window.top.myFunc(myparams)" you *may* be able to pull this off, but it's kind of ugly.Also remember, not only are you using a workaround to execute the javascript, but when using the report viewer control, you're also inside an Iframe, which adds it's own challenging fun.Can it be done? Probably. Should it? Probably not. Just my opinion.Also keep in mind, your limited only to click events.A better bet, would be using JQuery outside the report to attach events to them, although not sure if you can do this inside an iframe.
August 6th, 2009 7:48pm
Another thing to note, using javascript inside the report maybe doable, but keep in mind it will only work in the online version of the report. It won't work in the preview, it will not work in the excel version etc.
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2009 7:54pm
I agree with StrugglingDev. Just because you can, doesn't mean you should. If fancy error boxes are that valuable, I would suggest developing the report in question with ASP.Net 3.5 SP1 & AJAX. You could then pull and display data with the included controls and make the error box look as pretty as HTML/CSS/AJAX will allow.Garth H
MCTS: SQL 2008 BI
http://bitinkering.spaces.live.com/
August 6th, 2009 7:54pm
I am finding it hard to use javascript in SSRS 2005.... What is the trick?Mr Shaw
Free Windows Admin Tool Kit Click here and download it now
November 21st, 2010 6:26pm