addReportParameter()

Before filling a report, EGL can pass a set of parameters that either establish values to be used in the report or override parameters specified in the XML report design. You can use the reportLib.addReportParameter() system function to add the value of the specified parameter to the parameter list for the report.

For information on JasperReports parameters and data types, refer to the JasperReports documentation: http://jasperforge.org/sf/wiki/do/viewPage/projects.jasperreports/wiki/HomePage.

Syntax

The syntax for the reportLib.addReportParameter() function is as follows:

  reportLib.addReportParameter(
    report Report in,
    parameterString STRING in,
    parameterValue ANY in)
report
The name of the report.
parameterString
The name of the parameter.
parameterValue
The value of the parameter.

Example

The following example shows the reportLib.addReportParameter() function:

reportLib.addReportParameter(custReport, "companyName", company);

Feedback