Jump to content
We've recently updated our Privacy Statement, available here ×

Ternary operator or IF() function doesn't work in parameter's expression.


anachii86

Recommended Posts

I added an expression to a parameter which I put inside select (query). And my expression looks like:
ExpressionEditor_2(1).jpg.53331c06dfa34d1ec834687d04821984.jpg

When I generate report in my JasperStudio all is ok, however when I try to generate report on server (local or remote) it always enters in false condition and doesn't filter by selected (provided) value. When I put just "and any item in orgs.path.to.property satisfies item.value = '$P!{tp}' end" (which is under the true condition) all is ok.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

When some parameters are used in expressions the parameters' order in which they were created metters! If the expression, which contains Param1, is used in Param2 and in parameters the Param2 stays before Param1 then this expression will not work, because Param1 isnot existed. I personaly think that this is like a flow and should be corrected. Moreover, this peroblem doesn't exist in JasperStudio, just on server.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...