details:   https://code.openbravo.com/erp/devel/pi/rev/1853df5df43d
changeset: 16162:1853df5df43d
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Mon Apr 23 14:28:13 2012 +0200
summary:   Fixes issue 20330: Set the fetchMissingValues flag to false at 
FormItem level
- If fetchMissingValues is set to true, SmartClient makes a request on init() or
  setValue() when the FormItem has an optionDataSource

diffstat:

 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
 |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 4c5f3e0c2556 -r 1853df5df43d 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Sat Apr 21 14:23:22 2012 +0200
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Mon Apr 23 14:28:13 2012 +0200
@@ -25,7 +25,6 @@
 // NOTE: causes issue https://issues.openbravo.com/view.php?id=16014
 // NOTE: disabled as now timezone is send from the client to the server
 // Time.setDefaultDisplayTimezone(0);
-
 // Call duplicated - we include SmartClient embedded in StaticResources for 
classic windows
 isc.setAutoDraw(false);
 isc.screenReader = false;
@@ -392,6 +391,11 @@
   // always take up space when an item is hidden in a form
   alwaysTakeSpace: true,
 
+  // If an item has an optiomDataSource, a fetch is made in the init() or 
setValue() ...
+  // "The fetch occurs if the item value is non null on initial draw of the 
form or whenever setValue() is called"
+  // 
http://www.smartclient.com/docs/8.1/a/b/c/go.html#attr..FormItem.fetchMissingValues
+  fetchMissingValues: false,
+
   // disable tab to icons
   canTabToIcons: false,
 

------------------------------------------------------------------------------
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