02 March, 2012

Set Initial Focus on item in OAF Pages

You can set initial focus in page on certain item.

Suppose that need to set focus on item ( XXX_EMP_NAME ), then you should add below code in processRequest() method in Controller class


 public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)  
 {  
   super.processRequest(oapagecontext, oawebbean);  
   
   OABodyBean oabean = (OABodyBean)pageContext.getRootWebBean();  
   oabean.setInitialFocusId("XXX_EMP_NAME");  
 }   
 
Don't forget to add below import to Controller class
import oracle.apps.fnd.framework.webui.beans.OABodyBean;
 
Mahmoud Ahmed El-Sayed

No comments:

Post a Comment

ADF : Scope Variables

Oracle ADF uses many variables and each variable has a scope. There are five scopes in ADF (Application, Request, Session, View and PageFl...