Jump to content
Changes to the Jaspersoft community edition download ×

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


armercer

Recommended Posts

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.

 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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-ultimate-guide

Here is a screenshot of Studio with the property set to do a google search on the F{id} when the user clicks.
Screenshot2014-08-0417_25_11.thumb.png.3c283fbe54d2dd0a04776f8d088b8464.png

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...