Jump to content
Changes to the Jaspersoft community edition download ×

SubReport Not Getting Rendered Between Two Fields


atulajoshi24

Recommended Posts

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 ?

 

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...