What is controller in oaf
Controller is the Place where we put our Business Logics and the business validations based on this , OAF page executes in the Oracle Application. This is the Coding or Developer area in the OAF architecture. Controller responds user action and maintain  application flow. This is the place where we put our business validations and logics which executes during page loads and page events. We recognize controller in OAF with CO. In the controller , we put if-else's to meet the business validations and the business requirements.  
Controller contains two Blocks. We write our business  logic in the controller. It helps to put validation and to meet out our  business logic.  
 Process Request: When the OAF page loads then process  request method will fire. So if we want to initialize some default  values when the page load put this under Process Request. The Code written inside this Method execute only single time when the OAF page will be open or Load.
 
 Process form Request: When we press the button, Process form request executed. So if we want to execute some code after user press the Submit button  we will put under this block or we can say , if any event occur in the OAF Page then this Process form Request Methods executed. So the Code written inside can be execute multiple times based on the events occurs. For Example When user click the Button , When user Select the LOV , or When user Select the Pick list value in the OAF page.

0 comments:
Post a Comment