details:   /erp/devel/pi/rev/83fbe0f0716a
changeset: 12093:83fbe0f0716a
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Wed May 11 10:32:32 2011 +0200
summary:   Related to issue 17111: Only compute combos for visible fields

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
 |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 0b311d652f33 -r 83fbe0f0716a 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Wed May 11 10:23:37 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Wed May 11 10:32:32 2011 +0200
@@ -453,7 +453,7 @@
   retrieveInitialValues: function(isNew){
     this.setParentDisplayInfo();
     
-    var parentId = this.view.getParentId(), requestParams, parentColumn, me = 
this, mode;
+    var parentId = this.view.getParentId(), i, fldNames = [], requestParams, 
parentColumn, me = this, mode;
     // note also in this case initial vvalues are passed in as in case of grid
     // editing the unsaved/error values from a previous edit session are 
maintained
     var allProperties = this.view.getContextInfo(false, true, false, true);
@@ -476,6 +476,14 @@
     }
     allProperties._entityName = this.view.entity;
     
+    // only put the visible field names in the call
+    for (i = 0; i < this.getFields().length; i++) {
+      if (this.getFields()[i].inpColumnName) {
+        fldNames.push(this.getFields()[i].name)
+      }
+    }
+    allProperties._visibleProperties = fldNames;
+    
     this.setDisabled(true);
 
     // note that only the fields with errors are validated anyway

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to