Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Table in a header?
megabri
Hey guys I'm new to BIRT. My first report is a series of tables that display my data. I want my first table to be the header (meaning it shows up on the top of every page). Is having a table in the header section possible? If not is there any other way I might make this work?
Thanks!
Find more posts tagged with
Comments
mwilliams
BIRT doesn't allow a table element in the header, but if you don't need to iterate through a dataSet to get the data you're going to put in the table, a grid will do. You could always just store your values into variables and build an HTML table in a text box. Let me know.
megabri
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="107711" data-time="1343758998" data-date="31 July 2012 - 11:23 AM"><p>
BIRT doesn't allow a table element in the header, but if you don't need to iterate through a dataSet to get the data you're going to put in the table, a grid will do. You could always just store your values into variables and build an HTML table in a text box. Let me know.<br /></p></blockquote>
Could you provide me an example of what you're talking about where you save to variables and put it into an HTML table? Say for example I'm selecting a work order number from a table (query: select wonum from workorder). What would I have to do to get wonum to print out as a header on all the pages? Thanks!
mwilliams
So, you're not needing a table in the header, you just need to display a single number that comes from a dataSet, in the masterpage header? Is this correct? Also, let me know your BIRT version. Thanks!
megabri
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="107760" data-time="1343843265" data-date="01 August 2012 - 10:47 AM"><p>
So, you're not needing a table in the header, you just need to display a single number that comes from a dataSet, in the masterpage header? Is this correct? Also, let me know your BIRT version. Thanks!<br /></p></blockquote>
Yes you're correct. I need values from a dataSet (this dataset only returns one line so it won't be iterated) and I'd like to display them in a masterpage header. I'm assuming you have to do this by saving the datavalue to a variable or something?<br />
<br />
My Birt Version is 2.3.2 I believe. Thanks
mwilliams
Since you're dataSet has just one row that you need to display, you can simply use a grid, bind it to the dataSet you want to use, and drag fields to the grid where you want them. Take a look at the attached example. It was made in 2.3.2.
megabri
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="107877" data-time="1343946227" data-date="02 August 2012 - 03:23 PM"><p>
Since you're dataSet has just one row that you need to display, you can simply use a grid, bind it to the dataSet you want to use, and drag fields to the grid where you want them. Take a look at the attached example. It was made in 2.3.2.<br /></p></blockquote>
Thanks! This was helpful!
mwilliams
You're welcome! Let us know whenever you have questions!