Jump to content
JasperReports Library 7.0 is now available ×

Return variable from subdataset in main dataset


julian111

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:

 

converted-file.png.79cd766b17d135547fc9ffcf4c15a35c.png

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

converted-file.png.4816e1973d51d548f236ba7a7c928788.png

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

converted-file.png.d17272af4ed2387b3e10e2764715a40b.png

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