Hi ,
This post is a re-blogging on how to get data in a pop-up like tool tip when clicking on a text field or image field or a graph slice or bar.
Here is the actual reference for the example :
http://community.jaspersoft.com/blog/executing-javascript-functions-jasperreports-within-jasperreports-server
Example Environment :
TIBCOJapsersoft Design Studio Professional 6.1
Japser Server 6.2 Professional
PostgreSQL database.
Example explained in below PPT - Visit download section in this page.
Sample Screenshots :
Image-1 : Sample Code to come in PopUp:
(Please click on images for best view of content available on it)
Image-2 : Sample output : Perform click action on customer_id=6 field as shown below
(Please click on images for best view of content available on it)
Image-3 : Sample output : Perform click action on customer_id=2 field as shown below
(Please click on images for best view of content available on it)
Download :
1) Presentation
2) JRXML
3) Report zip extract from Server
4) Original source code
5) source js file.
Click me to download
Direct link :
https://drive.google.com/folderview?id=0BymV_QP4TGBEWEZwYk9aYUxLQjg&usp=sharing
I hope this re-blog helps someone in the community..!
Regards,
Sadakar Pochampalli
This post is a re-blogging on how to get data in a pop-up like tool tip when clicking on a text field or image field or a graph slice or bar.
Here is the actual reference for the example :
http://community.jaspersoft.com/blog/executing-javascript-functions-jasperreports-within-jasperreports-server
Example Environment :
TIBCOJapsersoft Design Studio Professional 6.1
Japser Server 6.2 Professional
PostgreSQL database.
Example explained in below PPT - Visit download section in this page.
Sample Screenshots :
Image-1 : Sample Code to come in PopUp:
(Please click on images for best view of content available on it)
Image-2 : Sample output : Perform click action on customer_id=6 field as shown below
(Please click on images for best view of content available on it)
Image-3 : Sample output : Perform click action on customer_id=2 field as shown below
(Please click on images for best view of content available on it)
Download :
1) Presentation
2) JRXML
3) Report zip extract from Server
4) Original source code
5) source js file.
Click me to download
Direct link :
https://drive.google.com/folderview?id=0BymV_QP4TGBEWEZwYk9aYUxLQjg&usp=sharing
I hope this re-blog helps someone in the community..!
Regards,
Sadakar Pochampalli
Well, I tried this - but nothing happens... and yes, I did add the js file the the c:\Jaspersoft\jasperreports-server-6.2.0\apache-tomcat\webapps\jasperserver-pro\optimized-scripts folder and re-started the server...
ReplyDelete