Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0026911Openbravo ERPA. Platformpublic2014-06-19 18:032014-06-22 09:23
egoitz 
AugustoMauch 
immediatecriticalalways
closedfixed 
5
3.0PR14Q2.1 
3.0PR14Q3 
shankarb
Core
No
0026911: The request to the datasource are done several times when opening a selector from a 2.50 process popup
The request to the datasource are done several times when opening a selector from a 2.50 process popup
-Define new property preference selecting the propery orphan lines and using the value Y.
-Create 300 productos. It can be easly done using product characteristics.
-Logout and login
-Go to return from customer window
-Create a new header
-Click on the insert orphan lines button
-A popup is opened with a product selector
-Click on the selector to see all the options.
*4 request are done to the datasource with the following pagination
0-75
75-150
150-225
225-300
Performance
related to defect 00238893.0MP24 closed AugustoMauch When searching on the field of a new selector the request to the datasource is done twice 
related to defect 0027011 closed jonalegriaesarte Memory leaks using new selector on old parameters popus 
related to defect 0027088 closed alostale Wrong behavior with obuisel selectors in manual windows 
related to defect 0027070 closed rafaroda In window "Settle / Protest Remittances", "search" button does not filter the first time 
related to defect 00276323.0PR15Q1 closed alostale The query for a querywidget is executed three times 
Issue History
2014-06-19 18:03egoitzNew Issue
2014-06-19 18:03egoitzAssigned To => dmiguelez
2014-06-19 18:03egoitzModules => Core
2014-06-19 18:03egoitzResolution time => 1403388000
2014-06-19 18:03egoitzTriggers an Emergency Pack => No
2014-06-19 18:04egoitzAssigned Todmiguelez => AugustoMauch
2014-06-19 18:04egoitzCategory09. Financial management => A. Platform
2014-06-20 09:09alostaleTag Attached: Performance
2014-06-20 10:13AugustoMauchRelationship addedrelated to 0023889
2014-06-20 10:49egoitzSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5967#r5967
2014-06-20 11:07alostaleSummaryThe request to the datasource are done several times when opening a selector from a process popup => The request to the datasource are done several times when opening a selector from a 2.50 process popup
2014-06-20 11:07alostaleDescription Updatedbug_revision_view_page.php?rev_id=5969#r5969
2014-06-20 11:43AugustoMauchIssue Monitored: shankarb
2014-06-20 11:43AugustoMauchReview Assigned To => shankarb
2014-06-20 11:45AugustoMauchNote Added: 0068216
2014-06-20 11:46AugustoMauchStatusnew => scheduled
2014-06-20 11:46AugustoMauchfix_in_branch => pi
2014-06-20 11:46AugustoMauchStatusscheduled => resolved
2014-06-20 11:46AugustoMauchFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/032fb3d553637702f5d14a6b0b2e8f8f23bf1c68 [^]
2014-06-20 11:46AugustoMauchResolutionopen => fixed
2014-06-22 09:23shankarbNote Added: 0068237
2014-06-22 09:23shankarbStatusresolved => closed
2014-06-22 09:23shankarbFixed in Version => PR14Q3
2014-07-03 23:19egoitzRelationship addedrelated to 0027011
2014-07-16 08:13alostaleRelationship addedrelated to 0027088
2014-07-16 08:13alostaleRelationship addedrelated to 0027070
2014-09-22 13:42alostaleRelationship addedrelated to 0027632

Notes
(0068216)
AugustoMauch   
2014-06-20 11:45   
Repository: erp/devel/pi
Changeset: 032fb3d553637702f5d14a6b0b2e8f8f23bf1c68
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Jun 20 11:42:57 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/032fb3d553637702f5d14a6b0b2e8f8f23bf1c68 [^] [^]

Fixes issue 26911: Multiple requests to selector datasource in manual popups

Pick lists and grids use a property called drawAllMaxCells, that is used to determine how many cells should be fetched from the datasource, its default value is 250. If after making a datasource call smartclient finds out that the number of retrieved cells is lower than drawAllMaxCells, it will do another datasource call, and repeat this process until the number of cells fetched are higher than drawAllMaxCells or until all cells have been fetched.

This is not the intented behaviour, we want the rows to be fetched when the user scrolls down and is out of cached rows. This is achieved by setting drawAllMaxCells to 0.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js
---
(0068237)
shankarb   
2014-06-22 09:23   
Code reviewed and verified in pi changeset d4e6319bf664.