From bf5565ab546ed00350f1b4550d1ce6f7ee866cd4 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Wed, 18 Apr 2007 19:41:24 +0000 Subject: [PATCH] [ 1703195 ] Silently pass AD_Client_ID, AD_Org_ID and AD_User_ID to JasperReports! --- JasperReports/src/org/compiere/report/ReportStarter.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/JasperReports/src/org/compiere/report/ReportStarter.java b/JasperReports/src/org/compiere/report/ReportStarter.java index 44839f8f87..9c88b82a6b 100644 --- a/JasperReports/src/org/compiere/report/ReportStarter.java +++ b/JasperReports/src/org/compiere/report/ReportStarter.java @@ -408,7 +408,11 @@ public class ReportStarter implements ProcessCall { } params.put("RECORD_ID", new Integer( Record_ID)); - + + // contribution from Ricardo (ralexsander) + // in iReports you can 'SELECT' AD_Client_ID, AD_Org_ID and AD_User_ID using only AD_PINSTANCE_ID + params.put("AD_PINSTANCE_ID", new Integer( AD_PInstance_ID)); + Language currLang = Env.getLanguage(Env.getCtx()); params.put("CURRENT_LANG", currLang.getAD_Language()); // Resources