[Solved] REPORT with field type [YES/NO]boolean
Posted: Tue Apr 29, 2008 4:00 pm
I have a table with a field type [YES/NO]boolean
when I open the table and create a record I can check the box or not
finally I have a report that show:
fieldName: TRUEif I checked the box or fieldName: FALSE if I didn't
In the report I wanna put a different word instead TRUE or FALSE ( if I checked YES , otherwise NO)
Is it possible?
How? maybe creating a query (the report is based on a query)
Maybe I've to edit the report, select the field, and in properties- data tab - data field type - user defined function
¿where can I create this user defined functions?
thanks
THE SOLUTION is by this query:
SELECT "FIELD_BOOL", CASEWHEN( "FIELD_BOOL" = False, 'NO', 'YES' ) FROM "TABLE_BOOL"
when I open the table and create a record I can check the box or not
finally I have a report that show:
fieldName: TRUEif I checked the box or fieldName: FALSE if I didn't
In the report I wanna put a different word instead TRUE or FALSE ( if I checked YES , otherwise NO)
Is it possible?
How? maybe creating a query (the report is based on a query)
Maybe I've to edit the report, select the field, and in properties- data tab - data field type - user defined function
¿where can I create this user defined functions?
thanks
THE SOLUTION is by this query:
SELECT "FIELD_BOOL", CASEWHEN( "FIELD_BOOL" = False, 'NO', 'YES' ) FROM "TABLE_BOOL"