Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Report Viewer
Report Viewer [message #200090] Thu, 09 November 2006 21:14 Go to next message
Eclipse UserFriend
Originally posted by: brad.lwsi.com

I have a report displayed in the Report Viewer. There are about like 100
records generated. How can I set it to display only 10 records at a time
in the listing? So in other words, there would be 10 pages of 10 records.

Thanks!
Re: Report Viewer [message #200114 is a reply to message #200090] Fri, 10 November 2006 01:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jjdscss.fastmail.fm

On Thu, 09 Nov 2006 21:14:03 +0000, brad wrote:

> I have a report displayed in the Report Viewer. There are about like 100
> records generated. How can I set it to display only 10 records at a time
> in the listing? So in other words, there would be 10 pages of 10 records.
>
> Thanks!

I tried it using the Page Break Interval in the Table Property
but it didn't work.

The solution that worked for me was to add a new computed column
with the expression row["0"]/10. This creates a column with the
value 0 for the first 10 rows, 1 for the next 10 rows, etc.

Now you can use this new column as a group. Just set the page
break after group "Always Except Last" to make force a next page
after every group. This technique also allows you to have
page subtotals.
Re: Report Viewer [message #200174 is a reply to message #200114] Fri, 10 November 2006 09:51 Go to previous messageGo to next message
um is currently offline umFriend
Messages: 53
Registered: July 2009
Member
Hi Jjdscss,

I too have a similiar requirement. But i didnt understood the solution u
explained clearly... Could u please explain it again more ellobrately?

Regrds,
Manuel
Re: Report Viewer [message #200198 is a reply to message #200174] Fri, 10 November 2006 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jgngo.yahoo.com

To do break a page by a certain number of rows, you need to do the
following steps:

1. In the Bindings tab of the table, add a new data binding with the
following parameters:

Name: pagenum
Data Type: Integer
Expression: row[0]/10

The value is 10 because we want to break a page by 10 rows each.

2. In the Groups tab, add a new group with the following parameters:

Name: GroupByPage
Group On: pagenum
Page break After: Always Excluding Last

That should give you the desired result.
Re: Report Viewer [message #202435 is a reply to message #200198] Wed, 22 November 2006 15:38 Go to previous message
um is currently offline umFriend
Messages: 53
Registered: July 2009
Member
Thanks Jason Ngo. Itz working fine for me
Previous Topic:Sending both Image(PNG) and ImageMaps from the server to the client
Next Topic:Making report show multiple screens/pages
Goto Forum:
  


Current Time: Thu Dec 26 14:49:15 GMT 2024

Powered by FUDForum. Page generated in 0.06281 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top