Access Variable from List (Subreport) in Mainreport

0

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: 1 year 8 months ago

7 Answers:

0

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
909
Joined: Oct 21 2013 - 8:08am
Last seen: 6 days 1 hour ago
0

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: 1 year 8 months ago
0

Does anybody have a clue on this?

markus.weisser's picture
Joined: Oct 4 2017 - 2:57am
Last seen: 1 year 8 months ago
0

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
909
Joined: Oct 21 2013 - 8:08am
Last seen: 6 days 1 hour ago
0

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: 1 year 8 months ago
0

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
909
Joined: Oct 21 2013 - 8:08am
Last seen: 6 days 1 hour ago
0

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: 1 year 8 months ago
Feedback
randomness