Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How To Control Table header data on each page?
Bhumi U.
I wanted to generate the report in which Table header should appear on each page of the report and header data are the custom fields from the data set.
Header data should be appear different on each page of the report based on the dataset field value.
Please provide appropriate solution.
Thanks,
Bhumi
Find more posts tagged with
Comments
mwilliams
If you group your table on the field you want to change the header based on, there will be a group header at the top of each page for the given group that you can have group specific data in that will change each time the group changes.
Bhumi U.
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="97774" data-time="1331757587" data-date="14 March 2012 - 01:39 PM"><p>
If you group your table on the field you want to change the header based on, there will be a group header at the top of each page for the given group that you can have group specific data in that will change each time the group changes.<br /></p></blockquote>
<br />
You are right about using the header group but my issue is header is not specific to any group.it should appear on every page regardless of any group.So I am using tabel header,but it displays first row of the result set data to all pages of the report. While i want page header should be different on every page based on result set data.
mwilliams
I thought you said that the header should be different based on the dataSet data? Maybe I'm not understanding correctly. Can you explain more about what changes you want to be made in the header of each page?
Bhumi U.
sorry for the confusion.
Actually i have to generate the pdf report with header and detail. some fields in header are static and some are coming from DataSet. In detail records will be from data set only.
Now for Ex. I have to display product related information with Label name in header and related desc in detail row.
Now suppose in first page there are total 10 product's detail is available .. then i have to display 1st product's label in the header.
On next page, some other 9 product's detail is available then i have to pick first product's label on that page and have to display on the header.
page 1: Produt1 Label
product 1 desc
product 2 desc
Bhumi U.
sorry for the confusion.
Actually i have to generate the pdf report with header and detail. some fields in header are static and some are coming from DataSet. In detail records will be from data set only.
Now for Ex. I have to display product related information with Label name in header and related desc in detail row.
Now suppose in first page there are total 10 product's detail is available .. then i have to display 1st product's label in the header.
On next page, some other 9 product's detail is available then i have to pick first product's label on that page and have to display on the header.
page 1: Produt1 Label Page 2 : Product 11 Label
product 1 desc product 11 desc
product 2 desc product 12 desc
product 3 desc product 13 desc
... ...
... ...
... ...
product 10 desc product 19 desc.. and so on..
mwilliams
And your data in your dataSet is something like:
product id | product description | product label
??
Let me know and also let me know your BIRT version.
Bhumi U.
Yes. you are right...It is like "Product Id", "Product Name" , "Product Label", "Product Desc" , "Product Cost" and so...
I am using Birt Version 2.5.1.
mwilliams
Take a look at this report:
mwilliams
Based on our IM conversation, take a look at the modified example that shows the first "label" that is not null in the header of the table on all pages of the report.