Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006478Openbravo ERPB. User interfacepublic2008-12-11 10:102009-02-20 09:28
joan 
shuehner 
normalmajoralways
closedfixed 
30Debian Etch
2.40 
pi 
Core
No
0006478: Selection problem on grid in several/all selectors
When i try to select on a grid all the rows, i need to go page by page selecting fields and I can't do it all with one single step.

The problem is I need to select 2000 products to show the stock for instance, and when I try to select all but i have problems.

This is the procedure i try to use. First I go to the first line of the grid, i mark it, then I go with the bar to the last field of the grid and I press Shift and I press the last row. I expect to see all the rows selected, but it doesn't work, it does nothing. But if i need to select just a few of the rows, like just ten, then I do the same and it works. For instance I press the first, I press the shift and then I press the fifth and all five rows are selected. Also I expect the same behaivour that it happens on product grid or bpartner grid in master data management

A workaround when they are just two or three pages of products is select the first, select the last of this page, then go one page down just until there is just the last one i've marked plus the ones I want to add to the selection and then keep pressing the shift and press the last of this page, and continue doing that until I reach to the last page and then I've selected all the rows, but this is not logic and useful when we are talking about more than 10 pages of articles or more.

I've reproduced that error on stock grid and probably on more. I think to work this propertly the last selected row must be on a session var or anything.
With Role Normal User or admin user
1 Go to Warehouse management
2 Analysis Tools
3 Stock report
4 Press The + Button
5 Select the first row
6 Press the Shift button of keyboard
7 Select the last row
Not all the rows between get selected
Copy the behaivor of Product grid on Master Data management
performance2.40scrum
related to defect 0006727 closed gorka_gil Selection problem on grid in generated windows. 
depends on backport 0006974 closed shuehner Selection problem on grid in several/all selectors 
related to defect 0007372 closed shuehner Selecting multiple rows spanning several pages in the grid of a generated windows does select wrong rows. 
Issue History
2008-12-11 10:10joanNew Issue
2008-12-11 10:10joanAssigned To => rafaroda
2008-12-11 10:10joansf_bug_id0 => 2416327
2008-12-18 11:34rafarodaAssigned Torafaroda => shuehner
2008-12-18 11:34rafarodaStatusnew => acknowledged
2008-12-18 11:34rafarodaTag Attached: performance2.40scrum
2008-12-22 14:55shuehnerNote Added: 0011661
2008-12-23 20:03shuehnerNote Added: 0011711
2008-12-23 20:19shuehnerNote Added: 0011713
2008-12-23 20:22shuehnerSummarySelection problem on grid => Selection problem on grid in several/all selectors
2008-12-23 20:26shuehnerRelationship addedrelated to 0006727
2008-12-23 20:26shuehnerAssigned Toshuehner => gorka_gil
2009-01-07 18:22gorka_gilAssigned Togorka_gil => iperdomo
2009-01-19 10:23iperdomoStatusacknowledged => scheduled
2009-01-19 10:23iperdomofix_in_branch => trunk
2009-01-20 14:58iperdomoNote Added: 0012394
2009-01-22 20:06svnbotCheckin
2009-01-22 20:06svnbotNote Added: 0012546
2009-01-22 20:06svnbotsvn_revision => 12171
2009-02-03 17:07iperdomoAssigned Toiperdomo => shuehner
2009-02-04 17:38shuehnerRelationship addedrelated to 0007372
2009-02-05 19:00svnbotCheckin
2009-02-05 19:00svnbotNote Added: 0013206
2009-02-05 19:00svnbotStatusscheduled => resolved
2009-02-05 19:00svnbotResolutionopen => fixed
2009-02-05 19:00svnbotsvn_revision12171 => 12864
2009-02-20 09:28sureshbabuRegression testing => No
2009-02-20 09:28sureshbabuStatusresolved => closed
2009-02-20 09:28sureshbabuNote Added: 0013795
2009-02-20 09:28sureshbabuFixed in Version => trunk

Notes
(0011661)
shuehner   
2008-12-22 14:55   
Verified the selection behavior in the Business Partner multiple selector and the Product grid.
The behavior is broken in both windows as specified in this issue. Selection records from multiple pages in one selection is not possible in one action.
(0011711)
shuehner   
2008-12-23 20:03   
Clarified: In the Multiple selector the behavior is as specified. the normal generated grid views fail when trying to use the same flow with a different error.
(0011713)
shuehner   
2008-12-23 20:19   
Additional info: This bug seems to be present in all selectors. Can be checked by testing the same flow in any selector (in the Information menu-folder)
(0012394)
iperdomo   
2009-01-20 14:58   
The problem is in the backend. The request from DataGrid.js seems to be good, but since were are always limiting the result to pageSize x 3 (for performance), the list of Ids returned gets messed up.
(0012546)
svnbot   
2009-01-22 20:06   
Repository: openbravo
Revision: 12171
Author: iperdomo
Date: 2009-01-22 20:06:12 +0100 (Thu, 22 Jan 2009)

Fixes selecting multiple rows on multiple pages on generated windows. Related to issue 6478

---
U trunk/src/org/openbravo/erpCommon/utility/DataGrid.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12171&sc=1 [^]
(0013206)
svnbot   
2009-02-05 19:00   
Repository: openbravo
Revision: 12864
Author: huehner
Date: 2009-02-05 19:00:40 +0100 (Thu, 05 Feb 2009)

Fixed 6478
- Implement missing code for allowing multi-page selection of
  multiple records in the business partner multiple and product
  multiple selectors.
- Fix use before defination of a js-var triggered by this changes.

---
U trunk/src/org/openbravo/erpCommon/info/BusinessPartnerMultiple.java
U trunk/src/org/openbravo/erpCommon/info/ProductMultiple.java
U trunk/web/js/openbravo/widget/DataGrid.js
---

https://dev.openbravo.com/websvn/openbravo/?rev=12864&sc=1 [^]
(0013795)
sureshbabu   
2009-02-20 09:28   
Retested in context 79.125.56.185/openbravotrunk