13.07.2015 Views

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.2.3 Built-in ParametersFields, Parameters, and VariablesUR provides some built-in parameters (they are internal to the reporting engine) that you may read but cannotmodify. These parameters are presented in the following table:Table 6-1Unified Reporter Built-in parametersParameterREPORT_PARAMETERS_MAPREPORT_CONNECTIONREPORT_DATASOURCEREPORT_SCRIPTLETIS_IGNORE_PAGINATIONREPORT_LOCALEREPORT_TIME_ZONEREPORT_MAX_COUNTREPORT_RESOURCE_BOUNDLEREPORT_VIRTUALIZERREPORT_FORMAT_FACTORYREPORT_CLASS_LOADERREPORT_URL_HANDLER_FACTORYREPORT_FILE_RESOLVERREPORT_TEMPLATESExplanationThis is the java.util.Map passed to the fillReport method; itcontains the parameter values defined by the user.This is the JDBC connection passed to the report when the report iscreated through a SQL query.This is the data source used by the report when it is not using a JDBCconnection.This represents the scriptlet instance used during creation. If no scriptletis specified, this parameter uses an instance ofnet.sf.jasperreports.engine.JRDefaultScriptlet. *You can switch the pagination system on and off with this parameter (itmust be a Boolean object). By default, pagination is used except whenexporting to HTML and Excel formats.This is used to set the locale used to fill the report. If no locale isprovided, the system default will be used.This is used to set the time zone used to fill the report. If no value isprovided, the system default will be used.This is used to limit the number of records filling a report. If no value isprovided, no limit will be set.This is the resource bundle loaded for this report. See Chapter 11 forhow to provide a resource bundle for a report.This defines the class for the report filler that implements theJRVirtualizer interface for filling the report.This is an instance of anet.sf.jasperreports.engine.util.FormatFactory. Theuser can replace the default one and specify a custom version using aparameter. Another way to use a particular format factory is by settingthe report property format factory class.This parameter can be used to set the class loader to use when fillingthe report.Class used to create URL handlers. If specified, it will replace thedefault one.This is an instance ofnet.sf.jasperreports.engine.util.FileResolver used toresolve resource locations that can be passed to the report in order toreplace the default implementation.This is an optional collection of styles (JRTemplate) that can be usedin the report in addition to the ones defined in the report.* Starting with JasperReports 1.0.0, an implicit cast to the provided scriptlet class is performed. This simplifies manyexpressions that use the provided scriptlet class.103

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!