Skip to main content



      Home
Home » Archived » BIRT » beforeOpen not always called for sub-report?
beforeOpen not always called for sub-report? [message #629007] Sat, 25 September 2010 17:21 Go to next message
Eclipse UserFriend
I have two different reports, bot of which use sub-reports, but are behaving strangely differently.

The first report has a main report and a single sub-report bound to each main report detail row. For each row on the main report, the subreport's beforeOpen() and then open() dataset event handlers are called to prepare the dataset for the subreport which seems correct.

I have a second report which also has a single main report and two subreports, bound to each main report detail row. In this case however, for both of the sub-reports, the beforeOpen() dataset event handler is only called once (for the first main report row), and subsequent rows only call the sub-report dataset's open() event handler?

Nothing else about the two reports seems different. Can anyone explain why this might happen?

Re: beforeOpen not always called for sub-report? [message #629252 is a reply to message #629007] Mon, 27 September 2010 11:30 Go to previous message
Eclipse UserFriend
Eric,

Not sure if this is the issue, but datasets that are used multiple times
are cached if the query does not change. It is not a good idea to
depend on the order of the dataset events. If you need them in the
table you should use row oncreate events. Also dataset events may be
called multiple times if any of your columns are used in aggregates
which require multiple passes over the data.

Jason

On 9/25/2010 5:22 PM, Eric C. wrote:
> I have two different reports, bot of which use sub-reports, but are
> behaving strangely differently.
>
> The first report has a main report and a single sub-report bound to each
> main report detail row. For each row on the main report, the subreport's
> beforeOpen() and then open() dataset event handlers are called to
> prepare the dataset for the subreport which seems correct.
>
> I have a second report which also has a single main report and two
> subreports, bound to each main report detail row. In this case however,
> for both of the sub-reports, the beforeOpen() dataset event handler is
> only called once (for the first main report row), and subsequent rows
> only call the sub-report dataset's open() event handler?
>
> Nothing else about the two reports seems different. Can anyone explain
> why this might happen?
>
>
Previous Topic:BirtDateTime calculation wrong?
Next Topic:BIRT Vs Cognos
Goto Forum:
  


Current Time: Sat Jul 12 11:53:12 EDT 2025

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

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

Back to the top