cuba-platform / reports

CUBA Reports Addon
https://www.cuba-platform.com/
Apache License 2.0
9 stars 4 forks source link

Add an ability to set output name pattern Reporting API #235

Open natfirst opened 4 years ago

natfirst commented 4 years ago

Environment

Reporting API does not support cases when outputFileName set as a pattern

When trying to run the report from the screen by following code file name will be set as "${Root.miband.test.title}.docx" instead of the result of the script

reportGuiManager.printReport(
                report,
                ParamsMap.of("entities", reppoesTable.getItems().getItems()),
                null,
                "${Root.miband.test.title}.docx");

    }