Using parameters to filter records during report processing
JasperReports allows you to filter records during report processing and show only those of interest in a particular report. This recipe teaches you how to use this feature of filtering of records during report processing.
Refer to the
installPostgreSQL.txt file included in the source code download for this chapter to install and run PostgreSQL, which should be up and running before you proceed. The source code for this chapter also includes a file named
copySampleDataIntoPGS.txt, which helps you create a database named
jasperdb2 and copy sample data for this recipe into the database.
How to do it...
Following simple steps demonstrate how you can filter records to be shown in ...