Jump to content

Subreport Not Displaying


Recommended Posts

By: speckers - speckers

Subreport Not Displaying

2005-11-02 03:07

I seem to be having a problem similar to some others posted here. I have a master report (AAFIFmasterReport.jrxml) which contains a subreport (AAFIFrunway.jrxml) in the detail band. The master report works fine, but it doesn't display the subreport. Both reports compile without error and I can preview them individually using JasperAssistant and iReport.

 

Following the advice in some other posts, I've set whenNoDataType="AllSectionsNoDetail" in both my master and subreport reports but still no luck. My subreport has some fixed text headings so I thought I would at least see them.

 

Any thoughts?

 

*** Master Report ***

<?xml version="1.0" encoding="UTF-8"?>

<!-- Created using JasperAssistant (http://www.jasperassistant.com) -->

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

 

<jasperReport name="AAFIFmasterReport" language="java" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="768" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">

<property name="ireport.scriptlethandling" value="2"/>

<import value="java.util.*"/>

<import value="net.sf.jasperreports.engine.*"/>

<import value="net.sf.jasperreports.engine.data.*"/>

<parameter name="distribution" class="java.lang.String" isForPrompting="false">

<defaultValueExpression><![CDATA["UNCLASSIFIED"]]></defaultValueExpression>

</parameter>

<parameter name="publishedBy" class="java.lang.String" isForPrompting="false">

</parameter>

<parameter name="dateOfLatestInfo" class="java.util.Date" isForPrompting="false">

</parameter>

<parameter name="completeFileReview" class="java.util.Date" isForPrompting="false">

</parameter>

<parameter name="publishedDate" class="java.util.Date" isForPrompting="false">

</parameter>

<parameter name="AAFIFrunway" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false">

</parameter>

<parameter name="SubReport1" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false">

</parameter>

<parameter name="RC1Parameters" class="java.lang.Object" isForPrompting="false">

</parameter>

<field name="airportName" class="java.lang.String">

</field>

<field name="airportCountryCode" class="java.lang.String">

</field>

<field name="airportCategoryCode" class="java.lang.String">

</field>

<field name="airportAlternateName" class="java.lang.String">

</field>

<field name="airportOperatorName" class="java.lang.String">

</field>

<field name="airportICAO" class="java.lang.String">

</field>

<field name="airportSECICAO" class="java.lang.String">

</field>

<field name="airportFAAHOST" class="java.lang.String">

</field>

<field name="airportFAASiteNo" class="java.lang.String">

</field>

<field name="airportLPRcode" class="java.lang.String">

</field>

<field name="airportGEOLOC" class="java.lang.String">

</field>

<field name="airportGEOPORT" class="java.lang.String">

</field>

<field name="airportWACinstallation" class="java.lang.String">

</field>

<field name="SubDataSource1" class="java.lang.Object">

</field>

<background>

<band>

</band>

</background>

<title>

<band height="238">

<staticText>

<reportElement key="staticText-1" mode="Opaque" x="316" y="24" width="150" height="16"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="true" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[NIMA CUSTOM AIR FACILITY REPORT]]></text>

</staticText>

<staticText>

<reportElement key="staticText-2" mode="Opaque" x="5" y="215" width="726" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[uNLESS OTHERWISE NOTED, DIMENSIONS AND ELEVATIONS ARE IN FEET, MILES ARE NAUTICAL MILES, AND CAPACITIES ARE U.S. GALLONS]]></text>

</staticText>

<staticText>

<reportElement key="staticText-3" mode="Opaque" x="5" y="196" width="186" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[sECURITY CLASSIFICATION CODES:]]></text>

</staticText>

<staticText>

<reportElement key="staticText-4" mode="Opaque" x="5" y="161" width="168" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[EXPLANATION OF DATA CODES:]]></text>

</staticText>

<staticText>

<reportElement key="staticText-5" mode="Opaque" x="199" y="161" width="557" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[A-AVAILABLE E-ESTIMATED F-FARE G-GOOD N-NONE P-POOR U-UNKNOWN X-UNSERVICABLE]]></text>

