Discussion Boards > Archi Development

How can I separate each view individually?

(1/1)

macknardy:
Hi everyone.

I'm trying to create a custom report using the JasperReport plugin. However I couldn't do it completely.

I'd like to show views in different parts of the report. Is it possible?

The code below prints all views in sequence but I need to place each one of them at a time.


--- Code: ---<subreport>
    <reportElement isPrintRepeatedValues="false" x="0" y="40" width="515" height="20" isRemoveLineWhenBlank="true" uuid="0834205d-fd47-4315-99d6-610229e94773"/>
<subreportParameter name="REPORT_PATH">
    <subreportParameterExpression><![CDATA[$P{REPORT_PATH}]]></subreportParameterExpression>
</subreportParameter>
<dataSourceExpression><![CDATA[((com.archimatetool.jasperreports.data.ArchimateModelDataSource)$P{REPORT_DATA_SOURCE}).getViewsDataSource()]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{view_report}]]></subreportExpression>
</subreport>

--- End code ---

How can I separate each view individually?

Thank you.

Phil Beauvoir:
I think it depends on where you are referencing the subreport. It's a long time since I looked at the Jasper xml code, so it may be worth checking where you reference it.

Navigation

[0] Message Index

Go to full version