Programmatically Adding the Fire
Partical Action to a Bean
import oracle.cabo.ui.action.FireAction;
import oracle.cabo.ui.action.FirePartialAction;
OAMessageChoiceBean mb=(OAMessageChoiceBean)webBean.findChildRecursive("BeanId");
FireAction firePartialAction = new FirePartialAction("DelAction");
mb.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
Gruoping
Radio Buttons in OAF
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)webBean.findIndexedChildRecursive("RadioBtn1");
OAMessageRadioButtonBean rb2 = (OAMessageRadioButtonBean)webBean.findIndexedChildRecursive("RadioBtn2");
rb1.setName("ChoiceRadioGroup");
rb2.setName("ChoiceRadioGroup");
rb1.setValue("New");
rb2.setValue("Update");
OAMessageRadioButtonBean rb1 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)webBean.findIndexedChildRecursive("RadioBtn1");
OAMessageRadioButtonBean rb2 = (OAMessageRadioButtonBean)webBean.findIndexedChildRecursive("RadioBtn2");
rb1.setName("ChoiceRadioGroup");
rb2.setName("ChoiceRadioGroup");
rb1.setValue("New");
rb2.setValue("Update");
OAMessageRadioButtonBean rb1 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