[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: BIRT subreports

Hi all,

>>> Have you tried using a library? Here's a reference on how to create and
>>> then use it.
>>>
>>> http://www.theserverside.com/articles/article.tss?l=EclipseBRT


A library is not the same thing - it is a static collection of reporting
elements.

Here's my scenaro. I have 20 subreports that a user can run and he wants a
single top-level report that contains the subreports he chooses. The data
sources for these subreports are all disparate (i.e. different databases,
some are XML).


The top level report needs to be a template for laying out the final report
that can include placeholders for subreports. As the top-level report gets
rendered, any subreports would also be rendered in-situ.

> Currently in BIRT the only way to do this is probably to use the design
> engine API within a Servlet and
> create the report on the fly. You would need to open the different report
> designs and basically do an API cut and paste on the
> body contents as well as the Data Sources/Sets into a final report. You
> could then pass this to the Report Engine API or the BIRT Viewer for
> rendering.
> One other option may be to use the Report Engine to render embedded HTML,
> which basically drops the <HTML> and <BODY> tags and include all the one you
> want in one single document. This doesnt help much for PDF though.
>
> Jason Weathersby
> BIRT PMC



Has something changed since 2006? I'm interested in similar scenario.
Additionally, I wish I could avoid regenerating (and retrieving the data from data source again, which may be time consuming operation for some sources/queries) subreports if they have been already created and stored in some disk folder or database. For example one person creates the main report and several others creates subreports (beforehand). Is is possible e.g. to render rptDocument from one report directly into the other report?


Best regards
Reddy