Tuesday, 25 September 2018

How to get checkbox value in oaf

How to get checkbox value in oaf

In this post , We will discuss about How to get checkbox value in oaf. When user click in the Check box on the OAF page then we need to take care this in our OAF page controller code to get checkbox value from oaf page. We first need to find the Checkbox item in the OAF page and then get the value from that. Here below I will share the sample code for how to get checkbox value in oaf.
 
 
Step the below properties for Check Box Item
 
How to get checkbox value in oaf

 
 
 
Create the Controller of the OAF Page and Put the below code in the Process Form Request method of the Controller.
 
 
OAMessageCheckBoxBean CheckBoxBean
(OAMessageCheckBoxBean)webBean.findChildRecursive("item1");


Object ChkBoxObj = CheckBoxBean.getValue(pageContext);


String CheckBoxValue = ChkBoxObj.toString();
/* now we can put Condition based on the Value select */
if CheckBoxValue='4' -- for Checked and 5 for Unchecked---
Condition
 
end if;

0 comments:

Post a Comment

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

Name

Email *

Message *