christmoney1 Posted June 19, 2021 Share Posted June 19, 2021 Hello everybody, i've this message error type mismatch: cannot convert from boolean to Object from this expression $P{Program}==null || ($P{Program}!=null && $F{programme}.equalsIgnoreCase( $P{Program} )) When i click on the buton preview to see my report. There is someone who can help me for this?Sincerely Link to comment Share on other sites More sharing options...
gustavofarias Posted June 19, 2021 Share Posted June 19, 2021 The result of the expression is boolean. But you must be putting it in an element of type object.Also, this is enough:$P{Program} == null || $F{programme}.equalsIgnoreCase( $P{Program} ) Link to comment Share on other sites More sharing options...
christmoney1 Posted June 20, 2021 Author Share Posted June 20, 2021 Hi Gustavofarias.Thank you very much for your help.I've changed the class element to the type Object as you may see on the screenshot attached.But the probléme is not resolved. I have the same error: type mismatch: cannot convert from boolean to ObjectCould you tell me in détail where can i do this? The result of the expression is boolean. But you must be putting it in an element of type object.Sincerely. Link to comment Share on other sites More sharing options...
gustavofarias Posted June 20, 2021 Share Posted June 20, 2021 I see no attachment. In fact you shouldn't change it to Object but to 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