I'm trying to get the Report Builder to format a field based on the contents of another two fields, but no success. I'm struggling to understand how the syntax works for it.
I need one field that is true and another that is false to trigger setting the formatting to italics. Can anyone post any suggestions on the syntax I need to use?
Many thanks.
[Solved] Conditional Formatting Using Report Builder
[Solved] Conditional Formatting Using Report Builder
Last edited by Hagar Delest on Thu Mar 26, 2015 5:09 am, edited 1 time in total.
Reason: tagged [Solved].
Reason: tagged [Solved].
Mokonzi
OpenOffice 4.1.1 on Windows 7
OpenOffice 4.1.1 on Windows 7
Re: Conditional Formatting Using Report Builder and Expressi
- Attachments
-
- Report_conditional_formatting.odb
- (24 KiB) Downloaded 812 times
- MMove 1.0.6
- Extension for easy, exact positioning of shapes, pictures, controls, frames ...
- my current system
- Windows 10 AOO, LOLinux Mint AOO, LO
Re: Conditional Formatting Using Report Builder and Expressi
Awesome. Thanks for the help matey.
Mokonzi
OpenOffice 4.1.1 on Windows 7
OpenOffice 4.1.1 on Windows 7
Re: [Solved] Conditional Formatting Using Report Builder
Maybe someone can help me...
What will the code be if I would like to change the color of one column if another column is equal to 'aaa' or her value is TRUE
for axample, TRUE([column2]) in conditional formating of column1 does not working....
What will the code be if I would like to change the color of one column if another column is equal to 'aaa' or her value is TRUE
for axample, TRUE([column2]) in conditional formating of column1 does not working....
LibreOffice 4.2 on Windows7
Re: [Solved] Conditional Formatting Using Report Builder
In a database you can not have 'aaa' or TRUE in the same column. Either you have strings or booleans in the same column but not both.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] Conditional Formatting Using Report Builder
Yes, i know.
I want to change the color of one column if another column is equal to 'aaa' . If this is not possible, i can change 'aaa' in a source of query to boolens.
I want to change the color of one column if another column is equal to 'aaa' . If this is not possible, i can change 'aaa' in a source of query to boolens.
LibreOffice 4.2 on Windows7
Re: [Solved] Conditional Formatting Using Report Builder
Open the example database provided by F3K Total.
Right-click>Edit the report.
Select the field with content =N
menu:Format>Conditional...
Expression is (not "value is"):
This expression returns True if the value in the column named B1 is True AND the value in the column named B2 is NOT True, in short: if B1 AND NOT B2.
This is aalmost exactly what you want.
Select the field with content =B1
menu:Format>Conditional...
Expression is (not "value is"):
and add some visible formatting attribute.
This most simple expression fails to apply some color to field B1 where the text in N equals BBBBB
This feature looks very much like Calc's conditional formatting but with column names in brackets instead of cell addresses. Spreadsheet formulas put literal strings in double-quotes.
This expression returns true when field N has the text BBBBB and applies my formatting to the selected field B1.
Right-click>Edit the report.
Select the field with content =N
menu:Format>Conditional...
Expression is (not "value is"):
Code: Select all
AND([B1];NOT([B2]))
This is aalmost exactly what you want.
Select the field with content =B1
menu:Format>Conditional...
Expression is (not "value is"):
Code: Select all
[N]='BBBBB'
This most simple expression fails to apply some color to field B1 where the text in N equals BBBBB
This feature looks very much like Calc's conditional formatting but with column names in brackets instead of cell addresses. Spreadsheet formulas put literal strings in double-quotes.
Code: Select all
[N]="BBBBB"
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] Conditional Formatting Using Report Builder
That's exactly what I meant, thank you for the perfect explanation.
LibreOffice 4.2 on Windows7