details:   https://code.openbravo.com/erp/devel/pi/rev/9d134526fcee
changeset: 27280:9d134526fcee
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Aug 06 16:38:01 2015 +0200
summary:   related to issue 30505: 2.50 compilation mode fails

  TableDir fields participating in identifiers are incorrectly generated because
  they are joined by ID with ad_ref_list_value which is incorrect.

  This is not a fix but just a workarround to make the code to compile.

details:   https://code.openbravo.com/erp/devel/pi/rev/f5cac263bc76
changeset: 27281:f5cac263bc76
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Aug 06 16:40:39 2015 +0200
summary:   fixed issue 30505: 2.50 compilation mode fails

  When there is in a parent tab an auxiliary input with a parameter based in a
  field stored in session, the java generated is incorrect.

  This is not a fix but a workarround: values are not retrieved by using the 
java
  field but using the FieldProvider.getField method instead.

diffstat:

 src-wad/src/org/openbravo/wad/WadUtility.java           |   4 ++--
 src-wad/src/org/openbravo/wad/controls/WADTableDir.java |  12 +++++++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 3e0722a915a6 -r f5cac263bc76 
src-wad/src/org/openbravo/wad/WadUtility.java
--- a/src-wad/src/org/openbravo/wad/WadUtility.java     Thu Aug 06 09:55:58 
2015 +0200
+++ b/src-wad/src/org/openbravo/wad/WadUtility.java     Thu Aug 06 16:40:39 
2015 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2014 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2015 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -482,7 +482,7 @@
         if (vecFields != null && findField(vecFields, token)) {
           return (dataMultiple ? "((dataField!=null)?dataField.getField(\"" + 
aux
               + "\"):((data==null || data.length==0)?\"\":data[0]." : 
"((data==null)?\"\":data.")
-              + aux + "))";
+              + "getField(\"" + aux + "\")))";
         } else if (vecAuxiliarFields != null && findField(vecAuxiliarFields, 
token)) {
           return "str" + token;
         }
diff -r 3e0722a915a6 -r f5cac263bc76 
src-wad/src/org/openbravo/wad/controls/WADTableDir.java
--- a/src-wad/src/org/openbravo/wad/controls/WADTableDir.java   Thu Aug 06 
09:55:58 2015 +0200
+++ b/src-wad/src/org/openbravo/wad/controls/WADTableDir.java   Thu Aug 06 
16:40:39 2015 +0200
@@ -11,7 +11,7 @@
  * under the License. 
  * The Original Code is Openbravo ERP. 
  * The Initial Developer of the Original Code is Openbravo SLU 
- * All portions are Copyright (C) 2001-2010 Openbravo SLU 
+ * All portions are Copyright (C) 2001-2015 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -78,6 +78,16 @@
 
   }
 
+  @Override
+  public String columnIdentifier(String tableName, FieldsData fields, 
Vector<Object> vecCounters,
+      Vector<Object> vecFields, Vector<Object> vecTable, Vector<Object> 
vecWhere,
+      Vector<Object> vecParameters, Vector<Object> vecTableParameters) throws 
ServletException {
+
+    // XXX: Not implemented. See issue #30505
+    vecFields.addElement("'xxxx'");
+    return "'xxxx'";
+  }
+
   public boolean isLink() {
     return true;
   }

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to