cuba-platform / documentation

CUBA Platform Documentation
https://www.cuba-platform.com
Creative Commons Attribution 4.0 International
26 stars 45 forks source link

Programmatic running of reports #594

Open alexbudarov opened 4 years ago

alexbudarov commented 4 years ago

Description of the bug or enhancement

Current reporting manual does not mention that you can run reports from your code.

Use cases: 1) Run report with parameters input (using ReportGuiManager) and download result document.

2) Run report without parameters input and download result document. Here we can call ReportService directly.

3) Run report and save result document (FileDescriptor) to the database linking to a business entity. Like generating an invoice or wages statement.

alexbudarov commented 4 years ago

see this post: https://www.cuba-platform.ru/discuss/t/generacziya-neskolkih-otchetov-v-odin-dokument/3695/6?u=budarov

he doesn't know how to launch reports from his code without GUI window

alexbudarov commented 4 years ago

one more topic on russian forum where person needs to run report programmatically, but doesn't know how to do that: https://www.cuba-platform.ru/discuss/t/vyvod-html-otcheta-na-ekran/3735

(run html report and display result document in component, like text area or browser frame)

alexbudarov commented 4 years ago

https://www.cuba-platform.ru/discuss/t/generacziya-otchetov-v-middleware/4434