</staticText>

<staticText>

<reportElement key="staticText-6" mode="Opaque" x="199" y="178" width="557" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[FE-FAIR (ESTIMATED) GE-GOOD (ESTIMATED) Z-INCONCLUSIVE ANALYSIS]]></text>

</staticText>

<staticText>

<reportElement key="staticText-7" mode="Opaque" x="199" y="196" width="256" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[u-UNCLASSIFIED C-CONFIDENTIAL S-SECRET]]></text>

</staticText>

<staticText>

<reportElement key="staticText-8" mode="Opaque" x="5" y="46" width="44" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[NAME-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-9" mode="Opaque" x="5" y="65" width="96" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[COUNTRY CODE-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-10" mode="Opaque" x="5" y="84" width="115" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[WAC INSTALLATION-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-11" mode="Opaque" x="437" y="46" width="103" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[CATEGORY CODE-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-12" mode="Opaque" x="437" y="65" width="103" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[ALTERNATE NAME-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-13" mode="Opaque" x="437" y="84" width="103" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[OPERATOR NAME-]]></text>

</staticText>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="249" y="3" width="141" height="18"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$P{distribution}]]></textFieldExpression>

</textField>

<staticText>

<reportElement key="staticText-15" mode="Opaque" x="5" y="105" width="68" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[PUBLISHED-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-16" mode="Opaque" x="5" y="123" width="125" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[DATE OF LATEST INFO-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-17" mode="Opaque" x="211" y="123" width="137" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[COMPLETE FILE REVIEW-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-18" mode="Opaque" x="5" y="142" width="33" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[iCAO-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-19" mode="Opaque" x="91" y="142" width="57" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[sEC ICAO-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-20" mode="Opaque" x="194" y="142" width="60" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[FAA/HOST-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-21" mode="Opaque" x="309" y="142" width="74" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[FAA SITE NO.-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-22" mode="Opaque" x="446" y="142" width="58" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[LPR CODE-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-23" mode="Opaque" x="560" y="142" width="50" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[GEOLOC-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-24" mode="Opaque" x="662" y="142" width="57" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[GEOPORT-]]></text>

</staticText>

<staticText>

<reportElement key="staticText-14" mode="Opaque" x="394" y="3" width="110" height="18"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement textAlignment="Justified">

<font fontName="Arial" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[ DISTRIBUTION]]></text>

</staticText>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="348" y="123" width="233" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[new SimpleDateFormat("d MMM yy").format($P{completeFileReview})]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="130" y="123" width="74" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[new SimpleDateFormat("d MMM yy").format($P{dateOfLatestInfo})]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="78" y="105" width="77" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[new SimpleDateFormat("d MMM yy").format($P{publishedDate})]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="159" y="105" width="425" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$P{publishedBy}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="49" y="46" width="100" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportName}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="101" y="65" width="132" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportCountryCode}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="540" y="46" width="223" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportCategoryCode}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="540" y="65" width="223" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportAlternateName}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="540" y="84" width="223" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportOperatorName}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="120" y="84" width="232" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportWACinstallation}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="38" y="142" width="47" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportICAO}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="148" y="142" width="44" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportSECICAO}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="254" y="142" width="50" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportFAAHOST}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="383" y="142" width="58" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportFAASiteNo}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="504" y="142" width="51" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportLPRcode}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="610" y="142" width="50" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportGEOLOC}]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="719" y="142" width="57" height="15"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{airportGEOPORT}]]></textFieldExpression>

</textField>

</band>

</title>

<pageHeader>

<band>

</band>

</pageHeader>

<columnHeader>

<band>

</band>

</columnHeader>

<detail>

<band height="231">

<subreport isUsingCache="true">

<reportElement key="subreport-1" positionType="Float" mode="Opaque" x="9" y="8" width="595" height="142"/>

<parametersMapExpression><![CDATA[$P{RC1Parameters}]]></parametersMapExpression>

<dataSourceExpression><![CDATA[$F{SubDataSource1}]]></dataSourceExpression>

<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{SubReport1}]]></subreportExpression>

