You can use the
addReportData() JasperReport
handler function to associate data (as stored in a report data variable)
with
an arbitrary ID. You can retrieve the data in two ways:
- Call
the getReportData() function in the JasperReports
handler.
- Invoke the getDataSource() method
in the design
file.
addReportData(
rd ReportData in,
dataID STRING in)
- rd
- A report data variable.
- dataID
- An
arbitrary name that you can use to access the data in the variable.