Access Variable from List (Subreport) in Mainreport

Hello,

i'm using a List Dataset in my report. Within this dataset i'm filling a variable counting some values.
I want to use this variable in the mainreport.

Could anyone please advise me how to do that?

I tried to drag the variable from the design tree of the list dataset to the mainreport, but this is giving me an
"variable not found" error...

thank you

bye

Markus

markus.weisser's picture
Joined: Oct 4 2017 - 2:57am
Last seen: 5 years 7 months ago

7 Answers:

You must return the list to main report for using from subreport.

Search in doc, there are guides that will helo you.

Mariano

mlopez_1's picture
6197
Joined: Oct 21 2013 - 8:08am
Last seen: 1 day 21 hours ago

Hi Marino, thank you for the fast answer. Could you please give me some more advise or topics i could search for?

I'm currently stuck in this....

markus.weisser's picture
Joined: Oct 4 2017 - 2:57am
Last seen: 5 years 7 months ago

Does anybody have a clue on this?

markus.weisser's picture
Joined: Oct 4 2017 - 2:57am
Last seen: 5 years 7 months ago

Download:

https://community.jaspersoft.com/system/files/restricted-docs/jaspersoft...

And read carefully the documentation.

Your question  is resolved at chapter 13.

Mariano

mlopez_1's picture
6197
Joined: Oct 21 2013 - 8:08am
Last seen: 1 day 21 hours ago

Hi Mariano, thank you for the hint. I checked the reference. But i think my problem is, that i'll have to pass a sum out of

a list object not a sub report. When i click the List Options, i can see Parameters, Parameter Map but i'm missing Return Values Button...

Do you have a clue how i can pass a value from a list to the main report?

markus.weisser's picture
Joined: Oct 4 2017 - 2:57am
Last seen: 5 years 7 months ago

I don't understand where there problem is, I think that I don't know your purpose.

When I have to return values from a subreport, first define variable in main report and subreport, then from main report select subrepot and 'Subreport return values' and map both variables.

This all I do.

Mariano

mlopez_1's picture
6197
Joined: Oct 21 2013 - 8:08am
Last seen: 1 day 21 hours ago

Hello Mariano, again: I try to retrieve the data NOT from a sub report, i'm trying to do it with a list object.

With a list object, you don't have the "Subreport return value" Button...

bye

Markus

markus.weisser's picture
Joined: Oct 4 2017 - 2:57am
Last seen: 5 years 7 months ago
Feedback
randomness