Possible bug in Jmix 3.0 reports add-on

In Jmix 2.x, I was able to specify the report output type programmatically and it would override the template configuration, allowing me to output the same template as Excel or PDF:

        fluentUiReportRunner.addParam("reportData", reportData)
                .withOutputType(reportOutputType)
                .withParametersDialogShowMode(ParametersDialogShowMode.NO)
                .runAndShow();

In Jmix 3.0, it appears that I’m forced to create distinct templates, one for the Excel output and another for PDF. Is this a bug or was there a design change? I didn’t find this mentioned in the documentation.

Thanks

Doug

Hi!

Thank you for your report.

This appears to be a regression. I’ve created an issue to fix it: Programmatically specified report output type does not override the template configuration · Issue #5578 · jmix-framework/jmix · GitHub

As a temporary workaround, you can try to set alterable property for the report template.

Best regards,
Dmitriy