| birt when group count is equal to page break in next page extra group header appears with no data [message #893174] |
Tue, 03 July 2012 01:28  |
ramesh pulipati Messages: 6 Registered: July 2012 |
Junior Member |
|
|
Hi
I am facing the problem when the group count of records is equal to page break, then only the case the next group header displaying with out data .
Much appreciate for your help.
I have attached the report
please go to the record 10103(order number) after the order 10103 page break happend, in the next page 10104 group header comes with no data, then click next page there group header 10104 and data appears. i dont know why the extra group header comes with no data.
Note: View the report in Web Viewer.
This is happend only when the group count of records and page break number are equall.
Regards,
Ramesh Pulipati
[Updated on: Tue, 03 July 2012 01:33] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: birt when group count is equal to page break in next page extra group header appears with no dat [message #894641 is a reply to message #894465] |
Mon, 09 July 2012 19:25  |
|
In the example attached, if you set the page break interval to 0, create two aggregations on the table (one running count on the group and one total count on the group), and put the following script, which uses the two aggregations to handle your in group page breaking, in the onCreate of your detail row, it should stop the repeated headers and if you put a page number auto text in the masterpage footer, it'll be correct, as well. Leave the groups page break after set to always excluding last.
if (row["GroupCount"] == row["GroupRunningCount"]){
}
else{
if(row["GroupRunningCount"]%10 == 0){
this.getStyle().pageBreakAfter = "always";
}
}
Hope this helps.
Regards,
Michael Williams
BIRT Exchange
Michael's BIRT Blog
|
|
|
Powered by
FUDForum. Page generated in 0.02590 seconds