Tuesday, 25 September 2018

How to set checkbox checked in oaf

How to set checkbox checked in oaf

In this post , We will discuss about How to set checkbox checked in oaf. If we have an requirement in the OAF page to show the Check Box by default checked then we need to set some properties in the Checkbox item of the OAF page. In this post , I will share the complete steps to create the Check box item in the Oaf page and How to set checkbox checked in oaf.
 
 

4 Important Things for How to set checkbox checked in oaf

Initial Value : Y
Initially Checked : True
How to set checkbox checked in oaf
 
 
 
Here below I will share the complete steps to Create the Check Box in the OAF Page.
 
Step1:- Create the OAF Page,
Step2:- Create One New Item in the OAF Page,
Step3:- Change the style of the Item to the "messageCheckBox"
 
How to set checkbox checked in oaf
 
 
 
Step the below properties for Check Box Item
 
How to set checkbox checked 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 *