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

$X IN a substring of a column value


chaddn

Recommended Posts

I need to construct a query that uses the $X IN function but I don't want the parameter value to match the entire value of the field, only a selected portion of it.  So ideally the query would include the following in the where clause:

$X{IN,left(columnname,4),paramname}

So basically I want to select where the left 4 characters of the column match my parameter values (it's a collection).  Of course this doesn't work because Jasper is expecting only the column name and gets hung up on the comma before the 4 (it thinks 4 is the parameter name). Does anyone have any ideas how to accomplish this?  I've looked through the documentation for $X and haven't found any examples of this scenario.

Thanks,

Chadd

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

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...