I am creating a report in Jasper, simply passing the foundset for a datasource, where the main report has some basic information and my sub-report contains info from a relation. When I run the report through Servoy the main section is rendered normally and the sub-report static text is there but the sub-report has nulls for all of my fields. The relation does contain info so I don't know why it's not showing up.
This is how I am including my sub-report.
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource()]]></dataSourceExpression>
<subreportExpression><![CDATA[com.servoy.plugins.jasperreports.JasperReportsResourceLoader.loadReport("PODetails.jrxml")]]></subreportExpression>
On the subreport I defined this simple field $F{myrelation.id}
Am I missing something? Any help would be appreciated, thanks.