Fixed issue 16788. Callouts can now set auxiliary input values.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 10 May 2011 16:58:27 +0200
changeset 12081 1a7dbd852133
parent 12080 2eb99c25867b
child 12082 3f4efabf3019
Fixed issue 16788. Callouts can now set auxiliary input values.
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	Tue May 10 13:37:09 2011 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java	Tue May 10 16:58:27 2011 +0200
@@ -1091,6 +1091,17 @@
                       // We need to fire this callout, as the column value was changed
                       addCalloutToList(col, calloutsToCall, lastfieldChangedList);
                     }
+                  } else {
+                    for (AuxiliaryInput aux : tab.getADAuxiliaryInputList()) {
+                      if (name
+                          .equalsIgnoreCase("inp" + Sqlc.TransformaNombreColumna(aux.getName()))) {
+                        Object el = element.get(1, null);
+                        JSONObject obj = new JSONObject();
+                        obj.put("value", el);
+                        obj.put("classicValue", el);
+                        columnValues.put(name, obj);
+                      }
+                    }
                   }
                 }
               }