Problem with no data and subreport
Hi,
I have the following problem:
I have a report with one subreport in the master data section. Both have Dataset's attached to it.
When no data exists on the top level the unnecessary subreport still accesses the subreport dataset, a dataset that cannot be filled because it depends on the missing top level dataset item.
When i remove my 'assert' statement the following error occurs:
An Error occured calculating: List index out of bounds(1)
How can i use a subreport that is not created/accessed when the top level has no items? In my opinion the subreport should not be accessed/created when the toplevel has no items...
I have the following problem:
I have a report with one subreport in the master data section. Both have Dataset's attached to it.
When no data exists on the top level the unnecessary subreport still accesses the subreport dataset, a dataset that cannot be filled because it depends on the missing top level dataset item.
When i remove my 'assert' statement the following error occurs:
An Error occured calculating: List index out of bounds(1)
How can i use a subreport that is not created/accessed when the top level has no items? In my opinion the subreport should not be accessed/created when the toplevel has no items...
Comments
It should be either in a child band or a detail attached to the master band.
regards