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

How to display TRUE if my field value is 1


technicalguy

Recommended Posts

Hi

I am new to jReports and I am trying to write an expression. The underlying field is INT and it stores 1 or 0 I would like to display on the reoprt TRUE if the value is 1 and FALSE if the value is 0.

How may this be done please.

Ivan



Post Edited by icarey at 04/06/2011 11:58
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Thans everyone.

I can now display this on the report. I am using the XML generated file and parse it to phpjasperxml which then uses fpdf to produce a pdf of the report. When using an expression to dipslay TRUE FALSE the field appears blank on the pdf. If i just leave the feild as is it displays 1 or 0. I would like to be able to display in the pdf TRUE or FALSE.

I have been able to display on the pdf as I require by placing an IF in the SQL select statment

IF(`WorkRelated` = 1, 'TRUE', 'FALSE')

Ivan



Post Edited by icarey at 04/09/2011 03:06
Link to comment
Share on other sites

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