Wednesday, August 8, 2012

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 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

Tuesday, August 7, 2012

OAF Related Posts

Hi All,

I am Manoj Kumar experienced OAF Developer

Hence forth OAF related sample codes and related posts will be posted here.