jkeri Posted April 19, 2018 Share Posted April 19, 2018 In my Excel i have a field called 'LOCATION'.and 'TXTYPE in the Jasper report and both are defined as 'java.lang.String'.I have a parameter called P_LOCATION and it is defined as Java.util.List. My 'FILTER EXPRESSION' is((ArrayList) $P{REPORT_PARAMETERS_MAP}.get( "P_CENTER" )).contains($F{Cardholder Identifier}.toString())which allows the user to enter one or more calues for the parameter P_CENTER. This is working as I expected.But now my user wants to also exclude where the first two characters of TXTYPE = 'R-'What I dont know is what the 'FILTER EXPRESSION' statement should be. Link to comment Share on other sites More sharing options...
szaharia Posted April 20, 2018 Share Posted April 20, 2018 Try((ArrayList) $P{REPORT_PARAMETERS_MAP}.get( "P_CENTER" )).contains($F{Cardholder Identifier}.toString()) && ($F{TXTYPE} == null || !($F{TXTYPE}.startsWith("R-"))) Link to comment Share on other sites More sharing options...
jkeri Posted April 20, 2018 Author Share Posted April 20, 2018 Excellent!!! thank you for your help.. greatly appreciated Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now