The report library includes the following functions:
System function/Invocation | Description |
---|---|
addReportParameter(report, parameterString, parameterValue) | Adds a value to the parameter list of the report |
fillReport(report, source) | Fills the report using the specified data source |
exportReport(report, format) | Exports the filled report in the specified format |
resetReportParameters(report) | Removes all of the parameters used for a particular report |
The following functions are invoked only within report handlers:
System function/Invocation | Description |
---|---|
addReportData(rd, dataSetName) | Adds the report data object with the specified name to the current Report Handler. |
result = getReportData(dataSetName) | Retrieves the report data record with the specified name. The returned value is of type ReportData. |
result = getReportParameter(parameter) | Returns the value of the specified parameter from the report that is being filled. |
result = getFieldValue(fieldName) | Returns the value of the specified field value for the row currently being processed. The returned value is of type ANY. |
result = getReportVariableValue(variable) | Returns the value of the specified variable from the report that is being filled. The returned value is of type ANY. |
setReportVariableValue(variable, value) | Sets the value of the specified variable to the provided value. |
The report library also includes the following Java™ method that you may invoke only from within a JasperReports XML source file:
System function/Invocation | Description |
---|---|
getDataSource() (datasource ); | Within a report design file, retrieves a previously stored ReportData data record, in the form of a JRDataSource object. |
Related concepts
EGL report creation process overview
EGL reports overview