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.

Similar Messages

  • Can not unistall or upgrade itunes? When trying to unistall it first says that system admin. has set policies to prevent this installation. Then it states that I have no admin. privleges. Running win 7 and only have one active admin. and guest is off.

    All other Apple programs the same way. Also my library is gone???  I downloaded a fresh copy and tried installing that as an adminisrator still wouldn't let me.
    Any suggestions?

    Verify from permission of user that you use it in upgrade, make sure that scom machine and user that you use it in upgrade in sysadmin group in database of operationsManager and OperationsManagerDW
    Also Verify from Prerequisites of Upgrade SCOM 2012 sp1 as below link
    http://technet.microsoft.com/en-us/library/jj656654.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • Radio button and select option in one line

    Hi,
    I have an requirement in which i need to display the radio button and select option in one line in an report program.
    How can i do it? 
    Regards,
    Arun.

    Hi,
    Try this code.
    TABLES: bkpf.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: p_r1 RADIOBUTTON GROUP a.
    SELECTION-SCREEN COMMENT 4(20) text-001 FOR FIELD p_r1.
    SELECTION-SCREEN COMMENT 30(12) text-002 FOR FIELD p_date.
    SELECTION-SCREEN POSITION 39.
    SELECT-OPTIONS: p_date FOR bkpf-budat OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: p_r2 RADIOBUTTON GROUP a.
    text-001 = " Radio button"
    text-002 = "Posting date"

  • 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

  • Check boxes, Radio Buttons, and XML Field Order

    I am working with Adobe Designer Version 7.0. Hopefully this forum can still address my issues.
    I am creating a registration form that will often be submitted via email to us for processing. To help make the data both easy to transfer for us into our excel file  and to minimize the errors made by the people using the form, I need the form to be able to do a couple of things that I am having a hard time figuring out. My questions are the following:
    I have a list of 7 check boxes that each insert a dollar value into a seperate numeric field on the form. Each check box has a unique dollar value associated with it. Is there any way to design the form so the user can only choose one of the check boxes? I tried using radio buttons in a group, but if a user mistakenly chose the wrong radio button and then selected another button from that group, it would add to the total in the Application Fee field and not subtract out the previous amount. Below is the code i used for one of the check boxes.
    I have two numeric fields that the user must choose one or the other. Can I design those two fields (numHomes and numBuildings) so that if the you enter a value for one field, you cannot enter a value for the other field? Both fields are then calcuated in a seperate numeric field. Below is the code i used for the numeric field.
    I want to be able to take the data emailed to us as an XML file  when a user submits the results via email and directly paste it into our Excel file. To keep the cut and paste process simple, I want to make sure the order of the XML fields matches the order of the database fields so it can be done in one shot. Do you know how to organize the XML fields? They do not seem to correspond to the ordering found under the Hierarchy tab. Any thoughts on this?
    Thanks
    if (this.rawValue == 1) then
           numAppFee.rawValue = numAppFee.rawValue + 350;
    else
           numAppFee.rawValue = numAppFee.rawValue - 350;
    endif
    numHomes * 50 + numBuildings * 100 + numDups * 10

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • 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();
    }

  • How to create popup window with radio buttons and a input field

    Hi Guys,
    Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
    I will call this stand alone program from an user exit. 
    Please give me the guidance how go about it or please give any tutorial you have.
    Thanks,
    Mini

    Hi,
    There are multiple aspects of your requirements. So let's take them one at a time.
    You can achieve it in the report program or you can use a combination of the both along.
    You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
    For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
    For Report and other Module pool help you can have a look at the following:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
    Hope this helps. Let me know if you need any more details.
    Thanks,
    Samantak.

  • Radio button and group

    Hi All,
    Not quite follow what dev guide says about radio button and group implementation.
    I tried but always got strange behavior.
    I have a subtab with two radio buttons (rbt1 and rbt2)
    rbt1 property defined as:
    Initial Value: Y
    Checked Value: Y
    Unchecked Value: N
    rbt2 property defined as:
    Initial Value: Y
    Checked Value: N
    Unchecked Value: Y
    Also, In my subtab PR, I init these two bts as a group:
    OAMessageRadioButtonBean colButton1 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("rbt1");
    colButton1.setName("colGroup");
    colButton1.setSelectedValue("Y");
    OAMessageRadioButtonBean colButton2 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("rbt2");
    colButton2.setName("colGroup");
    colButton2.setSelectedValue("N");
    When the subtab render first time, rbt1 is checked and rbt2 is unchecked as expected. but when I go to other subtab then come back, the rbt1 is unchecked and rbt2 is checked (switch automatically).
    The subtab PR is the only place I set this radio button value and group as showing above. Somewhere wrong with my logic or setting?
    Regards,
    KJ

    Hi All,
    Got issue resolved. When I was replying Ranjit previous post, I mentioned both of buttons bind to same VO attribute. Since the first rbt1 has defined checked and unchecked values (Y & N) and both of buttons are defined in same group, so I took off second rbt2 attribute binding then it works (won't switch automatically anymore).
    I still defined init values for both of buttons and also removed setSelectedValue() method calls from PR.
    Thanks again for the great helping.
    KJ

  • Please help! How can I validate Radio Buttons and List Menu with PHP.

    Hello everyone, I have been learning PHP step by step and
    making little projects.
    The point is I find it easy to learn by doing "practical
    projects."
    I have been reading the David Powers's Book on PHP Solutions
    and it's really great, however there is nothing mentioned regarding
    Validating Radio buttons. I know the book cannot cover every aspect
    of PHP and maybe someone in here can help.
    I have been learning how to process HTML forms with PHP.
    The problem is every book or tutorial I have read or
    encountered fall short on validation.
    I'm wondering how I can learn to validate Radio Buttons and
    Select List Menu.
    I have managed to create validation for all other fields but
    have no clue as to how I can get validation for Radio Buttons and
    List Menu.
    I would also like an error message echoed when the user does
    not click a button or make a selection and try to submit the form.
    I would appreciate any help.
    Patrick

    It's not that default value is "None." In fact it's not. It
    will only be
    "none" when the form is submitted.
    Also if your submit button is names 'send' then
    $_POST['send'] will only be
    set if the form was submitted.
    Make sure you didn't hit the refresh button on your browser
    which usually
    reposts the information. Also make sure you did not reach the
    form from
    another form with the same button names.
    Otherwise paste the snippet.
    Also you can check what fields are set in the post array by
    adding this to
    the top of (or anywhere on) your page:
    print_r($_POST);
    Cosmo
    "Webethics" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Off the top of my head this should be no different than
    your radio buttons
    > except that 'productSelection' will always fail the
    !isset check when the
    > form is submitted since the default value is "None", and
    therefore always
    > set. :-)
    >
    > So how about this..?
    > <?php
    > if (isset($_POST['send']) and
    ($_POST['productSelection'] == "None"))
    > {echo "Please select a product.";}
    > ?>
    >
    >
    >
    >
    > "Webethics" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > Another question - how do i applied the code you
    just showed me to
    > > select
    > > menu
    > > or select list?
    > >
    > > This is the list:
    > >
    > > <div class="problemProduct">
    > > <label for="productSelection"><span
    class="product_label">Product
    > > Name.</span></label>
    > > <select name="productSelection" id="products"
    class="selection">
    > > <option value="None">-------------Select a
    product----------</option>
    > > <option value="Everex DVD Burner">Everex DVD
    Burner</option>
    > > <option value="Vidia DVD Burner">Vidia DVD
    Burner</option>
    > > <option value="Excerion Super Drive">Excerion
    Super Drive</option>
    > > <option value="Maxille Optical Multi
    Burner">Maxille Optical Multi
    > > Burner</option>
    > > <option value="Pavilion HD Drives">Pavilion
    HD Drives</option>
    > > </select>
    > > </div>
    > >
    > > I thought I could just change the name is the code
    from operatingSystem
    > > to
    > > productSelection.
    > >
    > > Something like this:
    > >
    > > From this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['operatingSystem']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > To this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['productSelection']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > But this does not work, any ideas?
    > >
    > > Patrick
    > >
    >
    >
    >
    >
    > Hey, I tried this about but as you mentioned, since the
    default product
    > value
    > is "None" an error message appears when the page loads.
    >
    > Is there a way to code this things so that even though
    the default value
    > is
    > "None" there ia no error message untle you hit the
    submit?
    >
    > When I applied the code, it messes up the previous code,
    now the operating
    > system is requiring an entry on page load.
    >
    > When I remove the code from the list menu everything
    goes back to normal.
    >
    > I know this is a little much but I have no other
    alternatives.
    >
    > Patrick
    >

  • Reg: radio button and parameters usage

    Hi,
       If there are 3 radio buttons and 1 parameter, and if i click one radio button then the parameter must be a mandatory, if i click the remaining radio button the parameter must be a normal one( Not mandatory).
    give me clear picture to solve it, as soon as possible,
    thanks in advance

    Hi,
    Wanna try this...??
    PARAMETERS: p_exp RADIOBUTTON GROUP radi,
                p_imp RADIOBUTTON GROUP radi,
                p_clear RADIOBUTTON GROUP radi.
    PARAMETERS: path(30)    TYPE c .
    at selection-screen.
                if p_exp = 'X'.
                 if path is initial.
                  message 'Enter clear' type 'E'.
                endif.
                endif.
    Solves ur problem!!
    Have Fun!!
    Ira!!

  • Captivate 8, knowledge check radio buttons and check boxes not diplaying correctly in HTML5

    Hello. I am working in Cp 8 on a pc (Win 7, 64-bit) and publishing in HTML5, SCORM 2004, 3rd ed. My issue is with knowledge checks. In preview they look fine, but when published, the radio buttons and check boxes are oversized and do not appear as they should. Additionally, the rollover highlight that covers the distracters is skewed and does not cover all the text in cases of long answer choices. When published as a SWF, there are no issues but project requirements are for HTML5 output only. Help?

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • Help with cfinput radio button and text fields

    I have a series of radio buttons that allow a user to select
    monetary values but I also want them to be able to define an amount
    if they choose so. I was planning on doing this by providing a
    radio button with the value of other and then using a text field to
    allow the user to enter the monetary value. The problem with this
    is that they might enter a user defined monetary value but forget
    to set the radio button to "other".
    I was hoping that I could set the "other" text input field to
    read only until the point that the user selects the "other" radio
    button. Is there a way to do this using onSelect or another method.
    Or is there a better way to approach this problem? Thanks for any
    help or advice in advance.

    Hi,
    You could call a js function which will select the radio
    button "other " when the user types something in(there are various
    events on cfinput). This way the user will not have to worry about
    selecting the radio button and your requirement will be satisfied.
    Hope this Helps.
    Thanks,
    Bhakti

  • Save Status of Radio Buttons and Variables

    I designed a form that uses a Raddio Button with three choices. These choices selectibles enable/disable areas of the form. The user will save the form with a different name for archival. Right now if I save the form, the status of the Radio Button and variables used in the JS code are not stored. So if I open the saved file, the form will not reflect the original status of Radio Button and variables.
    What's the best way to implement this?
    Can I save the status of the Radio Button (choice selected) and variables when the user saves the form and then restore them when opened back?
    Thank you.

    Without knowing more about what you're doing, it's hard to give specific information. I'm not sure what you mean about the status of the radio buttons since when a form is saved, their state won't change when it's reopened. For saving data, you certainly could use a hidden field and read it in using a script that executes when the form is opened.

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

  • Does anyone know how to select text in Appleworks, click on the font button and then be able to scroll thru all the font so that one can see the text change as you scroll down the list, at present  I have to do it one font style at a time and then repeat

    does anyone know how to view text in Appleworks, to be able to click on the font button and then be able to scroll thru all the font so that one can see it change as you scroll down the list, at present  I have to do it one font style at a time and then repeat? Thanks jl

    Welcome to the Apple forums
    Your question really belongs in the AppleWorks community/forum.
    You can turn on fonts in actual type in the AppleWorks preferences.

Maybe you are looking for

  • Windows Vista and Creative Zen Touch/ Creative Media Sou

    Hey there, I just got a shiny new laptop with Windows Vista (32 bit) and would like to install the media source player. Unfortunately I lost the CD with the installation long time ago. I downloaded all kinds of files for the Zen (the media player and

  • Query structure problem

    Hi, I need to create a query with a column structure described bellow: Key figure .................|.. 0Quantity .....|.. 0Amount Posting period ...........|.. # .................|.. Var1 (5,6, 7, ... 12) The problem is that the column 0quantity shou

  • How can i edit a adobe document

    hi

  • Encrypting an external hard drive for dual boot use

    I'm soon to be reformatting my entire hard drive and starting from scratch-for the first time since 2007.  I have a 250GB external that used to be an internal drive (for backups-and it's simply an IDE drive in an enclosure), and when I switched it I

  • Hot Backup Query

    Hi, I was under the impression that while doing hot backup, one must maintain all the archive logs since the start of the backup, in order to be able to restore the backup. However, recently when I did a restore of my hot backup, it asked me for arch