How can we pass a String type field value to main report and print it somewhere?

0

Normally, we can pass anything from main dataset to a sub dataset or sub report. But the reverse seems to be non-feasible. Attached is a dummy jrxml for more context in defining the problem.

 

Suppose, we have to print the Field3 value in a text field under the main report (See attached jrxml).

Attachments: 
amlan.samanta's picture
Joined: May 5 2020 - 5:21am
Last seen: 1 week 4 days ago

1 Answer:

1

Hello there, 

I recently managed to pass values from subreport to main report using the "return values" menu.

For example, imagine you have a example_variable in your subreport, just click to return values,

add the variable name, create a variable with the same name in your main report with the parameter calculation = "System"

(cool site https://stackoverflow.com/questions/7348408/returning-a-value-from-sub-report-to-main-report-in-ireport)

 

 

 

Have a great day !

Best regards, Arnaud

 

arnaudsimon091's picture
Joined: Nov 26 2018 - 12:25pm
Last seen: 2 weeks 2 days ago
Feedback