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

Replace True/False to Yes/No in Boolean?


markos17

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Thanks for reply. Anyway, I still have problems with that. I've tried to use Your syntax in report, eg.

$F{(Field_1 == Boolean.TRUE ? "Yes":"No")}

 

or in SQL:

SELECT xyz

FROM XYZ .abc

WHERE

Field_1 == Boolean.TRUE ? "Yes":"No"

 

and still get errors messages. Where should I set this syntax?



Post Edited by markos17 at 08/12/2009 13:37
Link to comment
Share on other sites

I am giving up :) all the time I get message: "Cannot cast from String to Boolean".

The thing is, that Boolean class is set in my_field: ($F{my_field}==Boolean.TRUE?"Yes":"No")

I also tried to use variable, all the time the same error.

 

EDIT:

Problem solved. I had to change class of the field in report into String.



Post Edited by markos17 at 08/13/2009 12:02
Link to comment
Share on other sites

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