Author Topic: How can I separate each view individually?  (Read 77 times)

macknardy

  • Newbie
  • *
  • Posts: 1
How can I separate each view individually?
« on: December 11, 2018, 10:48:59 AM »
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: [Select]
<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>

How can I separate each view individually?

Thank you.

Phil Beauvoir

  • Archi Master
  • Hero Member
  • *****
  • Posts: 922
    • Archi
Re: How can I separate each view individually?
« Reply #1 on: December 11, 2018, 16:56:35 PM »
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.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate