Disabling radio button

Hi,
I'm new to the forums and not sure i'm posting in the right place.
This is my problem. I'm writing a simple vending machine, using the factory pattern, that dispenses tea and coffee. When i reset the UI if there aren't any teas i disable the button. but if its already selected and they press vend even diabled it says it vend. i need to some how de select it. I thought about .doClick on to coffee then if i run out of that its the same problem again.
This is how it looks at the minute.
if (this.teas == 0) // disable tea if there is non
beverageButtons.getJRadioButtonTea().setEnabled(false);
any help would be appriciated.
thanks

sorted now. just added an invisble button and clicked that :)

Similar Messages

  • Control disable radio button

    is there any resource or sample that shows how to disable radio button from action class? I am trying to avoid java code inside the JSP page. I know that the attribute disable="false" disables radio button, but I am wondering if there is a way to set that attribute in the action class. If someone knows, please teach me how to do it. It would be very grateful.

    no, cuz that disable="false" is Javascript, which runs in the client side and has nothing to do with the server side.

  • Disable Radio button in a Radio Group

    I have a radio group wiht four radio buttons. I would like to diable one of three radio buttons based on specific condtions. For rdisabling the radio group I use the syntax
    SET_ITEM_PROPERTY('BLOCKNAME.RADIOGROUP',ENABLED,PROPERTY_FALSE);
    Please help me with the syntax to disable only one button from the radio group
    thanks

    BEGIN
         SET_RADIO_BUTTON_PROPERTY('BLOCK3.RADIO','R1',ENABLED,PROPERTY_FALSE);
    END;where BLOCK3.RADIO references your radio group and R1 references the radio button you want to disable :)
    Regards
    Carlos

  • How to enable a disabled radio button????

    Hi here is the problem i have, i have a number of radio buttons contained in a buton group, all the buttons bar the first one are disabled. The buttons are all drawn on a JPanel. What i want to be able to do is once the enabled button has been selected, I want to enable the next button in the gropu and also then disable the one that was previously enabled. Is there any way i can do this, below is the code i have for setting the group up, and trying the above probelm. Any help much appreciated Thanks.
    /* Function creates a radio button and adds it to the button group */
         public JRadioButton getRadioButton(String myString, boolean val)
              JRadioButton myButton=new JRadioButton(myString);
              myButton.setActionCommand(myString);
              myButton.addActionListener(myListener);
              myButton.setEnabled(val);
              group.add(myButton);
              return myButton;
    //adds the radio buttons to the panel, for each transition */
         public void addTranPan()
                   for(int i = 0; i < dCreate.char2.size(); i ++)
                   if (i == 0) mPanel.add(getRadioButton(dCreate.char2.elementAt(0).toString(),true));
                   else
    mPanel.add(getRadioButton(dCreate.char2.elementAt(i).toString(),false));
    public void ChangeButtonState()
    Component [] components = getContentPane().getComponents();
              for (int i = 0; i < components.length; i++)
                   Component c = components;
                   if (c instanceof JRadioButton)
                   JRadioButton rb = (JRadioButton) c;
                   rb.setEnabled(false);
                   if (c.getName().equals(ch)) //find button to enable
                   JRadioButton rb = (JRadioButton) c;
                   rb.setEnabled(true);
                   break;
              mPanel.repaint();

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class sol21 extends JFrame implements ItemListener {
    JRadioButton
       radio1 = new JRadioButton("One"),
       radio2 = new JRadioButton("Two"),
       radio3 = new JRadioButton("Three"),
       radio4 = new JRadioButton("Four");
      JRadioButton[] radios = {
        radio1, radio2, radio3, radio4
      int INITIAL_ENABLED = 0;
      public sol21() {
        ButtonGroup group = new ButtonGroup();
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.insets = new Insets(5,0,5,0);
        gbc.anchor = gbc.WEST;
        gbc.gridwidth = gbc.REMAINDER;
        for(int j = 0; j < radios.length; j++) {
          radios[j].addItemListener(this);
          group.add(radios[j]);
          panel.add(radios[j], gbc);
          if(j == INITIAL_ENABLED)
            continue;
          radios[j].setEnabled(false);
        setContentPane(panel);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(300,200);
        setLocation(300,200);
        setVisible(true);
      public void itemStateChanged(ItemEvent e) {
        JRadioButton button = (JRadioButton)e.getItemSelectable();
        if(e.getStateChange() == ItemEvent.SELECTED) {
          int index = 0;
          for(int j = 0; j < radios.length; j++)
            if(radios[j] == button)
              index = j;
          radios[(index + 1) % radios.length].setEnabled(true);
          if(index == 0)
            index = radios.length;
          radios[(index - 1) % radios.length].setEnabled(false);
      public static void main(String[] args) {
        new sol21();
    }

  • Disabling Radio Button Conditionally is not working Well

    Hi friends,
    I have three radio buttons
    <li>self
    <li>New Hire
    <li>On Behalf of
    I will be showing this radio button conditionally according to the user who logs into the application.
    Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
    Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
    If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
    I have restricted those radio buttons according to the users who enter into the application using their roles.
    But my challenge here is once the user logged in and if he select anyone of the radio button means,
    Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
    disable(vice versa).
    I have also achieved the same using the DA.
    With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
    (NH,OB,S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
    For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
    Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
    the source of my radio button in my DA only when the three options are present.
    How i can solve this issue for the user who is having this two radio option or one radio option.
    Hope you understood clearly about the problem.
    Brgds,
    Mini

    Hi,
    If I did understand what you like have this might work
    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME

  • HTML embedded in PL/SQL Package (disable radio button)

    I have a package that has the below piece of code but am trying to disable the button created by the 2nd line below. I have written the 3rd line but wanted to know is this the correct tag? Can the disabling be done in the 2nd line without having to write another line of code?
    htp.TableRowOpen;
    htp.TableData(htf.formradio('v_rpt_type','18')||'18) Individual PRA Form', 'LEFT');
    --<input type="radio" value="18) Individual PRA Form" DISABLED>;
    htp.TableRowClose;
    Thanks

    You can try:
       HTP.tableRowOpen;
          HTP.tabledata (HTF.formradio (cname            => 'v_rpt_type',
                                        cvalue           => '18',
                                        cchecked         => NULL,
                                        cattributes      => 'DISABLED'
                         || '18) Individual PRA Form',
                         'LEFT'
       HTP.tableRowClose;

  • Disabling radio buttons in multi record block

    Need to be able to disable/enable one or more radio buttons in a group dynamically in multiple record block. Tried setting enabled properties but it sets for all records in the block. At the very least, I need to reset an item using radio to previous value if setting is invalid but when-radio-changed has already set value. Thank you.

    Your one row record has 5 items, then I assume empno, ename, ssn, phone, deptno 5 items on your multi-record block.
    you entered first row record as,
    empno, ename, ssn, phone, deptno
    100 John Smith 123-45-9999 234-333-9999 2
    101 Al Brown 222-34-1111 123-456-7890 2(duplicated)
    You want your code to duplicate the second deptno record as 2 instead of typing in, right?
    If so, then you add KEY-NEXT-ITEM trigger on item :phone, inside put,
    go_item('deptno');
    duplicate_item;
    It will copy the first deptno record 2 for the second record as showed above.

  • Disabling radio button/ submit button while ppr is in process

    hi all,
    In our project we have a PPR event on radio buttons ie user can only select one address as primary out of 10 (let say).
    its working fine... but the problem is that the execution of ppr takes some time lets say 1-2 sec(fairly enough i suppose) and if user selects any other radio button or click on submit button page hangs up and an error (not the same error everytime) occured as the ppr has not been completed yet.
    We want to know if there is any way to disable or grey out those buttons (radio/submit) while page is rendering (ie ppr is executing) to restrict user from clicking those buttons.
    any help would be appreciated
    thanks in advance
    Shivdeep Singh

    Hi,
    Instead PPR on radio buttons, Use radiogroup for all the radio button and set intial value for one radio button to true.
    You can get the selected radio button value in processFormRequest by using following
    String radioGroupValue = pageContext.getParameter("RadioGroup");
    Thanks,
    Kumar

  • Why does disabling radio buttons change my formatted text size?

    When I recycle through a multiple choice quiz i have created,
    disabling the radio buttons also makes the label of the radio
    button resort to a (circa) point 12 font. There doesn't seem to be
    a way to get around this. Any advice?

    I guess you, like me, are a poor typist. There is a bug, but it only really shows up when you use the mouse to repeatedly position the cursor, or move around with the arrow keys.
    My "work around" is to press enter about three times as soon as I get into the typing space. Then if I accidentally go "past the end of the formating" it does not turn to rubbish. I did not realise I was doing the pressing of enter, as I wanted to get my signature out of my face while composing, but it appear to have had side benefits I just was not aware of.
    The other formatting hell you can get into is with text pasted from Microsoft Office. Any office suite can make things unpleasant for a while, but but the Microsoft product just stands out with it's references to Microsoft specific data structures and it's magical ability to make the mail ring the anti virus bell..

  • Programatt​icaly disabling radio button choices

    I was wondering if there was a way I could have a set of radio buttons that correspond to files in a database, and disable specific buttons when the corresponding file does not exist.  I only seem to be able to disable the whole radio set at a time.

    Jarrod / Darren:
    First, sorry for the thread hijacking but I'm interested in a more official NI response to a similar issue about converting array to cluster.  Perhaps it'll even be useful to this thread's originator.
    Summary: I have some typedef'ed clusters consisting entirely of Boolean LED's.  I did some processing based on converting cluster to array, performing some array-based operations, the converting back to cluster.  During development, the # of Booleans in the cluster would need to change.  Then I'd need to search out all the "array to cluster" conversions and enter the new size.  I wanted a method that didn't require manually changing all these hidden values.
    Through trial-and-error experience, I discovered a technique that seems to work reliably under LV 7.1.   I would typecast from an array of Booleans to a cluster of Booleans, using a typedef constant wired to the 'type' input.  It always produced the behavior I needed, but don't know if this would be a recommended practice or not.  Particularly, will this continue to work in 8.0?  Are there some gotchas I need to be aware of ?  Here's a link to my entry in an earlier thread. 
    -Kevin P.

  • Disable radio button

    hello,
    i have two radio buttons in my selection screen wherein each button has a corresponding screen. if i will click the first Rb i want that my 2nd Rb will be disabled, wherein u the user can not input/type anything at the selection screen of the Rb2.
    thanks,
    bryan

    Hi,
    U cannot disable the radiobutton,rather u can disable the fields when the radio button is selected ..
    for example when i click on radiobutton1 the fields under radiobutton2 will be disabled...this functionality we can achieve..
    check the below sample code for it..
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS :    p_aserv RADIOBUTTON GROUP grp
                 USER-COMMAND app,              "Application server
                 p_afile1 TYPE filename-fileextern , "Application File
                                                     "Name for contracts
                 p_afile2 TYPE filename-fileextern , "Application
                                                     "FileName for
                                                     "Long text
                 p_aerfl1 TYPE filename-fileextern , "Error File
                                                     "forcontracts
                 p_aerfl2 TYPE filename-fileextern , "Error File
                                                     "for Longtext
                 p_pserv RADIOBUTTON GROUP grp,     "Presentation Server
                 p_pfile1 TYPE rlgrap-filename ,    "Presentation File
                                                    "Name forcontracts
                 p_pfile2 TYPE rlgrap-filename ,    "Presentation File
                                                    "Name for long
                                                    "texts
                 p_errfl1 TYPE rlgrap-filename ,
                                                    "Error File for
                                                    "contracts
                 p_errfl2 TYPE rlgrap-filename .    "Err File Long text
    SELECTION-SCREEN : END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
    IF p_pserv IS  INITIAL.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_PFILE1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_PFILE2'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_ERRFL1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_ERRFL2'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          CASE screen-name.
            WHEN 'P_AFILE1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AFILE2'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AERFL1'.
              screen-input = 0.
              MODIFY SCREEN.
            WHEN 'P_AERFL2'.
              screen-input = 0.
              MODIFY SCREEN.
          ENDCASE.
        ENDLOOP.
      ENDIF.
    Regards,
    Nagaraj

  • Disabling radio button and only keep one active out of all...

    Hello Gurus,
    I have 4 radio button names as RD1. RD2, RD3 and in the last RD4.
    Now when user excutes the transaction, I want only RD3 to be selected and RD1, RD2 and RD4 to be inactive (greyed out). I tried couple of ways but its not happening.
    Please help.
    AT SELECTION-SCREEN OUTPUT.
      if sy-tcode = 'ZCUST'.
        loop at screen.
         if screen-name = 'RD1'. 
            screen-active = 0.
            MODIFY SCREEN.
          endif.
          if screen-name = 'RD2'. 
            screen-active = 0.
            MODIFY SCREEN.
          endif.
          if screen-name = 'RD4'.  
            screen-active = 0.
            MODIFY SCREEN.
          endif.
        endloop.
      endif.
    Regards,
    TGSHAH.

    Please use the below code. This works fine .. i have tested it ...
    thx
    PARAMETERS: p_unix1  TYPE  c RADIOBUTTON GROUP ft1 USER-COMMAND usr1 DEFAULT 'X',
                p_netw1  TYPE  c RADIOBUTTON GROUP ft1,
                p_netw2  TYPE  c RADIOBUTTON GROUP ft1,
                p_netw3  TYPE  c RADIOBUTTON GROUP ft1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
          IF screen-name = 'P_UNIX1'.
            screen-input = '1'.
           screen-active = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'P_NETW1'.
            screen-input = '0'.
           screen-active = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'P_NETW2'.
            screen-input = '0'.
           screen-active = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'P_NETW3'.
            screen-input = '0'.
           screen-active = '0'.
            MODIFY SCREEN.
          ENDIF.
          endloop.

  • Enable/Disable a radio button

    Hi All,
    We have a requirement as below:
    Freezing the radio buttons:Ex: Q.No.6 has 2 radio buttons as "Yes" and "No" and has a sub question say Q.NO# 6A.
    Q.NO# 6A also has 2 radio button as "Yes" and "No" and these should be freezed when ans---"NO" is selected for Q.No.6 and should get unfreezed when ans--> "YES" is selected for Q.No.6.
    For this I am created a VO with a transient variable of type Boolean.
    and using SPEL approach to disable radio buttons of Q.NO# 6A.
    Setting FirePartialAction on radio buttons of Q.NO# 6.
    I am facing some problem in coding:
    My CO is as below:
    In PR:
    DisableradBtnVOImpl vo_radio =(DisableradBtnVOImpl)am.findViewObject("DisableradBtnVO1");
    //vo_radio.executeQuery(); getting NUll pointer exception here as there is no query
    // Row requestRow_radio = vo.createRow();
    // vo.insertRow(requestRow_radio);
    requestRow_radio.setNewRowState(Row.STATUS_INITIALIZED);
    requestRow_radio.setAttribute("disableRadioButton5",Boolean.TRUE);
    OAMessageRadioButtonBean radio6= (OAMessageRadioButtonBean)pageContext.getPageLayoutBean ().findChildRecursive("rad61");
    oracle.cabo.ui.action.FirePartialAction FireAction_radio = new oracle.cabo.ui.action.FirePartialAction ();
    FireAction_radio.setEvent("enable6");
    FireAction_radio.setUnvalidated(true);
    radio6.setPrimaryClientAction(FireAction_radio);
    how will I use setAttribute().
    please guide me.
    Akshata

    Hi Prince,
    My PR code is below:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    System.out.println("****Wel come Page 2******");
    boolean isLoggingEnabled = pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT);
    String custName = pageContext.getParameter("customerName");
    String custNumber = pageContext.getParameter("customerNumber");
    String custId = pageContext.getParameter("customerId");
    Number numValue=null;
    try
    numValue = new Number(custId);
    catch(SQLException e)
    e.printStackTrace();
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    checkListVOImpl vo =(checkListVOImpl)am.findViewObject("checkListVO1");
    if(!vo.isPreparedForExecution())
    vo.executeQuery();
    // DisableradBtnVOImpl vo_radio =(DisableradBtnVOImpl)am.findViewObject("DisableradBtnVO1");
    OAMessageRadioButtonBean radio6= (OAMessageRadioButtonBean)pageContext.getPageLayoutBean().findChildRecursive("rad61");
    oracle.cabo.ui.action.FirePartialAction FireAction_radio = new oracle.cabo.ui.action.FirePartialAction ();
    FireAction_radio.setEvent("enable6");
    FireAction_radio.setUnvalidated(true);
    radio6.setPrimaryClientAction(FireAction_radio);
    String pageSave=pageContext.getParameter("OnClickSave");
    if((pageSave== null)|| "".equals(pageSave))
    Row requestRow = vo.createRow();
    vo.insertRow(requestRow);
    requestRow.setNewRowState(Row.STATUS_INITIALIZED);
    requestRow.setAttribute("CustomerName", custName);
    requestRow.setAttribute("CustomerNumber", custNumber);
    requestRow.setAttribute("CustomerId", numValue);
    requestRow.setAttribute("EnableRadio6",Boolean.TRUE);
    System.out.println("**************r1**********************");
    OAMessageRadioButtonBean yesRadio1 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad11");
    yesRadio1.setName("Resp1");
    yesRadio1.setValue("Y");
    OAMessageRadioButtonBean noRadio1 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad12");
    noRadio1.setName("Resp1");
    noRadio1.setValue("N");
    noRadio1.setSelected(true);
    System.out.println("**************r2**********************");
    OAMessageRadioButtonBean yesRadio2 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad21");
    yesRadio2.setName("Resp2");
    yesRadio2.setValue("Y");
    OAMessageRadioButtonBean noRadio2 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad22");
    noRadio2.setName("Resp2");
    noRadio2.setValue("N");
    noRadio2.setSelected(true);
    System.out.println("**************r3**********************");
    OAMessageRadioButtonBean yesRadio3 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad31");
    yesRadio3.setName("Resp3");
    yesRadio3.setValue("Y");
    OAMessageRadioButtonBean noRadio3 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad32");
    noRadio3.setName("Resp3");
    noRadio3.setValue("N");
    noRadio3.setSelected(true);
    System.out.println("**************r4**********************");
    OAMessageRadioButtonBean yesRadio4 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad41");
    yesRadio4.setName("Resp4");
    yesRadio4.setValue("Y");
    OAMessageRadioButtonBean noRadio4 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad42");
    noRadio4.setName("Resp4");
    noRadio4.setValue("N");
    noRadio4.setSelected(true);
    System.out.println("**************r5**********************");
    OAMessageRadioButtonBean yesRadio5 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad51");
    yesRadio5.setName("Resp5");
    yesRadio5.setValue("Y");
    OAMessageRadioButtonBean noRadio5 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad52");
    noRadio5.setName("Resp5");
    noRadio5.setValue("N");
    noRadio5.setSelected(true);
    OAMessageRadioButtonBean yesRadio5A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5A1");
    yesRadio5A.setName("Resp5A");
    yesRadio5A.setValue("Y");
    OAMessageRadioButtonBean noRadio5A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5A2");
    noRadio5A.setName("Resp5A");
    noRadio5A.setValue("N");
    noRadio5A.setSelected(true);
    OAMessageRadioButtonBean yesRadio5B = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5B1");
    yesRadio5B.setName("Resp5B");
    yesRadio5B.setValue("Y");
    OAMessageRadioButtonBean noRadio5B = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5B2");
    noRadio5B.setName("Resp5B");
    noRadio5B.setValue("N");
    noRadio5B.setSelected(true);
    OAMessageRadioButtonBean yesRadio5C = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5C1");
    yesRadio5C.setName("Resp5C");
    yesRadio5C.setValue("Y");
    OAMessageRadioButtonBean noRadio5C = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5C2");
    noRadio5C.setName("Resp5C");
    noRadio5C.setValue("N");
    noRadio5C.setSelected(true);
    OAMessageRadioButtonBean yesRadio5D = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5D1");
    yesRadio5D.setName("Resp5D");
    yesRadio5D.setValue("Y");
    OAMessageRadioButtonBean noRadio5D = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5D2");
    noRadio5D.setName("Resp5D");
    noRadio5D.setValue("N");
    noRadio5D.setSelected(true);
    // requestRow_radio.setAttribute("disableRadioButton5",Boolean.TRUE);
    System.out.println("**************r6**********************");
    OAMessageRadioButtonBean yesRadio6 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad61");
    yesRadio6.setName("Resp6");
    yesRadio6.setValue("Y");
    OAMessageRadioButtonBean noRadio6 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad62");
    noRadio6.setName("Resp6");
    noRadio6.setValue("N");
    noRadio6.setSelected(true);
    OAMessageRadioButtonBean yesRadio6A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad6A1");
    yesRadio6A.setName("Resp6A");
    yesRadio6A.setValue("Y");
    OAMessageRadioButtonBean noRadio6A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad6A2");
    noRadio6A.setName("Resp6A");
    noRadio6A.setValue("N");
    noRadio6A.setSelected(true);
    System.out.println("**************r7**********************");
    OAMessageRadioButtonBean yesRadio7 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad71");
    yesRadio7.setName("Resp7");
    yesRadio7.setValue("Y");
    OAMessageRadioButtonBean noRadio7 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad72");
    noRadio7.setName("Resp7");
    noRadio7.setValue("N");
    noRadio7.setSelected(true);
    System.out.println("**************r8**********************");
    OAMessageRadioButtonBean yesRadio8 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad81");
    yesRadio8.setName("Resp8");
    yesRadio8.setValue("Y");
    OAMessageRadioButtonBean noRadio8 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad82");
    noRadio8.setName("Resp8");
    noRadio8.setValue("N");
    noRadio8.setSelected(true);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(numValue, "customerId", OAFwkConstants.STATEMENT);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(custName, "customerName", OAFwkConstants.STATEMENT);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(custNumber, "customerNumber", OAFwkConstants.STATEMENT);
    }

  • Is it possible not to allow the user to select radio button based on condi

    Hello All,
    I have two radio buttons ( Relation value 1 default , famid value 0 )
    can i create a situation where in the user cannnot select the famid radio based on some condition.
    The conditioin is that , the user should have selected atleast one item from three list controls then only i should allow the user to select famid radio else not ?
    thanks/kumar

    Hi,
    You can use javaScript to enable disable radio button. Call the javaScript from your select list onChange event.
    Hope this helps,
    Regards,
    Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Radio Button in a table

    Hi ,
    My requirement is to have a radio button in a table .
    scenerio : i have 3 coloumns in a table as shown below
    From Date      To Date            Select
    Select coloumn is a radio button . i made that coloumn to a radio button in table not in SALV .
    Now , data will be fetched from the DB for first two coloumns and where the difference of FROMDATE AND TODATE will be greater or equal to 5 only those rows should have a active radio button which can be clicked .
    Other rows should have disabled radio button.
    Moreover , User can select only one radio button at a time .
    if it can be possible with SALV , suggest me that option as well.
    Thanks.

    Hello,
    find the steps to achieve your requirement with normal table UI element. I'm not sure whether the same will work for alv. I expect it to work
    1. Create one boolean attribute in the Table Context node to indicate whether the radio button should be enabled or not (Attribute name : say RB_ENABLED). Populate the value of this attribute based on your From_Date DIF TO_DATE >= 5.
    2. Create a string attribute in the table context node to indicate the value for the radio button (Attribute Name: say RB_VALUE)
    Populate the Value of this attribute like for first record say FIRST and second record say SECOND. Or if you have unique Id for each row then you populate the same here.
    This attribute is required to identiy which radio button is selected by the user
    3. Create a context node (say RB_SELECTED) of cardinality 1..1 and an attribute of type string (say RB_SELECTED)
    4. In the table ui element, create a Radio button column and bind the following
    enabled property to RB_ENABLED attribute
    KeyToSElect to RB_VALUE attribute
    SElectedKEy to RB_SELECTED.
    So at runtime whenever the user selects a radio button, the correpsonding value will be set in the RB_SELECTED attribute. example if the user selects the radio button in the first row, the value 'FIRST' will be populated in the RB_SELECTED attribute.
    BR, Saravanan

Maybe you are looking for

  • Ipad 1 with win 8.1 no itunes sync

    iTunes version 11.1.4.62, windows 8.1 64 bit  and iPad 1st generation: when I connect my iPad to desktop pc with usb, windows opens file browse folder label This computer/Apple iPad/Internal storage/DCIM and shows all image folders and images. iTunes

  • Unanswered questions on Quiz are not counted correctly when going back

    Hi, I'm using Captivate 8, and made a simple multiple choice quiz, with a "submit all" option. It works fine, except for when using the back button. When trying to submit, I get the following message: "One or more questions is incomplete. Answer all

  • Transformer exception while transforming BEx Web templates

    Hello, when opening the web application designer or calling a web template in the browser the error Transformer exception while transforming BEx Web templates occours. I found several hints in the forum like solving the problem with the SAP NetWeaver

  • Hide headings when no row in table

    I am trying to create a report using LiveCycle/Acrobat, i.e. the form is created as a dynamic pdf in livecycle. I will open it with acrobat and import data. To simplify the report, it has two columns Client    Date Seen Not all clients have ever been

  • Strange ASSERT with kShowLayerCmdBoss

    I wrote some code for a CS3 plugin to make a document layer visible or invisible. That part works, but I get the following ASSERT whenever I change the visibility:<br /><br />  ShowLayerCmd::Do - docLayer->IsVisible() != showLayer<br /><br />  ..\..\