Jump to content
Changes to the Jaspersoft community edition download ×

Accessing return variables within nested datasets


neville.taylor_1

Recommended Posts

I have a list object that has a nested subreport that is called for each row in the list dataset As far as I understand any return variables I define on the subreport will be returned to the main report. Is it possible to access the return variables within the list itself so that I can pass the value returned each time to the next calling of the subreport?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I guess you should better use a SubReport instead of a ListElement, then you should have access to the ReturnVariable for each calling record. But be aware with page-breaks and so on... if the SubReport breaks the page, it won't return it's (current) variable content... just after it has finished. For using CarryOvers for example it could become difficult. But there are some "new"  evaluation times (e.g. MASTER) that could help in this case.

Mixing ListElements and SubReport was always a pain when I remember right, so that's why I prefer using SubReports - but this is of course just my personal opinion. ;-)

hth + regards

C-Box

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...