Jump to content
JasperReports Library 7.0 is now available ×

Return variable from subdataset in main dataset


Recommended Posts

Hi Community,

hope someone can help me.

I am trying to return a value from a subdataset into the main dataset as mentioned at jaspersoft studio - How to add variable from subdataset to report? [Jasper] - Stack Overflow

I have created a variable (SUB_Varaible) in the subdataset and set the Expression to the relevant Databasefield:



I have then created another variable in the main dataset (Main_Variable):


In a list (or table) I created the return value mapping:


I then drag and drop the Main_Variable onto the report but it is still evaluated as “null”.

How can I fix this?

Thank you!


Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 years later...

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