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
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"
Step the below properties for Check Box Item
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");
(OAMessageCheckBoxBean)webBean.findChildRecursive("item1");
Object ChkBoxObj = CheckBoxBean.getValue(pageContext);
String CheckBoxValue = ChkBoxObj.toString();
Condition
end if;
0 comments:
Post a Comment