Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032287Openbravo ERPA. Platformpublic2016-02-19 10:562016-03-17 10:56
caristu 
caristu 
highmajoralways
closedfixed 
5
 
3.0PR16Q2 
alostale
Core
No
0032287: Selection can be lost in P&E grids having an amount of data higher than the page size
Selection can be lost in P&E grids having an amount of data higher than the page size.

Smartclient has an internal mechanism that tries to retrieve the records surrounding the last clicked record, when the grid is refreshed.

This affects pick and edit grids which should always return all the selected records after every refresh.
1) Using an environment with big amount of data. Go to the [Payment In] window and launch Add Details process.
2) Select the first record
3) Scroll down to request a new page and select a record of the new page.
4) Enter a filter criteria to refresh the grid. Notice that the request is using a startRow different from 0. This is because the mechanism mentioned in Description. Notice that the selection of the first selected record is lost.

This also can cause the filtering criteria to return not expected records.
No tags attached.
related to defect 0032193 closed caristu Selection is not working properly in P&E grids having filter on change option set to N 
related to design defect 0036140 new Triage Platform Base Pick/edit grid is not compatible with high volumes: number of selected records is limited by MAX_PAGE_SIZE_INCREASE 
Issue History
2016-02-19 10:56caristuNew Issue
2016-02-19 10:56caristuAssigned To => caristu
2016-02-19 10:56caristuModules => Core
2016-02-19 10:56caristuTriggers an Emergency Pack => No
2016-02-19 11:12caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11176#r11176
2016-02-19 11:23hgbotCheckin
2016-02-19 11:23hgbotNote Added: 0084352
2016-02-19 11:23hgbotStatusnew => resolved
2016-02-19 11:23hgbotResolutionopen => fixed
2016-02-19 11:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/02db9cb1d67259dd5da09cfa754d9f8f2406ce2f [^]
2016-02-19 11:23caristuRelationship addedrelated to 0032193
2016-02-19 11:28caristuReview Assigned To => alostale
2016-02-19 11:28caristuIssue Monitored: alostale
2016-02-26 09:43alostaleNote Added: 0084547
2016-02-26 09:43alostaleStatusresolved => closed
2016-02-26 09:43alostaleFixed in Version => 3.0PR16Q2
2016-03-17 10:56hudsonbotCheckin
2016-03-17 10:56hudsonbotNote Added: 0085152
2017-05-30 17:07maiteRelationship addedrelated to 0036140

Notes
(0084352)
hgbot   
2016-02-19 11:23   
Repository: erp/devel/pi
Changeset: 02db9cb1d67259dd5da09cfa754d9f8f2406ce2f
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Feb 19 11:21:21 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/02db9cb1d67259dd5da09cfa754d9f8f2406ce2f [^]

fixes issue 32287: Selection can be lost in P&E grids under some circumstances

If we refresh the grid, after selecting a record in a page different from the first one, Smartclient internally prepares the request to retrieve the records surrounding the selected one, in order to try to keep the position of the scroll.

This behavior in P&E can cause the losing of the selected records, because they are always loaded on the first page. In order to prevent this, we detect this situation in P&E grids before performing the request, and in that case we adapt it to force the retrieval of the first page which contains all the selected records.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-grid.js
---
(0084547)
alostale   
2016-02-26 09:43   
code reviewed + tested
(0085152)
hudsonbot   
2016-03-17 10:56   
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/b22fb0500156 [^]
Maturity status: Test