The goal is to make execution time locale selection based on locale persisted in the DB alonside with the consumed by the report data.
The i18n bundles are defined and used in the report. By default Jasper Server uses the server locale or user locale during report execution through REPORT_LOCALE variable.
How can a report locale be set runtime based on locale value from the report select query?
Thank you for the response Tinnt.
I am not sure how to use your suggestion within the report itself. Can you elaborate a bit on how to implement it?
Here are some conditions for the report:
- No input parameter for locale.
- Locale is avaible as field in the report data selection.