jaspersoft studio

I'm trying to select a multi-input parameter in jaspersoft studio based on people's usernames.  I can successfully select one person via $P{REPORT_CONTEXT}.containsParameter("$F{username} ").  Does anyone know how I can update this so that I can select multiple usernames in one go?

 

Ive tried a couple of options via google but using arrays shows an empty report

 

Thanks in advance

adam.saville's picture
Joined: Aug 2 2016 - 6:17am
Last seen: 6 years 4 months ago

1 Answer:

create the parameter as arraylist and use the below filter expression

$P{Parameter}.contains($F{Field} ) == true

 

 

reportdev's picture
11082
Joined: Oct 12 2015 - 12:05pm
Last seen: 11 months 2 weeks ago
Feedback
randomness