Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028857Openbravo ERPA. Platformpublic2015-02-03 19:232015-03-02 09:49
caristu 
inigosanchez 
highmajoralways
closedfixed 
5
pi 
3.0PR15Q33.0PR15Q2 
alostale
Core
No
0028857: In minimized view, the query-list widgets just sort the data in the client
In minimized view, the query-list widgets just sort the data in the client. So it is only showing the data being displayed locally, instead of requesting the data to the server.
1) Use a query-list widget with more than 100 records. For example, using the Invoice To Collect window in an environment with more that 100 invoices pending to be collected.

2) In minimized view, sort the records. Notice that only the sorting is done with the records already displayed in the widget
No tags attached.
related to defect 0029027 closed caristu In minimized view, the query-list widgets doesn't work as it's defined. 
related to defect 0029026 closed platform In minimized view, the query-list widgets doesn't sort properly the data. 
related to defect 0029025 closed caristu In maximized view, the query-list widgets doesn't load the data when it refreshed the browser. 
Issue History
2015-02-03 19:23caristuNew Issue
2015-02-03 19:23caristuAssigned To => AugustoMauch
2015-02-03 19:23caristuModules => Core
2015-02-03 19:23caristuResolution time => 1425423600
2015-02-03 19:23caristuTriggers an Emergency Pack => No
2015-02-03 19:24caristuIssue Monitored: networkb
2015-02-03 19:30caristuversion => pi
2015-02-04 09:02caristuSummaryIn minimized view, the widgets sorts the data in the client => In minimized view, the query-list widgets just sort the data in the client
2015-02-04 09:02caristuDescription Updatedbug_revision_view_page.php?rev_id=7596#r7596
2015-02-04 09:02alostaleAssigned ToAugustoMauch => inigosanchez
2015-02-04 09:03alostaleStatusnew => scheduled
2015-02-04 09:03alostalefix_in_branch => pi
2015-02-23 13:30jonalegriaesarteTarget Version3.0PR15Q2 => 3.0PR15Q3
2015-02-25 01:00inigosanchezReview Assigned To => alostale
2015-02-25 01:00inigosanchezResolutionopen => fixed
2015-02-25 01:00inigosanchezfix_in_branchpi =>
2015-02-25 01:01inigosanchezIssue Monitored: alostale
2015-02-25 01:08hgbotCheckin
2015-02-25 01:08hgbotNote Added: 0074896
2015-02-25 01:08hgbotStatusscheduled => resolved
2015-02-25 01:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9b61d12d49045f73e0323b4af95aa4a8e7ac9c43 [^]
2015-02-25 01:10inigosanchezNote Added: 0074897
2015-02-25 01:10inigosanchezRelationship addedrelated to 0029027
2015-02-25 01:11inigosanchezRelationship addedrelated to 0029026
2015-02-25 01:11inigosanchezRelationship addedrelated to 0029025
2015-02-25 21:22hudsonbotCheckin
2015-02-25 21:22hudsonbotNote Added: 0074946
2015-03-02 09:49alostaleNote Added: 0075059
2015-03-02 09:49alostaleStatusresolved => closed
2015-03-02 09:49alostaleFixed in Version => 3.0PR15Q2

Notes
(0074896)
hgbot   
2015-02-25 01:08   
Repository: erp/devel/pi
Changeset: 9b61d12d49045f73e0323b4af95aa4a8e7ac9c43
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Wed Feb 25 01:00:06 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9b61d12d49045f73e0323b4af95aa4a8e7ac9c43 [^]

Fixed issue 28857:Minimized view of query-list widgets sort data in the client

The problem was that in minimized view, the query-list widgets just sort the data
in the client. So it is only showing the data being displayed locally, instead of
requesting the data to the server.

This happens because "useClientSorting" was not setting properly. This is related
to the change of leaving of calculate total rows to improve performance.

Now, it works properly in minimized and maximized view because it has been setting
properly "useClientSorting" variable. The exceptional case is when the widget is in
minimized view and "ShowAllData" is not active. In this case, it will always make a
request for the data.

---
M modules/org.openbravo.client.querylist/web/org.openbravo.client.querylist/js/ob-querylist-widget.js
---
(0074897)
inigosanchez   
2015-02-25 01:10   
Test plan:

Create and refresh QueryList Widget with more than 100 rows and less than 100 rows:
* Show All Data active in minimized view.
* Show All Data active in maximized view.
* Show All Data inactive in minimized view.
* Show All Data inactive in maximized view.

NOTE: There is a problem sorting in one case. [When create a new widget for the first time]. This is related to the issue [1]. https://issues.openbravo.com/view.php?id=29027 [^]
(0074946)
hudsonbot   
2015-02-25 21:22   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/96ba7b028cb7 [^]
Maturity status: Test
(0075059)
alostale   
2015-03-02 09:49   
code reviewed

tested in all cases, note first time the widget is added defaults are not working properly see 0029027