How to create a hyperlink to another report from a table in another report?

0

I have a report with a table. The table data are results from a SQL query. I need to create a hyperlink from the field, $F{id}.  The hyperlink needs to pass the value of $F{id}  to the other report. Both reports work independently. I need to know how to link them so that my client can click on the id field and that field value is passed as a parameter to the other report. I am using JasperSoft Studio Community 5.6.0.  I do not use JasperServer.

Thank you.

 

 

armercer's picture
Joined: Nov 4 2013 - 1:00pm
Last seen: 5 years 2 months ago

2 Answers:

0

JasperReports server handles that for you using the ReportExecution Hyperlink. But if you are not using JasperServer  you will need to implement and handle the hyperlink even from within your web application. 

In that case you will create a standard Reference Hyperlink and in the  Hyperlink Reference Expression you can specify an URL form your page that will handle the next report rendering, something like "http://myapp.com/reportrender.html?id=" + F{id}.

In page 150 of the JasperReports Ultimate guide you have all the info regarding Hyperlinks http://community.jaspersoft.com/documentation/jasperreports-library-ulti...

Here is a screenshot of Studio with the property set to do a google search on the F{id} when the user clicks.

marianol's picture
4708
Joined: Sep 13 2011 - 8:04am
Last seen: 1 year 2 weeks ago
0

but it is not work on jaspersoft ireport 5.6.0

khushal.solanki8's picture
Joined: Nov 9 2016 - 4:09am
Last seen: 2 years 5 months ago
Feedback
randomness