BIRT Exchange Forum: Table in a header? - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Table in a header? Rate Topic: -----

#1 User is offline   megabri Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 66
  • Joined: 31-July 12


Posted 31 July 2012 - 10:18 AM

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!
0

#2 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 31 July 2012 - 10:23 AM

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.
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#3 User is offline   megabri Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 66
  • Joined: 31-July 12


Posted 31 July 2012 - 10:34 AM

View Postmwilliams, on 31 July 2012 - 11:23 AM, said:

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.

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!
0

#4 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 01 August 2012 - 09:47 AM

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!
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#5 User is offline   megabri Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 66
  • Joined: 31-July 12


Posted 01 August 2012 - 10:45 AM

View Postmwilliams, on 01 August 2012 - 10:47 AM, said:

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!

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?

My Birt Version is 2.3.2 I believe. Thanks
0

#6 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 02 August 2012 - 02:23 PM

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.

Attached File(s)


Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

#7 User is offline   megabri Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 66
  • Joined: 31-July 12


Posted 03 August 2012 - 04:35 AM

View Postmwilliams, on 02 August 2012 - 03:23 PM, said:

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.

Thanks! This was helpful!
0

#8 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 03 August 2012 - 06:43 AM

You're welcome! Let us know whenever you have questions! :)
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users