Hi all like in forms there is no declarative way to group Radio Buttons in OAF we have to group them dynamically some sample working code
import oracle.apps.fnd.framework.webui.beans.message.OAMessageRadioButtonBean;
just import this package
OAMessageRadioButtonBean rb1 = (OAMessageRadioButtonBean)webBean.findIndexedChildRecursive("RadioBtn1");
OAMessageRadioButtonBean rb2 = (OAMessageRadioButtonBean)webBean.findIndexedChildRecursive("RadioBtn2");
rb1.setName("ChoiceRadioGroup");
rb2.setName("ChoiceRadioGroup");
rb1.setValue("New");
rb2.setValue("Update");
rb1.setSelected(true);
where RadioBtn1,RadioBtn2 are the id of the Radio Buttons
to get selected value
String radioGroupValue = pageContext.getParameter("ChoiceRadioGroup");
In above Example String radioGroupValue will be New,Update on selecting the First and Second radio buttons respectively
import oracle.apps.fnd.framework.webui.beans.message.OAMessageRadioButtonBean;
just import this package
OAMessageRadioButtonBean rb1 = (OAMessageRadioButtonBean)webBean.findIndexedChildRecursive("RadioBtn1");
OAMessageRadioButtonBean rb2 = (OAMessageRadioButtonBean)webBean.findIndexedChildRecursive("RadioBtn2");
rb1.setName("ChoiceRadioGroup");
rb2.setName("ChoiceRadioGroup");
rb1.setValue("New");
rb2.setValue("Update");
rb1.setSelected(true);
where RadioBtn1,RadioBtn2 are the id of the Radio Buttons
to get selected value
String radioGroupValue = pageContext.getParameter("ChoiceRadioGroup");
In above Example String radioGroupValue will be New,Update on selecting the First and Second radio buttons respectively
No comments:
Post a Comment