From fa44ffd18d34dae472af60d3f2a25e187b061e77 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Thu, 26 Sep 2013 05:55:32 +0000 Subject: [PATCH] Fixes "Overview of routings does not paginate" https://issues.apache.org/jira/browse/OFBIZ-5322 and more Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3 This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE. I did not look into details for the 143 cases but I believe most are also legacy. There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport! There is only one comment for LookupBulkAddProducts which is also legacy: I suggest to OOTB replace all those by the widget.form.defaultViewSize value. Things will then be consistent and easily changeable on a global scale using the widget property. Or if really needed forcing the default-value as it's done now. So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1526387 13f79535-47bb-0310-9956-ffa450edef68 --- assetmaint/widget/FacilityScreens.xml | 3 ++- assetmaint/widget/LookupScreens.xml | 3 ++- assetmaint/widget/ismgr/LookupScreens.xml | 6 ++++-- birt/widget/facility/FacilityScreens.xml | 3 ++- ecommerce/widget/ForumScreens.xml | 3 ++- example/widget/example/ExampleFeatureScreens.xml | 3 ++- scrum/widget/LookupScreens.xml | 3 ++- 7 files changed, 16 insertions(+), 8 deletions(-) diff --git a/assetmaint/widget/FacilityScreens.xml b/assetmaint/widget/FacilityScreens.xml index 4dca8c3e9..95d7138da 100644 --- a/assetmaint/widget/FacilityScreens.xml +++ b/assetmaint/widget/FacilityScreens.xml @@ -27,7 +27,8 @@ - + + diff --git a/assetmaint/widget/LookupScreens.xml b/assetmaint/widget/LookupScreens.xml index 806d8f4e5..6434e6b13 100644 --- a/assetmaint/widget/LookupScreens.xml +++ b/assetmaint/widget/LookupScreens.xml @@ -33,7 +33,8 @@ - + + diff --git a/assetmaint/widget/ismgr/LookupScreens.xml b/assetmaint/widget/ismgr/LookupScreens.xml index 0ee2a6984..f51475ed2 100644 --- a/assetmaint/widget/ismgr/LookupScreens.xml +++ b/assetmaint/widget/ismgr/LookupScreens.xml @@ -31,7 +31,8 @@ under the License. - + + @@ -56,7 +57,8 @@ under the License. - + + diff --git a/birt/widget/facility/FacilityScreens.xml b/birt/widget/facility/FacilityScreens.xml index 6b30fa521..3a53e6eea 100644 --- a/birt/widget/facility/FacilityScreens.xml +++ b/birt/widget/facility/FacilityScreens.xml @@ -29,7 +29,8 @@ under the License. - + + diff --git a/ecommerce/widget/ForumScreens.xml b/ecommerce/widget/ForumScreens.xml index fd2a28e1e..262e5fa89 100644 --- a/ecommerce/widget/ForumScreens.xml +++ b/ecommerce/widget/ForumScreens.xml @@ -63,7 +63,8 @@ under the License. - + + diff --git a/example/widget/example/ExampleFeatureScreens.xml b/example/widget/example/ExampleFeatureScreens.xml index 2a75172d6..c54166065 100644 --- a/example/widget/example/ExampleFeatureScreens.xml +++ b/example/widget/example/ExampleFeatureScreens.xml @@ -111,7 +111,8 @@ under the License. - + + diff --git a/scrum/widget/LookupScreens.xml b/scrum/widget/LookupScreens.xml index 4a9132695..7cf9ed045 100644 --- a/scrum/widget/LookupScreens.xml +++ b/scrum/widget/LookupScreens.xml @@ -31,7 +31,8 @@ under the License. - + +