another sub report not showing question

0

Hi,

I'm reporting from a json file data adaptor.

I'm trying to get a subreport showing for each record of the main report.

Right now, not even a dummy subreport (no data source, static text in title) shows up.

How should i debug this?

subreport:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;!-- Created with Jaspersoft Studio version 6.9.0.final using JasperReports Library version 6.9.0-cb8f9004be492ccc537180b49c026951f4220bf3 &nbsp;--&gt;<br>&lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="dummySub" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="116f64f0-93d4-41c2-ac28-61f0aa20cd96"&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;queryString&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;![CDATA[]]&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/queryString&gt;<br>&nbsp;&nbsp; &nbsp;&lt;background&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;band splitType="Stretch"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/background&gt;<br>&nbsp;&nbsp; &nbsp;&lt;summary&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;band height="51" splitType="Stretch"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;staticText&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;reportElement mode="Opaque" x="0" y="0" width="555" height="51" backcolor="#0EF052" uuid="a02d415b-50d4-4730-a914-018da7540177"/&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;text&gt;&lt;![CDATA[Static Text]]&gt;&lt;/text&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/staticText&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/band&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/summary&gt;<br>&lt;/jasperReport&gt;<br>

main report:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;!-- Created with Jaspersoft Studio version 6.9.0.final using JasperReports Library version 6.9.0-cb8f9004be492ccc537180b49c026951f4220bf3 &nbsp;--&gt;<br>&lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Servers" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="af215306-8336-4607-a62d-5fa963dc2e6c"&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="instancesSummary"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit." value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.pageHeight" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.pageWidth" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.topMargin" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.bottomMargin" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.leftMargin" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.rightMargin" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.columnWidth" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;property name="com.jaspersoft.studio.unit.columnSpacing" value="mm"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;queryString language="jsonql"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;![CDATA[findingsCountByServer]]&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/queryString&gt;<br>&nbsp;&nbsp; &nbsp;&lt;background&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;band splitType="Stretch"/&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/background&gt;<br>&nbsp;&nbsp; &nbsp;&lt;title&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;band height="126"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;subreport isUsingCache="false"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;reportElement x="50" y="17" width="530" height="98" uuid="bd501738-6599-46fb-b627-30619cadf27f"&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;printWhenExpression&gt;&lt;![CDATA[true]]&gt;&lt;/printWhenExpression&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/reportElement&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;connectionExpression&gt;&lt;![CDATA[$P{REPORT_CONNECTION}]]&gt;&lt;/connectionExpression&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;subreportExpression&gt;&lt;![CDATA["dummySub.jasper"]]&gt;&lt;/subreportExpression&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/subreport&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/band&gt;<br>&nbsp;&nbsp; &nbsp;&lt;/title&gt;<br>&lt;/jasperReport&gt;

Thanks

Martin

martin_48's picture
Joined: Jul 30 2019 - 3:35am
Last seen: 4 days 17 hours ago

0 Answers:

No answers yet
Feedback
randomness