Wednesday, 27 June 2018

OAF Submit button event

OAF Submit button event



When user click on the Button in the OAF page, then OAF Submit button event fires in the Background. So, when we want to execute some code when the user clicks on the Button in the OAF page, then we need this OAF submit event. We put our custom code under this event in the Controller of the OAF page. We put this code under Controller in the Process from Request Method of the controller. 

 

We first need to find the This event in the controller and when this event will be executed then our custom code inside this event will be executed.

Here below I am sharing the Code to find the OAF submit event and then I will put some code inside it. We will put this code under Process Form request method of the controller.

 OASubmitButtonBean xxbuttonhandle = (OASubmitButtonBean) webBean.findChildRecursive(“xxbuttonhandle”);

 
Step 3: Now using the xxbuttonhandle handle created in step 2 we can capture the click of xxbuttonhandle

This is here we will write code for Submit button , when user will click the Button then this below code will be executed.

if(pageContext.getParameter(xxbuttonhandle!= null)

{
// perform required steps

OAF Submit button event
 

 

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *