jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
694 stars 124 forks source link

ExcelExportAction is not available in Reports #3863

Closed Gavrilov-Ivan closed 1 week ago

Gavrilov-Ivan commented 1 week ago

Environment

Jmix version: 2.4.0

Bug Description

Table report failed on run because action grdexp_excelExport cannot be created.

java.lang.IllegalArgumentException: Unable to find action type: grdexp_excelExport
    at io.jmix.flowui.impl.ActionsImpl.create(ActionsImpl.java:88)
    at io.jmix.reportsflowui.view.run.ReportTableView.createButtonsPanel(ReportTableView.java:304)
    at io.jmix.reportsflowui.view.run.ReportTableView.lambda$drawTables$2(ReportTableView.java:287)
    at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
    at io.jmix.reportsflowui.view.run.ReportTableView.drawTables(ReportTableView.java:283)
    at io.jmix.reportsflowui.view.run.ReportTableView.onBeforeShow(ReportTableView.java:162)

Regression due to #3607.

Reports still has a strict dependency on Grid Export Actions but doesn't import GridExportFlowuiConfiguration within ReportsFlowuiAutoConfiguration. Before fix of 3607 GridExportFlowuiConfiguration has been imported via the Datatools addon (existing in project by default).

WA: add addon Grid Export Actions explicitly.

Expected changes:

Steps To Reproduce

  1. Create new project
  2. Add Reports addon only
  3. Create Table report
  4. Run created report

Current Behavior

Failed with exception above

Expected Behavior

Successfully executed

SergeiAksenov2 commented 1 week ago

Tested on: Jmix version: 2.5.999-SNAPSHOT Jmix Studio plugin version: 2.5.SNAPSHOT6964-242 IntelliJ version: IntelliJ IDEA 2024.2.4 (Community Edition)