Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Using a different data set for header and detail
Using a different data set for header and detail [message #199115] Fri, 03 November 2006 22:08 Go to next message
Ryan Barker is currently offline Ryan BarkerFriend
Messages: 13
Registered: July 2009
Junior Member
We have 2 tables, a Details table and a Summary table. We want to create a report that puts the
summary information above the detail information. We would prefer:
<table>
<tr><th>Column1</th><th>Column2</th></tr>
<tr><th>Summary[0]A</td><th>Summary[0]B</td></tr>
<tr><th>Summary[1]A</td><th>Summary[1]B</td></tr>
....
<tr><td>Detail[0]A</td><th>Detail[0]B</td></tr>
<tr><td>Detail[1]A</td><th>Detail[1]B</td></tr>
....
</table>

The best we can do right now is make a table, binding it to the Detail table and then create tables
inside each header cell for the summary which makes the following:

<table>
<tr><th>Column1</th><th>Column2</th></tr>
<tr><th><table><tr><td>Summary[0]A</td><td>Summary[1]A </td></tr></table></th>
<tr><th><table><tr><td>Summary[0]B</td><td>Summary[1]B </td></tr></table></th>
</tr>
....
<tr><td>Detail[0]A</td><th>Detail[0]B</td></tr>
<tr><td>Detail[1]A</td><th>Detail[1]B</td></tr>
....
</table>

This is a lot of work and if any of the lines wrap, the rows will no longer line up.

Is the original design possible?
Re: Using a different data set for header and detail [message #199365 is a reply to message #199115] Mon, 06 November 2006 17:52 Go to previous message
Ryan Barker is currently offline Ryan BarkerFriend
Messages: 13
Registered: July 2009
Junior Member
Anyone know a good way to do this?

Ryan Barker wrote:
> We have 2 tables, a Details table and a Summary table. We want to
> create a report that puts the summary information above the detail
> information. We would prefer:
> <table>
> <tr><th>Column1</th><th>Column2</th></tr>
> <tr><th>Summary[0]A</td><th>Summary[0]B</td></tr>
> <tr><th>Summary[1]A</td><th>Summary[1]B</td></tr>
> ...
> <tr><td>Detail[0]A</td><th>Detail[0]B</td></tr>
> <tr><td>Detail[1]A</td><th>Detail[1]B</td></tr>
> ...
> </table>
>
> The best we can do right now is make a table, binding it to the Detail
> table and then create tables inside each header cell for the summary
> which makes the following:
>
> <table>
> <tr><th>Column1</th><th>Column2</th></tr>
> <tr><th><table><tr><td>Summary[0]A</td><td>Summary[1]A </td></tr></table></th>
>
> <tr><th><table><tr><td>Summary[0]B</td><td>Summary[1]B </td></tr></table></th>
>
> </tr>
> ...
> <tr><td>Detail[0]A</td><th>Detail[0]B</td></tr>
> <tr><td>Detail[1]A</td><th>Detail[1]B</td></tr>
> ...
> </table>
>
> This is a lot of work and if any of the lines wrap, the rows will no
> longer line up.
>
> Is the original design possible?
Previous Topic:size of plugins
Next Topic:NullPointerException in buildDataSource
Goto Forum:
  


Current Time: Fri Dec 27 04:10:26 GMT 2024

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

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

Back to the top