Part2 Dynamic Color change in OA Framework
Hi Friends , this is the Second and Last part of Dynamic Color change in OA Framework. Here below is the First part of LOV creating in OAF Page.
Click on the "Region2".On the right hand side In the property inspector we will set some properties.
Region Style=query.
Construction Mode=resultsbasedsearch.
Now Right Click on the "Region2" and then new and then click region.
Then "Region3" has creted under "Region2".
Click on "Region3" and then go to right hand side in the "Property Inspector".Replace the name of "Region3" with "ChecksVO" and region style "table".
ID=ChecksVO.
Region Style=table
Now right click on "ChecksVO".Click New=>Click Item
Then Item1 has created under region "ChecksVO".
Now Click on "Item1" and then go to right hand side in the "Property Inspector".Replace the name of "Item1" with "BankAccountName" and Item style "messagestyledtext".
ID= BankAccountName
Item Style="messagestyledtext"
View Instance=ChecksVO
View Attribute=BankAccountName
Then Below item with named "BankAccountName" has created as below.
Same Like above create another 3 items.and set the property as below.
For Item1
ID=VendorName
Item Style=messagestyledtext.
Search Allowed=True
View Instance=ChecksVO
View Attribute=VendorName
For Item2
ID=Amount
Item Style=messagestyledtext.
View Instance=ChecksVO
View Attribute=Amount
For Item3
ID=StatusLookupCode
Item Style=messagestyledtext.
View Instance=ChecksVO
View Attribute=StatusLookupCode
Now we will start our coding Part.To write a code we have to create "Controller" as below.
Right Click on "Region1" and then Select "Set New Controller".
Enter the Controller Name="RohitOafColorCO"
Package="rohit.oracle.apps.fnd.RohitOafColor.webui"
According to the OAF standard controller has creater under the webui of the project directory as shown above. Click Ok.
The Code is Here:-
Import Classes:
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
import oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean;
import oracle.apps.fnd.framework.webui.beans.table.OAColumnBean;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
Put the below code under the "Process Request" block of the Controller.
super.processRequest(pageContext, webBean);
OATableBean table = (OATableBean)webBean.
findIndexedChildRecursive("ChecksVO");
OAMessageStyledTextBean job = (OAMessageStyledTextBean)table.
findIndexedChildRecursive("StatusLookupCode");
OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(job,"Status");
job.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
Now Right Click on Project "RohitOafColor" => Click Rebuild.
Now Right Click on Project "RohitOafColor" => Click Run.
OUTPUT IS BELOW .
If you want to see Other OAF Related Posts , Please visit Below URL.
https://rpforacle.blogspot.in/2013/03/oaf_10.html
1 comments:
Hi,
I have parameter in vo query.I am getting error in process request as this is not getting the paramter value.How I can use this.
Post a Comment