Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370834 - PageBreak Interval Issue
Summary: PageBreak Interval Issue
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 4.2.2   Edit
Assignee: Gang Liu CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 10:08 EST by pavan kumar surey CLA
Modified: 2013-01-18 04:45 EST (History)
1 user (show)

See Also:


Attachments
Report Design (21.16 KB, application/octet-stream)
2012-02-07 10:08 EST, pavan kumar surey CLA
no flags Details
test data (2.88 KB, text/xml)
2012-02-07 10:11 EST, pavan kumar surey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pavan kumar surey CLA 2012-02-07 10:08:40 EST
Created attachment 210648 [details]
Report Design

Suppose, you have 'n' groups of data based on some field say 'city'. i:e; If there are 3 Cities, then there are 3 Groups of data.
And you set the page interval for your table to be 'p'.
If a group 'G' has "p*i+1" rows where i takes from 0 to any number, then the number of rows displayed in the next group are 'p-1'  instead of 'p'. 

Sample Scenario:
---------------------------
I grouped my data based on the field 'city'.
City 1 has 11 qualifying records.
City 2 has 22 qualifying records.
City 3 has 30 qualifying records.

I set the Page Interval to 10.

In ideal case, we should get 8 pages in our report
Page 1: will have 10 records from Group 1
Page 2: will have  1 record from Group 1
Page 3: will have 10 records from Group 2
Page 4: will have 10 records from Group 2
Page 5: will have  2 records from Group 2
Page 6: will have 10 records from Group 3
Page 7: will have 10 records from Group 3
Page 8: will have 10 records from Group 3

But since we have a group(Group 1) which has 'p*i+1' = 10*1+1 = 11 rows, the report is showing only 9 pages in Page 3.
We are getting the pages like below:

Page 1: will have 10 records from Group 1
Page 2: will have  1 record from Group 1
Page 3: will have  9 records from Group 2
Page 4: will have 10 records from Group 2
Page 5: will have  3 records from Group 2
Page 6: will have 10 records from Group 3
Page 7: will have 10 records from Group 3
Page 8: will have 10 records from Group 3.

A sample rptdesign and xml data can be found from the link
Comment 1 pavan kumar surey CLA 2012-02-07 10:11:03 EST
Created attachment 210650 [details]
test data
Comment 2 Gang Liu CLA 2013-01-18 04:45:47 EST
fixed