Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Subreport needed?
Subreport needed? [message #545970] Fri, 09 July 2010 18:06 Go to next message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

Hi,

I want to display the following data structure:

Each data element has a header and 0..n subentries within a two-column
table. My data comes from a scripted datasource.

I am wondering how to implement this. Do I need a subreport for the
subentry table mentioned above?

--
Regards,
Patrick

--
email: pschoenb@gmx.de
PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39
Re: Subreport needed? [message #545984 is a reply to message #545970] Fri, 09 July 2010 19:23 Go to previous messageGo to next message
Richard A. Polunsky is currently offline Richard A. PolunskyFriend
Messages: 212
Registered: July 2009
Location: Houston TX
Senior Member

If your scripted data is bringing in everything you need, probably not.

Assuming you have a query returning a row like:

[header field 1][header field 2][header field n][detail field 1][detail field 2][detail field n]

You can pull that into a table in BIRT, then within the table group on one or more of your header fields. Then you can show header information in the header row, and detail information in the detail rows.
Re: Subreport needed? [message #546080 is a reply to message #545984] Sat, 10 July 2010 19:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pschoenb.gmx.de

On Fri, 09 Jul 2010 15:23:14 -0400, Richard A. Polunsky wrote:

> If your scripted data is bringing in everything you need, probably not.
>
> Assuming you have a query returning a row like:
>
> [header field 1][header field 2][header field n][detail field 1][detail field 2][detail field n]
>
> You can pull that into a table in BIRT, then within the table group on one or more of your header fields. Then you can show header information in the header row, and detail information in the detail rows.

But if I get it right, the Java event handler is called once for each
row, right? So, if the handler is called once for each header, how do I
fill in the detail rows?

--
Regards,
Patrick

--
email: pschoenb@gmx.de
PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39
Re: Subreport needed? [message #546098 is a reply to message #545970] Sat, 10 July 2010 23:41 Go to previous message
Richard A. Polunsky is currently offline Richard A. PolunskyFriend
Messages: 212
Registered: July 2009
Location: Houston TX
Senior Member

I think you're confusing two different loci of action.

The DataSet object uses the scripted datasource to generate a set/stream of DataSetRow elements.

The Table object then takes the set of DataSetRow elements and interprets them, in this case creating a header group and doing layout. The Table object has no connection with the DataSource; it merely consumes and processes the output of the DataSet.

One of the BIRT specialists can probably correct me if any of the above is in error.
Previous Topic:Help for BIRT charts / data sets
Next Topic:Add a scroll bar to a parameter list when executing a report
Goto Forum:
  


Current Time: Fri Apr 19 03:05:35 GMT 2024

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

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

Back to the top