Java Reference
In-Depth Information
only when it is different from the previous one. This will improve report readability,
since the person reading the report would not have to look at the model number
unless it is different from the previous one. In the following example, we will modify
the JRXML template discussed in that section to accomplish this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN"
<jasperReport name="IsPrintRepeatedValuesDemo">
<![CDATA[select a.tail_num, a.aircraft_serial, am.model, a.state
from aircraft a, aircraft_models am
where a.aircraft_model_code = am.aircraft_model_code
and = 'US' and state like 'A%'
order by state, model]]>
<field name="tail_num" class="java.lang.String"/>
<field name="aircraft_serial" class="java.lang.String"/>
<field name="model" class="java.lang.String"/>
<field name="state" class="java.lang.String"/>
<group name="StateGroup">
<band height="40">
<reportElement x="0" y="10" width="115" height="20"/>
<font isBold="true"/>
<text>Aircraft Registered In:</text>
<reportElement x="116" y="10" width="20" height="20"/>
Search WWH ::

Custom Search