how to use $X{IN, $F{field}, $P{param}} in expression editor?


Hello, everyone.

I would like to ask a question.
so i have created report in jaspersoft studio, i want to add filter expession (where $F{field} in($P{param})) for this report using $X{IN, $F{field}, $P{param}} syntax.
how to using it in this editor? is that possible?

newbie wan's picture
Joined: Nov 12 2014 - 10:20pm
Last seen: 4 years 2 months ago

1 Answer:


Within the report, I believe you use java-based syntax, for example:

OR($F{field}.equals("Value1"), $F{field}.equals("Value2") )

I think the $X{IN, $F{field}, $P{param}} syntax is only used when filtering an Input Control (the server-side object, not the corresponding parameter in the studio report), or if you want to use a Filter Expression in the Dataset and Query Dialog.

dstevens_2's picture
Joined: Jun 20 2017 - 8:32am
Last seen: 1 year 5 months ago