Jump to content
We've recently updated our Privacy Statement, available here ×

Passing values from subreport to a table dataset in iReport


iaman.alkhalaf

Recommended Posts

Hello,

Goal:I am trying to pass values from a subreport to a table dataset insaide the main report, and then use that value in a hyperlink expression inside the table's fields

Problem:I am only able to return variables to the MAIN report dataset and not the TABLE dataset. 

Things that have I done to try resolving this issue:
1- Placing the subreport inside the table, but that didn't change anything

2- Making the variable that is recicving the value from the subreport in the MAIN dataset equal to a parameter in the subreport, and then pass that parameter to the table dataset, didn't work neither since i was recieving null values.

Notes: The only function of my subreport is to pass that value to the main report. It's not doing anything else I can manipulate it however I please.

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Try step 2 and move the table element to a different band, than the subreport element reside in.

Please make sure that the table band is in a band lower than the subreport element.

Example:

Place the subreport element in the Title band and the table element in the summary band.

 

Thank you,

Mauricio

Link to comment
Share on other sites

  • 2 months 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...