How to combine the radio buttons in different panels

Hello everyone.I have to have some form of panels, each of which I want to put a radio button. How to make sure that when you select one of the radio buttons, the second was not selected ? Now both are selected. For convenience, made a small example.
var w = new Window('dialog', '');
    p3 =  w.add("panel", undefined, " panel1 ", {borderStyle:"r"});
    p3.orientation = "column";
    p3.alignment='left';
    p3.preferredSize = [200,107];
    p3.spacing=0;
        var etProd = p3.add('edittext',undefined,'');
        etProd.preferredSize = [170,20];
        etProd.alignment = "top";
    grProd1 =p3.add('group');
    grProd1.orientation = 'row';
    grProd1.alignment="left";
        btnProd_add = grProd1.add('button',undefined,"Add");
        btnProd_del = grProd1.add('button',undefined,"Del");
        rb1 = p3.add('radiobutton',undefined,'import');
        rb1.alignment='left';
    p2 =  w.add("panel", undefined, " panel2 ", {borderStyle:"r"});
    p2.orientation = "column";
    p2.alignment='left';
    p2.preferredSize = [200,107];
    p2.spacing=0;
        var etProd2 = p2.add('edittext',undefined,'');
        etProd2.preferredSize = [170,20];
        etProd2.alignment = "top";
    grProd2 =p2.add('group');
    grProd2.orientation = 'row';
    grProd2.alignment="left";
        btnProd_add = grProd2.add('button',undefined,"Add");
        btnProd_del = grProd2.add('button',undefined,"Del");
        rb2 = p2.add('radiobutton',undefined,'import');
        rb2.alignment='left';
w.show();