</subreport>

</band>

</detail>

<columnFooter>

<band>

</band>

</columnFooter>

<pageFooter>

<band height="25">

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="5" y="4" width="52" height="18"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>

</textField>

<textField pattern="">

<reportElement key="textField" mode="Opaque" x="57" y="4" width="67" height="18"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement>

<font fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>

</textField>

</band>

</pageFooter>

<lastPageFooter>

<band height="25">

<staticText>

<reportElement key="staticText-25" mode="Opaque" x="401" y="4" width="110" height="18"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement textAlignment="Justified">

<font fontName="Arial" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<text><![CDATA[ DISTRIBUTION]]></text>

</staticText>

<textField pattern="">

<reportElement key="textField-1" mode="Opaque" x="258" y="4" width="141" height="18"/>

<box topBorder="None" topBorderColor="#0" leftBorder="None" leftBorderColor="#0" bottomBorder="None" bottomBorderColor="#0" rightBorder="None" rightBorderColor="#ffffff"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$P{distribution}]]></textFieldExpression>

</textField>

</band>

</lastPageFooter>

<summary>

<band>

</band>

</summary>

</jasperReport>

 

*** Sub Report ***

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Created using JasperAssistant (http://www.jasperassistant.com) -->

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

 

<jasperReport name="AAFIFrunway" language="java" pageWidth="595" pageHeight="142" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="595" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">

<property name="com.jasperassistant.designer.GridWidth" value="11"/>

<property name="com.jasperassistant.designer.GridHeight" value="11"/>

<property name="com.jasperassistant.designer.DataSource" value="Empty Data Source"/>

<property name="com.jasperassistant.designer.SnapToGrid" value="false"/>

<property name="com.jasperassistant.designer.Grid" value="false"/>

<parameter name="dummy" class="java.lang.String">

</parameter>

<field name="runwayID" class="java.lang.String">

</field>

<field name="runwaySurface" class="java.lang.String">

</field>

<field name="dimensions" class="java.lang.String">

</field>

<field name="operationalStatus" class="java.lang.String">

</field>

<field name="condition" class="java.lang.String">

</field>

<field name="overrun" class="java.lang.String">

</field>

<detail>

<band height="105">

<staticText>

<reportElement x="3" y="3" width="122" height="16"/>

<textElement>

<font isBold="true"/>

</textElement>

<text><![CDATA[AIRPORT DESCRIPTION]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="11" y="19" width="80" height="16"/>

<textElement>

<font isBold="true"/>

</textElement>

<text><![CDATA[Runways]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="24" y="36" width="38" height="16"/>

<textElement/>

<text><![CDATA[iD]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="210" y="37" width="80" height="15"/>

<textElement/>

<text><![CDATA[sURFACE]]></text>

</staticText>

<textField>

<reportElement positionType="Float" x="24" y="56" width="40" height="15"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{runwayID}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="210" y="57" width="83" height="15"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{runwaySurface}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="301" y="37" width="80" height="20"/>

<textElement/>

<text><![CDATA[OPER STATUS]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="392" y="38" width="80" height="20"/>

<textElement/>

<text><![CDATA[CONDITION]]></text>

</staticText>

<textField>

<reportElement positionType="Float" x="392" y="58" width="80" height="15"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{condition}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="301" y="57" width="80" height="15"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{operationalStatus}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="67" y="56" width="134" height="15"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dimensions}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="479" y="38" width="80" height="20"/>

<textElement/>

<text><![CDATA[OVERRUN]]></text>

</staticText>

<textField>

<reportElement positionType="Float" x="479" y="58" width="80" height="15"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{overrun}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="67" y="36" width="80" height="16"/>

<textElement/>

<text><![CDATA[DIMENSIONS]]></text>

</staticText>

</band>

</detail>

</jasperReport>

 

 

 

By: Lucian Chirita - lucianc

RE: Subreport Not Displaying

2005-11-02 05:39

Try to put a title in the subreport. If the title gets printed, something is wrong with your $F{SubDataSource1} data source.

 

HTH,

Lucian

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...