Java Reference
In-Depth Information
<parameter>
This element is used to define report parameters. Parameter values are supplied via a
java.util.Map by calling the appropriate methods in the JasperReports API.
<parameter name="SomeParameter"
class="java.lang.String"/>
A JRXML template can contain zero or more <parameter> elements.
<queryString>
This element is used to define an SQL query to obtain data from a database.
<queryString>
<![CDATA[SELECT column_name FROM table_name]]>
</queryString>
A JRXML template can contain zero or one <queryString> element. This element is
required if we wish to embed an SQL query into the report template.
<ield>
This element is used to map data from datasources or queries into report templates.
Fields can be combined in report expressions to obtain the necessary output.
<field name="FieldName" class="java.lang.String"/>
A JRXML template can contain zero or more <field> elements.
<variable>
Report expressions, used several times in a report, can be assigned to variables to
simplify the template.
<variable name="VariableName"
class="java.lang.Double"
calculation="Sum">
<variableExpression>
$F{FieldName}
</variableExpression>
</variable>
A JRXML template can contain zero or more <variable> elements.
 
Search WWH ::




Custom Search