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...

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 3:25PM
    hi
    It should be either in a child band or a detail attached to the master band.
    regards ;)
  • edited 3:25PM
    gordk wrote:
    hi
    It should be either in a child band or a detail attached to the master band.
    regards ;)
    Thanks for the suggestion. It now works fine!

    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.