|Re: beforeOpen not always called for sub-report? [message #629252 is a reply to message #629007]
||Mon, 27 September 2010 15:30
| Jason Weathersby
Registered: July 2009
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.
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?
Powered by FUDForum
. Page generated in 0.05570 seconds