SubReport Not Getting Rendered Between Two Fields

0

I have a subReport which needs to be fixed in between two fields
This is like below layout -

Static Field 1 : {dynamic expression to get value }
Static Field 2 : {dynamic expression to get value }
subReport
Static Field 3 : {dynamic expression to get value }

The subReport has repeating fields.
The code for the section is given below

<textField isBlankWhenNull="true">
//details are omitted
</textField>
<textField isBlankWhenNull="true">
//details are omitted
</textField>                
<subreport overflowType="NoStretch">
    <reportElement positionType="FixRelativeToBottom" mode="Transparent" x="10" y="22" width="198" height="18" uuid="xyz"/>
    <subreportParameter name="SUBREPORT_DIR">
        <subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>
    </subreportParameter>
        <dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//Record/Summary")]]></dataSourceExpression>
        <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "Details.jasper"]]></subreportExpression>
</subreport>
<textField isBlankWhenNull="true">
//details are omitted
</textField>

The issue I am facing is :

1)This report structure is not working.
2)I have a JAVA code  which invokes the report but it is giving Null Pointer Exception
3)Sometimes , the JAVA programmes gets hanged for indefinite time
  with no output
4)Can anybody please help here ? What needs to be changed above to get this subReport working ?

 

atulajoshi24's picture
Joined: Jan 22 2020 - 5:13am
Last seen: 1 month 1 day ago

0 Answers:

No answers yet
Feedback