If you are wanting a toggle them then you could that in the call backs… add above show();
rb1.onClick = function() {
     rb2.value = false;
rb2.onClick = function() {
     rb1.value = false;

Similar Messages

  • How to deselect the Radio button from htmlb.table.TableView

    Hi Experts,
    Could you please help me, how to seselect the Radio button from htmlb.table.TableView?
    <hbj:tableView
                                       id="tbvCustomer"
                                       model="mcBean.csModel"
                                       design="ALTERNATING"
                                       headerVisible="TRUE"
                                       footerVisible="TRUE"
                                       navigationMode="BYPAGE"
                                       selectionMode="SINGLESELECT"                               
                                       fillUpEmptyRows="FALSE"
                                       headerText="Searchresults"
                                       visibleRowCount="10"
                                       onNavigate="CustomerSearchNavigate"
                                       visibleFirstRow="<%=mcBean.getCsVisibleFirstRow() %>">
    Problem: After searching and selecting the Customer in the table, then again we are searching for another customer. After that the searched customer is displaying in the Table. By default the table Radio button is selected. Because for first Customer we have selected the Radio button. How we can deselect the FRadio button while searching for another Customer.
    Thanks In Advance.
    Regards,
    Vijay.

    I think it is <2095>.
    In SmartForms, go to your text window. 
    Use the icon on the top left of the text window to switch to the old editor.
    INSERT -> CHARACTERS -> SAP ICONS. 
    Do a FIND on "radio".  It's called ICON_WD_RADIO_BUTTON_EMPTY.

  • How to default the radio button confirmation and invoice in shopping cart

    Hi Guys,
    In the shopping cart for a limit item I need to default the radio button for CONFIRMATION AND INVOICE as it is now defaluted to INVOICE ONLY .
    Please let me know how to change as I could not achieve it through UI badi.
    Thanks & Regards
    Arun

    Did you try the suggestions mentioned here: To make the field for Display only on the Shopping Cart Portal
    I'm looking for a way to restrict the "Invoice Only" option depending on the product category selected.  Do you know I would do this?
    For example only allow "Invoice Only" to be selected if Product Category X is selected.  If product category Y is selected then grey-out "Invoice Only".
    Matt

  • WPF: How to change the radio button text background?

    Is there a simple way that we can change the radio button text background? thx!
    JaneC

    If you literally mean the text background.
    It's a contentcontrol.
    You can put whatever you like in it to hold the text.
    As illustrated by my article:
    http://social.technet.microsoft.com/wiki/contents/articles/30173.wpf-tips-radiobutton-alignment.aspx
    Thus:
    <RadioButton Name="rbnIsolated">
    <TextBlock Text="Isolated Storage" Margin="0,-10,0,0" FontSize="22" Background="Pink"/>
    </RadioButton>
    Makes just the text background pink
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • How to check the radio buttons in JSP

    Hi All,
    I am very new to JSP,
    I have two forms( addform and deleteform), in addform i have a table which fetch the records from database,
    and at the same time I created a radio button for each and every record(eg: If I have 10 records in database, 10 radio button will be created automaticallty).
    now I want to delete a row , by selecting correspondig radio button.
    how can i get the value of radio button in deleteform, which they checked in the addform,
    could anybody help me!!!!!!!
    with regards
    suresh

    Something like javascript
    <html>
    <head>
    <script>
    function add() {
    for(var i=0;i<document.forms[0].radio.length;i++) {
    if(document.forms[0].radio[i].checked) {
    document.forms[0].txtName.value = document.forms[0].radio.value;
    </script>
    </head>
    <body>
    <form name="form1">
    <input type="radio" name="radio" value="Radion 1">Radion 1
    <input type="radio" name="radio" value="Radion 2">Radion 2
    <input type="radio" name="radio" value="Radion 3">Radion 3
    <input type="text" name="txtName">
    <input type="button" value="Add" name="b2" onClick="add()">
    </form>
    </body>
    </html>
    or take a look a this  [link|http://www.java2s.com/Code/Java/JSP/SubmittingRadioButtons.htm]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to give the radio button value dml statement

    Oracle Forms6i
    Hai All
    I have created a form I the form i have created two radio button and named as appr, Recmd when i execute the forms appr is marked by default
    So now i need to insert or update this radio button value in my Table
    how can i insert or update this radio button value
    pls tell me the steps to do
    Thanks In Advance
    Srikkanth.M

    Hi,
    :<your_radiogroup_name> will give the selected radiobutton value

  • How to disable the radio buttons in alv lsit .

    hi experts ,
    i created one alv list using oops alv . in list three radio buttons . i used code for that in fieldcat-icon = 'x' .
    then in internal table i passed radiobutton icon . using this code i get a radio buttons on list correct .
    but when iam displaying the alv list . i some rows i want radio buttons in disable mode .
    can any one explain

    Tiberiu,
    I think you need to change the webdynpro for java code using NWDI
    Thanks
    Bala Duvvuri

  • How to dspaly the radio buttons on screen

    hi experts
    i used generating alv list using alv oops . now in my list radio button s to display .
    what is the code for that .

    Hi,
    Refer this http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-RadioButtonsinALVGRIDREPORT
    and do search...
    regards,

  • How to Disable the radio button on page

    Hi All,
    We have a requirement to disable or hide a radio button on the standard Noritifacation Reassign page in R12.
    The page is /oracle/apps/fnd/wf/worklist/webui/NotifReassignPG.
    When I went to 'Personalize Page', I can see a 'messageComponentLayout', when I set the 'Rendered' property to 'false'.
    It is hiding out the complete Layout, but I just want to hide only one radio button from that layout.
    Can someone please help?
    Thanks,
    Dilip

    Thanks Sandeep and Keerthi,
    I got that point but I am facing one more problem, as you said, its creating radio groups dynamically in CO.
    Now I am trying to extend the CO and disable the radio butto, But I am getting Null Pointer exception, I guess, I am not able to get the proper handle to that radio button.
    Can you please help?
    Here is the Controller code where it created buttons dynamically.
    ==========================================
    OAViewObject localOAViewObject = (OAViewObject)localOAApplicationModule.findViewObject("ReassignTypeVO");
    localOAViewObject.executeQuery();
    OARow localOARow = null;
    int j = localOAViewObject.getRowCount();
    switch (i)
    case 1:
    localObject5 = null;
    for (int k = 0; k < j; k++)
    localOARow = (OARow)localOAViewObject.next();
    localObject5 = (OAMessageRadioButtonBean)createWebBean(paramOAPageContext, "MESSAGE_RADIO_BUTTON");
    ((OAMessageRadioButtonBean)localObject5).setText(paramOAPageContext, (String)localOARow.getAttribute("Meaning"));
    ((OAMessageRadioButtonBean)localObject5).setValue(((Number)localOARow.getAttribute("LookupCode")).toString());
    ((OAMessageRadioButtonBean)localObject5).setID("" + k);
    ((OAMessageRadioButtonBean)localObject5).setName("NtfReassignType");
    ((OAMessageRadioButtonBean)localObject5).setShortDesc((String)localOARow.getAttribute("Meaning"));
    if (k == 0)
    ((OAMessageRadioButtonBean)localObject5).setSelected(true);
    ((OAMessageComponentLayoutBean)localObject1).addIndexedChild((UINode)localObject5);
    ==========================================
    Here is the code I have written, but its going into exception.
    ===========================================
    try
    OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("0");
    testButton.setDisabled(true);
    pageContext.writeDiagnostics(this,"expMsg: got the testButton",1);
    //i tried with OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("NtfReassignType");
    // and
    //OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("MESSAGE_RADIO_BUTTON");
    //but still its not working and going to exception block
    catch (Exception exception)
    throw new OAException("Error in NtfReassignFnCO button: "+exception, OAException.ERROR);
    ===========================================
    Please help.
    Thanks,
    Dilip

  • Initialize the radio button in initalization event

    How to initialize the radio button in initalization event.
    Here the problem is i want to initialize the radiobutton which is in  a Logical data base(PNP).
    Regards
    Vamsi

    hi,
    try like this,
    parameters: rr1 type radio button group g1 default 'X',
                      rr2 type radio button group g1,
                      rr3 type radio button group g1.
    or in the event initialization.
    CREATE 3 radio buttons and initialize in this event
    INITIALIZATION.
    RR1 = 'x'.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • How to Create a Radio Buttons using Personlization

    Hi friends ,
    We have  requierment like , Wanted to havev two radio buttons  Employee Relative  : YES or NO values.
    These radio buttons I wanted to add on Oracle Provided page using personlization. But the Values for the radio buttons should be YES and another button is No.
    After addin it , we shall have this selected value handled in Custom Controller. How can I the radio Buttons with the above YES/No Values. Any guidelines would be greatly helpful.
    Thanks Guys
    Regards
    Raghu

    Hi,
    Using personalization you can create radio button s, the item style as: Message Radio Button
    and then extend the controller and use the below code in processrequest of the extended or custom controller:
    OAMessageRadioButtonBean appleButton = 
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne"); //First Radio Button 
    appleButton.setName("Yes"); 
    appleButton.setValue("Yes"); 
    OAMessageRadioButtonBean orangeButton = 
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo"); //Second Radio Button 
    orangeButton.setName("No"); 
    orangeButton.setValue("No"); 
    May be it will help you.
    Regards
    Mahesh

  • I made a fillable form using indesign and then acrobat professional but need to have radio buttons trigger different fields showing in the form below them - is that possible and if so how do I do it??

    I made a fillable form using indesign and then acrobat professional but need to have radio buttons trigger different fields showing in the form below them - is that possible and if so how do I do it??

    What version of Reader are they using, exactly? And are you sure they're
    using Reader itself and not opening the file inside a browser window, for
    example?
    On Fri, Feb 6, 2015 at 5:24 PM, jessicao96457206 <[email protected]>

  • How do I include the radio-button items on a second column as possible answers to the question?

    Using Adobe Acrobat Pro X, we created a fillable PDF from an existing PDF.
    One question can be answered by choosing one of four choices (radio buttons). The answers are laid out in a 2-by-2 arrangement.
    When Acrobat Pro converted the PDF into fillable format, it thought that the radio-button answers on the second column are not part of the question.
    How can I manually override Acrobat and make choices 3 and 4 part of the question.
    Please click attached screenshot for better zoom.

    George,
    i am the OP. I mistyped my email address and cannot log in to my original account.
    Thanks for your reply.
    How do I give each radio button the same name but unique button values?
    I right-clicked the first radio button, chose Properties (Ctrl+I).
    I copied the name: "What is your personal net worth in Canadian dollars including spousecommon law partner if applicable".
    I clicked Close.
    I then went into the Properties dialog window of the third radio button, which is one of the ungrouped choices. I pasted the name [What is your personal net worth in Canadian dollars including spousecommon law partner if applicable]. I then clicked Close.
    I get an error message pop up:
    A field of a different type already uses this name. Please choose a new name for the field, or change the field type to match the existing field with this name.
    What must I do now?
    Thanks.

  • How to not display radio buttons in the select many shuttle component

    Hi all,
    af:selectManyShuttle is a true nice component.
    For business / UI ergo reasons I've decided to not display the radio buttons before each item. There's no option to do that.
    Is it possible ? How ?
    Regards
    Luc-

    Let say there are three ways:
    1. You can use skinning mechanism,
    2. You can include css file in .jspx page and then use it.
    3. You can write css directly in .jspx page.
    For skinning read documentation. For two other ways here is example code that should be inside metaContainer facet of document tag.
    <f:verbatim>
      <!-- CSS directly in jspx page -->
      <style type="text/css">
        .myClass{
          background-color: #8888FF;
      </style>
      <!-- Include css file in jspx page -->
      <link href="css/incStyle.css" rel="stylesheet" type="text/css" />
    </f:verbatim>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.

    I updated my iOS to 7 yesterday. But my music app doesn't show the 'Radio' button as the online videos and Apple website claims. What could be the reason and how to fix it. All other apps, swipe up/down seem to be working fine.

    Try to connect in recovery mode, explained in this article:
    iOS: Unable to update or restore
    Before that, back up your device, explained here:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    How to back up your data and set up as a new device
    You can check your warranty status here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

Maybe you are looking for

  • Not able to see the PSA

    Dear Experts, I have enhanced the extract structure of  2lis_13_vdkon in R/3 with 5 fields which are exist in transfer structure. I have replicated the data source in BI but unfortunately i have not deleted the data in the PSA. After replication when

  • Internet Explorer Privacy Site Allowed equivalent setting in OS X Safari?

    I'm assisting a friend with accessing his online tax payment portal from his bank's website using OS X Safari. Under Windows Internet Explorer a site must be added to 'Tools>Internet Options>Privacy>Sites>Allowed Site' before the site will load. If t

  • Configuration error while executing wsdeploy

    Hi I am trying to deploy the hello service example in the tutorial. when I run the ant build I am getting the following exception. Any suggestions to solve the problem would be a great help for me. Thanks you. Cheers Kanag Exception: [exec] error: ja

  • How to execute queries in a for loop

    Ok, here is the problem. I have a database which contains web page content. When you start the program, the user types in a string and that string is split up into its separate words and stored in a list. Then you are asked for the logic, such as exa

  • Error when synchronising MIDI and audio

    I just faced a serious problem when playing back my projects, the speed is slowing down, crackle is heard and a pop up states there's an error when synchronising audio and midi and it's necessary to check some external device..what can it be, how can