How to Create Button in OAF Page Programmatically or Dynamic
This is recommendable by Oracle to do no changes in the OAF page directly. To make nay direct changes in the OAF standard page is not advisable by the Oracle but some time , We need to do changes in the Page layout to match the business requirement. For these kind of scenarios , We can change the page layout through Controller Extensions and with the Help of OAF Personalizations. In this Post , I will show you , how we can create OAF Submit button in OAF Page through Controller Extension. I an sharing the controller code to create the Button in OAF Page Programmatically or Dynamically.
You have to Put this code under processRequest() method of your Controller.
How to Create Button in OAF Page Programmatically or Dynamic
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
OASubmitButtonBean NewSubmitButton= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
{
super.processRequest(pageContext, webBean);
OASubmitButtonBean NewSubmitButton= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
subBtn.setID("NewSubmitButton");
subBtn.setUINodeName("NewSubmitButton");
subBtn.setEvent("Submit");
subBtn.setText("Go "); /*Go will be displaced on this Button' You can also write other Buttons too.
RegionName.addIndexedChild(NewSubmitButton); /*This code will add the Go button in the Page Region. RegionName is the Actual name of your OAF Page Region'
}
How to Create Button in OAF Page Programmatically or Dynamically.
1 comments:
your blog is really informative and helpful for me @ Rainbow Training Institute.
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training
Oracle Fusion Financials Online Training
Oracle Integration Cloud Online Training
Oracle Fusion Technical Online Training
Post a Comment