IReport - Sub report with same main datasource

1

I am developing a relatório and it has a subrelatorio that must have the same DATA SOURCE of the relatório main, so the dataSourceExpression of the subreport is as follows:

<dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}]]></dataSourceExpression>

The problem is that subreport does not even render more in relatório .

I'm using iReport 6.1.0

    
asked by anonymous 13.10.2015 / 22:32

1 answer

1

As the first comment from wryel I was using a wrong concept, doing the right way I removed the sub-and instead to encapsulate the fields I used the "frame" component, so I do not need to condition all the fields and only the "frame".

It worked flawlessly, in addition to optimizing the report.

    
14.10.2015 / 21:34