Applying formatting pattern to the value of a data field
Several components of a report may require some sort of formatting of data coming from the database. For example, companies normally have specific formats for identifiers or numeric values used in their reports. JasperReports allows you to incorporate such formatting and this recipe teaches you how to format identifiers and numeric values.
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
jasperdb3 and copy sample data for this ...