Right click on Applications and select New OA Workspace.

Set the following for the project:
|
Name – ColorRows Default Package – cholaclr.oracle.apps.fnd.color |
Select Chola as the database connection and click Next.
Set the below properties for the run time connection
|
DBC File Name - UserName – sysadmin Password – sysadmin Application Short Name – FND Responsibility Key - APPLICATION_DEVELOPER |
Right click on the project and select new → ADF Business Components → Application Module.
Set the below properties
|
Name – ColorAM Package – cholaclr.oracle.apps.fnd.color.server |

Click Next and Finish.
Right click on the project and select new → ADF Business Components → View Object.
|
Name – ColorVO Package – cholaclr.oracle.apps.fnd.color |
Click Next. Go to the SQL statement window and paste the below query:
| VO Query | |
1 |
|
Click Next.
Check the mappings for the attributes.

Uncheck the java file for ColorVOImpl.java and check the ColorVORowImpl.java.

Right click on ColorAM and shuttle the CholaVO to the right side.

Right click on the project select New. In the Web Tier → OA Components → Page.
|
Name – SearchColorPG Package – cholaclr.oracle.apps.fnd.color.webui |

Click on page and in the structure click on region1 and set the following properties for the region:


|
Id – PageLayoutRN AM Definition – cholaclr.oracle.apps.fnd.color.server.ColorAM Window Title - Chola's Search Page Page Title – Search Page |
Right click on PageLayoutRN and select new → Region.
Set the following properties for the region.
|
ID – QueryRN Region Style – query Construction Mode - resultsBasedSearch |
Right click on QueryRN and select new → Region Using Wizard.
Select the ColorAM from the drop down and select ColorVO and click Next.

Set the Region ID to ResultsTable and set the Region Style to table.

Shuttle Ename, Empno, Job, Sal, Deptno to the right side and click Next.

Change the item style to messageStyledText for all the attributes.

Click Next and Finish.
Right click on PageLayoutRN and click New region.
|
Name – ResultsTable Region Style – advancedTable Width – 75% View Instance - ColorVO1 |
Right click on ResultsTable and click new Column.
Drag and drop the Empno from the table region inside the column1.
Right click on columnHeader and select new → soratableHeader. Set the text to Emp No.
Click on Empno and Set the searchAllowed property to True.
Right click on ResultsTable and click new Column.
Drag and drop the Ename from the table region inside the column2.
Right click on columnHeader and select new → soratableHeader. Set the text to Emp Name.
Click on Ename and Set the searchAllowed property to True.
Right click on ResultsTable and click new Column.
Drag and drop the Job from the table region inside the column3.
Right click on columnHeader and select new → soratableHeader. Set the text to Job.
Click on Job and Set the searchAllowed property to True.
Right click on ResultsTable and click new Column.
Drag and drop the Sal from the table region inside the column4.
Right click on columnHeader and select new → soratableHeader. Set the text to Salary.
Click on Sal and Set the searchAllowed property to True.
Right click on PageLayoutRN and click set New Controller.
In the processRequest method write the below Code
| processRequest Code | |
1 |
OAAdvancedTableBean table = (OAAdvancedTableBean)webBean. |
Save your work.
Our aim is to change the background color of Job column depending on the value of job. So we need to specify which color to change on which value. So we need to change the custom.xss file and set the background color property.
Go to C:\CholaJdev\jdevhome\jdev\myhtml\OA_HTML\cabo\styles.
Edit custom.xss and paste the below Code:
| Custom.xss | |
1 |
<style selector=".1"> |


Enter % on the Emp Name field and click Go.
You can notice that the Job column having Manager as the value is having a different color and other columns are having a different color.
