Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » beforeOpen not always called for sub-report?
beforeOpen not always called for sub-report? [message #629007] Sat, 25 September 2010 21:21 Go to next message
Eric C. is currently offline Eric C.Friend
Messages: 4
Registered: September 2010
Junior Member
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 15:30 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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: Wed Apr 24 16:45:03 GMT 2024

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

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

Back to the top