jkeri Posted December 13, 2016 Share Posted December 13, 2016 I want to control printing of my DETAIL band with a condition. IF PARAMX = 'Y' then print the detail band OR (IF FIEILDX ="PrintMe" and PARAMX = "N") then also print the detail band Link to comment Share on other sites More sharing options...
reportdev Posted December 13, 2016 Share Posted December 13, 2016 use this expression on the print when expression of detail band:$P{PARAMX}.equals("Y") ? true :$F{FIEILDX}.equals("PrintMe") && $P{PARAMX}.equals("N")? true : false Link to comment Share on other sites More sharing options...
jkeri Posted December 14, 2016 Author Share Posted December 14, 2016 I am getting an error (CANNOT CAST FROM BOOLEAN TO BOOLEAN). Link to comment Share on other sites More sharing options...
hozawa Posted December 14, 2016 Share Posted December 14, 2016 Which version of Jaspersoft Studio are you using? If you're using iReport, that's no longer supported so suggest that you switch to Jaspersoft Studio. For your question, take a look at the following thread:http://community.jaspersoft.com/questions/517407/why-error-cannot-cast-boolean-boolean 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