Fixes bug 0010919: allow creation of child tab when parent has sql based auxiliar inputs defined
authorBen Sommerville <ben.sommerville@eintel.com.au>
Tue, 27 Oct 2009 14:04:27 +1100
changeset 5328 d9f98e1761bf
parent 5327 6d0085326e92
child 5329 b41bbb3be75a
Fixes bug 0010919: allow creation of child tab when parent has sql based auxiliar inputs defined
.hgignore
src-wad/src/org/openbravo/wad/javasource.javaxml
--- a/.hgignore	Mon Oct 26 20:56:50 2009 +0100
+++ b/.hgignore	Tue Oct 27 14:04:27 2009 +1100
@@ -2,6 +2,8 @@
 
 .classpath
 .settings
+.idea
+*.iml
 attachments
 bin
 build
--- a/src-wad/src/org/openbravo/wad/javasource.javaxml	Mon Oct 26 20:56:50 2009 +0100
+++ b/src-wad/src/org/openbravo/wad/javasource.javaxml	Tue Oct 27 14:04:27 2009 +1100
@@ -683,7 +683,9 @@
       if (data==null || data.length==0) return;
       <FIELDS_TMP id="sectionDetailParentSession">    vars.setSessionValue(windowId + "|<FIELD_TMP id="fieldRealName8">claveAlmacen</FIELD_TMP>", data[0].<FIELD_TMP id="fieldName8">claveAlmacen</FIELD_TMP>);</FIELDS_TMP>
       vars.setSessionValue(windowId + "|<PARENT_TMP id="keyParent">Almacen</PARENT_TMP>", strP<PARENT_TMP id="keyParent">Almacen</PARENT_TMP>); //to ensure key parent is set for EM_* cols
-      <LISTS_TMP id="sectionDetailParentParams">      
+
+      FieldProvider dataField = null; // Define this so that auxiliar inputs using SQL will work
+      <LISTS_TMP id="sectionDetailParentParams">
       vars.setSessionValue(windowId + "|<LIST_TMP id="fieldParentNameParam">Almacen</LIST_TMP>", <LIST_TMP id="paramParentCode">dd</LIST_TMP>);
       </LISTS_TMP>
   }