Fixes issue 18034: the lines quantity to count will be configurable per window
authorJavier Etxarri <javier.echarri@openbravo.com>
Tue, 30 Aug 2011 10:40:44 +0200
changeset 13618 4cf7260180a6
parent 13617 11b37540120f
child 13619 41a04622702b
Fixes issue 18034: the lines quantity to count will be configurable per window
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
src-db/database/sourcedata/AD_REF_LIST.xml
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Aug 30 09:44:10 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Aug 30 10:40:44 2011 +0200
@@ -445,9 +445,11 @@
         }
       }
     }
+    //Modify the quantity of lines to count per Window
+    var dataPageSizeaux = OB.PropertyStore.get('dataPageSize',this.view.windowId);
+    this.dataPageSize = (dataPageSizeaux) ? +dataPageSizeaux : 100;
+  },
 
-  },
-  
   show: function(){
     var ret = this.Super('show', arguments);
     
--- a/src-db/database/sourcedata/AD_REF_LIST.xml	Tue Aug 30 09:44:10 2011 +0200
+++ b/src-db/database/sourcedata/AD_REF_LIST.xml	Tue Aug 30 10:40:44 2011 +0200
@@ -10801,4 +10801,16 @@
 <!--FF80818130DF99930130DF9EE8180012-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--FF80818130DF99930130DF9EE8180012--></AD_REF_LIST>
 
+<!--FF80818132147684013214C9CF70004F--><AD_REF_LIST>
+<!--FF80818132147684013214C9CF70004F-->  <AD_REF_LIST_ID><![CDATA[FF80818132147684013214C9CF70004F]]></AD_REF_LIST_ID>
+<!--FF80818132147684013214C9CF70004F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--FF80818132147684013214C9CF70004F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--FF80818132147684013214C9CF70004F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--FF80818132147684013214C9CF70004F-->  <VALUE><![CDATA[dataPageSize]]></VALUE>
+<!--FF80818132147684013214C9CF70004F-->  <NAME><![CDATA[Lines quantity to count per Window]]></NAME>
+<!--FF80818132147684013214C9CF70004F-->  <DESCRIPTION><![CDATA[With this property you will be able to change the quantity of lines to count per Window.]]></DESCRIPTION>
+<!--FF80818132147684013214C9CF70004F-->  <AD_REFERENCE_ID><![CDATA[A26BA480E2014707B47257024C3CBFF7]]></AD_REFERENCE_ID>
+<!--FF80818132147684013214C9CF70004F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--FF80818132147684013214C9CF70004F--></AD_REF_LIST>
+
 </data>