IDEMPIERE-1033 - Add REPORT_DIR in params for JasperReports
This commit is contained in:
parent
c85e398cc4
commit
08302647a0
|
@ -416,12 +416,15 @@ public class ReportStarter implements ProcessCall, ClientProcess
|
||||||
File reportDir = data.getReportDir();
|
File reportDir = data.getReportDir();
|
||||||
|
|
||||||
String resourcePath = reportDir.getAbsolutePath();
|
String resourcePath = reportDir.getAbsolutePath();
|
||||||
|
String reportdir = reportPath.substring(0, reportPath.lastIndexOf("/"));
|
||||||
if (!resourcePath.endsWith("/") && !resourcePath.endsWith("\\"));
|
if (!resourcePath.endsWith("/") && !resourcePath.endsWith("\\"));
|
||||||
{
|
{
|
||||||
resourcePath = resourcePath + "/";
|
resourcePath = resourcePath + "/";
|
||||||
|
reportdir = reportdir + "/";
|
||||||
}
|
}
|
||||||
params.put("SUBREPORT_DIR", resourcePath);
|
params.put("SUBREPORT_DIR", resourcePath);
|
||||||
params.put("RESOURCE_DIR", resourcePath);
|
params.put("RESOURCE_DIR", resourcePath);
|
||||||
|
params.put("REPORT_DIR", reportdir);
|
||||||
|
|
||||||
if (jasperReport != null && pi.getTable_ID() > 0 && Record_ID <= 0 && pi.getRecord_IDs() != null && pi.getRecord_IDs().length > 0)
|
if (jasperReport != null && pi.getTable_ID() > 0 && Record_ID <= 0 && pi.getRecord_IDs() != null && pi.getRecord_IDs().length > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue