details: /erp/devel/pi/rev/e809fe06034d
changeset: 6969:e809fe06034d
user: Stefan Hühner <stefan.huehner <at> openbravo.com>
date: Fri Apr 09 16:05:37 2010 +0200
summary: Fixed 12502: Make decimalformat used by renderJR fully configurable
via Format.xml format name euroInform
diffstat:
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r a3bbaccec99f -r e809fe06034d
src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
--- a/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Fri Apr
09 15:34:38 2010 +0200
+++ b/src/org/openbravo/base/secureApp/HttpSecureAppServlet.java Fri Apr
09 16:05:37 2010 +0200
@@ -999,10 +999,10 @@
}
protected void readNumberFormat(VariablesSecureApp vars, String
strFormatFile) {
- final String strNumberFormat = "###,##0.00"; // Default number format
+ String strNumberFormat = "###,##0.00"; // Default number format
String strGroupingSeparator = ","; // Default grouping separator
String strDecimalSeparator = "."; // Default decimal separator
- final String strName = "euroInform"; // Name of the format to use
+ final String formatNameforJrxml = "euroInform"; // Name of the format to
use
final HashMap<String, String> formatMap = new HashMap<String, String>();
try {
@@ -1028,11 +1028,13 @@
.getNamedItem("decimal").getNodeValue());
vars.setSessionValue("#GroupSeparator|" + strNumberName,
NumberElement.getAttributes()
.getNamedItem("grouping").getNodeValue());
- if (strNumberName.equals(strName)) {
+ // set the numberFormat to be used in the renderJR function
+ if (strNumberName.equals(formatNameforJrxml)) {
strDecimalSeparator =
NumberElement.getAttributes().getNamedItem("decimal")
.getNodeValue();
strGroupingSeparator =
NumberElement.getAttributes().getNamedItem("grouping")
.getNodeValue();
+ strNumberFormat = strFormatOutput;
}
}
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits