Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011679Openbravo ERPZ. Otherspublic2009-12-08 10:392011-09-21 22:46
arunkumar 
shuehner 
normalminorhave not tried
closedout of date 
5
2.40 
 
Core
No
0011679: Clicking Previous 5 and Next 5 display different page records
If we click Previous 5 and next 5 in the page it displays different number of records.
Prerequisite:

1.Have a 2.40 environment.
2.Change the no of rows to 5 using org.openbravo.erpCommon.utility.TableSQLData.maxRowsPerGridPage

Steps:

Click Information -> Product
Product popup window will be opened.
Assume Sales 2006 - EUR price list has 15 products.
Initially it displays 1-5/5
When we click "Next 5" we are able to see 1-27/27 then it displays 6-10/10
Now you are in the page 6-10/10. There you click "Next 5"
Here you can see 6-32/32. Then it will display 11-15/15.
In that page you can see another "Next 5" If you click that you can see 11-37/37.
page data grid
depends on backport 0011710 closed shuehner Clicking Previous 5 and Next 5 display different page records 
Issue History
2009-12-08 10:39arunkumarNew Issue
2009-12-08 10:39arunkumarAssigned To => rafaroda
2009-12-08 11:42arunkumarTag Attached: page data grid
2009-12-09 13:14shuehnerNote Added: 0022583
2009-12-09 16:25psarobeSeveritymajor => minor
2009-12-09 16:26psarobeStatusnew => scheduled
2009-12-09 16:26psarobeAssigned Torafaroda => shuehner
2009-12-09 16:26psarobefix_in_branch => pi
2011-09-21 22:46shuehnerNote Added: 0041211
2011-09-21 22:46shuehnerStatusscheduled => closed
2011-09-21 22:46shuehnerResolutionopen => out of date

Notes
(0022583)
shuehner   
2009-12-09 13:14   
Two issues here:

First:
The number of record is unknown in the client until the list of rows is received from the server. In the time period until this data is received the 1-27/27 is shown (where 27 is the number of rows fitting on your display). This is unchanged from the old behavior.

Second:
As explained in 11678 the total/absolte number of rows will not be shown so the data shown is the total number of rows upto the last row in the current page.
(0041211)
shuehner   
2011-09-21 22:46   
This issue is related to 11678 (Grid does not show total number of pages). As a approximation the grid does show the minimum number of records it can be sure of. Example being on first full 'page' of 10.000 the row number is known to be 10.000 (or more) and when being on the second full page the number is known to be 20.000 which is shown in the count explaining the change.

However in the new 3.0 major version the grid does both not have the previous/next buttons anymore and also the global count is no longer present so this issue does not apply anymore.