JasperReports & iReport: Generate a Message or Popup if report of hyperlink is empty -
i created few reports in ireport linked together. have 1 main report contains 3 links other reports.
through database structure possible linked report empty.
for example: report1 contains links report2. parameter number 1. report1 has dataset 1. report 2 has dataset 2. dataset 2 has no entries number 1.
if use report 1 shows link report 2, if click on link of report 2, message empty.
is there possibilty generate pop says, report has no data user stays on report 1? or there possibility, link report 2 no link, if report empty?
this hypothesis...
you use sub-report render link report 2.
in sub-report count how many rows in report 2. if row count > 0 sub-report show link, otherwise empty (sub)report.
take try.
Comments
Post a Comment