using collection parameter with subreport

0

Hi

I have a report where I pass a user identifier, containing a subreport with a separate query listing orders for that user.

Now I have to change the report to contain multiple users, so I changed the user identifier parameter from string to java.util.collection, and it works for the "outer" report.

But I can't achieve to pass the user identifier of the "actual" user to the subreport. I tried to map the "outer" field <identifier> to the subreport and set evaluation to early (then late), but that led to each "user" containing every order of all users.

What I try to achieve is to "collect" what was a single report before for one user now in one file (pdf) for multiple users.

Can anyone help?

tobias.beissinger's picture
Joined: May 10 2015 - 11:49pm
Last seen: 2 months 1 week ago

1 Answer:

0

solved it myself:

created a variable v_identifier in the main report with reset type "Master" pointing to Field $F{identifier} and mapped that variable to the according parameter in the subreport.

tobias.beissinger's picture
Joined: May 10 2015 - 11:49pm
Last seen: 2 months 1 week ago
Feedback