You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the JasperService->generateExporter(JasperReportDef reportDef) checks for reportDef.locale and overrides the reportDef.parameters.REPORT_LOCALE.
Assuming one follows the iReport documentation and add
params.put(JRParameter.REPORT_LOCALE, Locale.FRENCH);
The generateExporter will override the locale with Locale.getDefault()
You can have the right behavior if you set reportDef.locale but I suggests to stay compliant with iReport params, by first checking if the user already set the REPORT_LOCALE in the params map.
if(!reportDef.parameters.REPORT_LOCALE){ ... }
The text was updated successfully, but these errors were encountered:
Hi,
the JasperService->generateExporter(JasperReportDef reportDef) checks for reportDef.locale and overrides the reportDef.parameters.REPORT_LOCALE.
Assuming one follows the iReport documentation and add
params.put(JRParameter.REPORT_LOCALE, Locale.FRENCH);
The generateExporter will override the locale with Locale.getDefault()
You can have the right behavior if you set reportDef.locale but I suggests to stay compliant with iReport params, by first checking if the user already set the REPORT_LOCALE in the params map.
if(!reportDef.parameters.REPORT_LOCALE){ ... }
The text was updated successfully, but these errors were encountered: