Search code examples
hyperlinkjasper-reportsreport

Conditional Hyperlink in JasperReports 5.0


I have created several drilldown reports within my report unit and one of them is based on number of transactions (drilldown for more detail).

I want the drilldown to only be available when the number of transactions is greater than or equal to one.

Can this currently be done?


Solution

  • You could have two fields stacked on top of one another, one with the hyperlink and one without. Set your expression to show the field without the hyperlink when transactions < 1, and show the field with the hyperlink when transactions >= 1.