Ireport returns an empty table



I'm trying to create a report with Jasper iReport 5.7 and I'm using a table to show data from a different datasource . I am using an XML file as a datasource But when I try to preview the report, all I get is an empty table . Any help please



<detail>
<band height="206" splitType="Stretch">
<componentElement>
<reportElement key="table 3" style="table 3" x="0" y="0" width="555" height="206" uuid="ae4e7ade-7e38-4989-b04c-a239b8e6ea37"/>
<jr:table xmlns:jr="http://ift.tt/1cl9b3L" xsi:schemaLocation="http://ift.tt/1cl9b3L http://ift.tt/1cl9b3P" whenNoDataType="AllSectionsNoDetail">
<datasetRun subDataset="New Dataset 1" uuid="ca3dbb1b-72df-4322-b99b-b468990e32bc">
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
</datasetRun>
<jr:column width="90" uuid="f3110343-96e5-4f46-a2ed-4f6ea0818225">
<jr:columnHeader style="table 3_CH" height="30" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="90" height="30" uuid="4af1fcf6-51e5-49d5-ad4b-b6bb575add7b"/>
<text><![CDATA[BAId]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table 3_TD" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="90" height="20" uuid="5c5c54fa-19ce-470c-abf8-c98c6adee74d"/>
<textFieldExpression><![CDATA[$F{BAId}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90" uuid="15cdddc8-a4cd-4952-92ed-952775da1804">
<jr:columnHeader style="table 3_CH" height="30" rowSpan="1">
<staticText>
<reportElement mode="Transparent" x="0" y="0" width="90" height="30" uuid="5118b0b9-dc6c-4386-a4d8-40dae99fd7b0"/>
<text><![CDATA[Id]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table 3_TD" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="90" height="20" uuid="2b7ef3e7-9de5-4f4e-b838-43279e5de6cd"/>
<textFieldExpression><![CDATA[$F{Id}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="90" uuid="d9dc8f67-f6fd-4d55-bdab-a189e1779091">
<jr:columnHeader style="table 3_CH" height="30" rowSpan="1">
<staticText>
<reportElement x="0" y="0" width="90" height="30" uuid="59ff9682-bafc-4848-93ea-5c68908cf277"/>
<text><![CDATA[Sender]]></text>
</staticText>
</jr:columnHeader>
<jr:detailCell style="table 3_TD" height="20" rowSpan="1">
<textField>
<reportElement x="0" y="0" width="90" height="20" uuid="af5929c5-06d7-4183-a857-8fffbb737c32"/>
<textFieldExpression><![CDATA[$F{Sender}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
</band>
</detail>

No comments:

Post a Comment