|Oracle® Fusion Middleware Oracle Reports User's Guide to Building Reports
11g Release 1 (11.1.1)
Part Number B32122-01
The steps in this section will show you how to add conditional formatting so that salaries greater than or equal to $10,000 will be highlighted in bold, red text, and salaries between $4,999 and $10,000 will be highlighted in bold text.
Since the data retrieved cannot be both greater than or equal to $10,000 and between $4,999 and $10,000, you will need to create two separate format exceptions. In this section, you will see how to create each distinct format exception.
To add conditional formatting:
In the Paper Design view, right-click the Salary column of data (not the Salary column heading), then choose Conditional Formatting.
In the Conditional Formatting dialog box, click New to create a new Format Exception.
In the Format Exception dialog box, make sure SALARY is selected.
Next to SALARY, choose Greater Than or Equal from the list.
In the next box, type
Under Format, click the icon next to Text Color to display the color palette.
Note:You can choose as many options as you want in the Format Exception dialog box, such as text color, style, and font.
Click Font, then choose Bold.
Click OK to accept the new font style.
You should now see the following options selected in the Format Exception dialog box:
Figure 22-5 Format Exception dialog box
In the Conditional Formatting dialog box, click New to create your second format exception.
Create a format exception where the values of the SALARY column are between $4999 and $10000 are highlighted in bold.
Note:Make sure you type the values in the order described, so that Reports Builder knows to highlight the data between $4999 and $10000, and not $10000 and $4999.
When you are done, click OK. The Conditional Formatting dialog box should now look like the following:
Figure 22-6 Conditional Formatting dialog box
Click Apply, then click OK. Your report displays in the Paper Design view, and should now look something like this:
Figure 22-7 FInal Conditional Formatting report
Save your report as