details:   https://code.openbravo.com/erp/devel/pi/rev/e239b5d58a65
changeset: 16071:e239b5d58a65
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Thu Apr 12 18:20:23 2012 +0200
summary:   Improve message of the combo analysis in the Form Initialization 
Component

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 93a46c1b0e57 -r e239b5d58a65 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Thu Apr 12 17:38:39 2012 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Thu Apr 12 18:20:23 2012 +0200
@@ -257,7 +257,7 @@
       long t9 = System.currentTimeMillis();
       JSONObject finalObject = buildJSONObject(mode, tab, columnValues, row, 
changeEventCols,
           calloutMessages, attachments, jsExcuteCode, hiddenInputs, noteCount);
-      analyzeResponse(columnValues);
+      analyzeResponse(tab, columnValues);
       long t10 = System.currentTimeMillis();
       log.debug("Elapsed time: " + (System.currentTimeMillis() - iniTime) + 
"(" + (t2 - t1) + ","
           + (t3 - t2) + "," + (t4 - t3) + "," + (t5 - t4) + "," + (t6 - t5) + 
"," + (t7 - t6) + ","
@@ -278,7 +278,7 @@
     return null;
   }
 
-  private void analyzeResponse(Map<String, JSONObject> columnValues) {
+  private void analyzeResponse(Tab tab, Map<String, JSONObject> columnValues) {
     int maxEntries = 1000;
     int i = 0;
     String heavyCols = "";
@@ -299,7 +299,11 @@
       }
     }
     if (!"".equals(heavyCols)) {
-      log.warn("Warning: the combo fields "
+      log.warn("Warning: In the window "
+          + tab.getWindow().getName()
+          + ", in tab "
+          + tab.getName()
+          + " the combo fields "
           + heavyCols
           + " contain more than "
           + maxEntries

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to