Wednesday, 27 June 2018

How to capture button click event in oaf

How to capture button click event in oaf

We use 'OASubmitButtonBean' to capture the Button click event in the OAF. We used this bean to find the button click event occurred in the OAF page. When user Click on the button in the OAF page , then this OASubmitButtonBean event occur in the OAF. When we want to write some code under this button , or want to execute specific operation when user will click on the button , then first we need to capture the Button Click event in the OAF and once we got the Button click event handle then we write our custom code under this event.
 
Here below I am sharing the Capture Button click Event in the OAF , We need to put this code under in the Process Request Method of the Controller in the OAF Page.
 
 

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)
{
//Write the Code When the Button will be clicked by the User.
 
 
 
}


How to capture button click event in oaf
 
 
 

 

0 comments:

Post a Comment

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

Name

Email *

Message *