Need radio Buttons Sample Code

HI
  HI
can any one send me the sample code for placing the radio buttons,
and how to store the value of selected radio button
how to handle events for that radio buttons.

Hi Ram,
I have a requirement to implement radio buttons as well.
Can you please let me know how u implemented the same?
Thanks
Vicky

Similar Messages

  • Help needed Regarding MedRec sample code

    Hi
    I m new to Weblogic.
    In order to get a startup, I was trying hands-on on the Medrec sample.
    During the process, I downloaded medrec_tutorial.zip from http://edocs.bea.com/wls/docs81/medrec_tutorial.zip
    But i m not able to find any "build" directory inside it.
    Can anyone help me out? :-(

    Hi Chris.
    Thanx for the help.
    I was able to complete till tutorial 11 without any problem after that.
    In 11th tutorial, I m having trouble in the my_webserv.xml part.
    Here I m pasting the output :-
    C:\medrec_tutorial\src\medrecEar>ant -f my_webserv.xml
    Buildfile: my_webserv.xml
    build.ws:
    [autotype] Autotyping for javaComponents com.bea.medrec.webservices.MedRecWebSe
    rvices
    [autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
    : interface java.util.Iterator loaded from file:/D:/bea/jdk141_05/jre/lib/rt.jar
    !/java/util/Iterator.class. All classes that will be serialized or deserialized
    must be non-interface, non-abstract classes that provide a public default const
    ructor
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
    sureValidClass(JavaInspector.java:1041)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
    peMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
    Java2SchemaImpl.java:167)
    [autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl
    .run(Component2SchemaImpl.java:151)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doCom
    ponent2Schema(JavaSchema.java:365)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
    te(JavaSchema.java:172)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/medrec_tutorial/src/medrecEar/my_webserv.xml:12: weblogic.webservice.too
    ls.build.WSBuildException: Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received: interface
    java.util.Iterator loaded from file:/D:/bea/jdk141_05/jre/lib/rt.jar!/java/util
    /Iterator.class.  All classes that will be serialized or deserialized must be no
    n-interface, non-abstract classes that provide a public default constructor]
    Total time: 3 seconds
    I tried a lot of things, but none worked.
    Can you please help me resolving it?
    Thanks in advance
    Gurpreet

  • Provide code for desplay radio button in POP UP window(REUSE_ALV_POP

    Dear Experts,
    I m using Function module REUSE_ALV_POPUP_TO_SELECT . I can use check box but radio button is required.  How to declared that radio button in  main Program and  I need radio button on POPUP window also along with other fields. That radio button should not display on my main selection screen, Radio Button should be display on POPUP window only .
    Pl provide me code for .....
    Thanks & Regards,
    Swapnika
    Edited by: swapnika on Nov 28, 2011 8:09 AM

    Hi,
    Using radio button for single selection.
    You can double click at  the line for the single selection instead of radio button by leaving I_CHECKBOX_FIELDNAME blank.
    Hope this help.
    Tiwa N.

  • Radio button in dynamic ALV grid

    Hi guys!
    I want to implement a dynamical ALV grid with a radiobutton in the first column.
    when clicking a button, or processing the program i want to get the information of the selected row and perform other things....
    Can someone help me with a code example for this, or just tell me where i can find the necessary information`?
    regards
    thomas

    Hi,
    I dont understand why you need Radio button, If you use REUSE_ALV_GRID_DISPLAY the output grid will by default allow you to select only one row.
    see the program - BCALV_FULLSCREEN_DEMO for more information

  • Radio buttons on interactive report

    Hello all,
    I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
    Thanks.

    Hi inka,
    inka wrote:
    Hello all,
    I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
    Thanks.
    one of the way to submit the form is use apex.submit
    Check the example given below
    1) Assuming you have used apex_item.radiogroup to create radio buttons.
    sample sql query for interactive report
    select EMPNO,
          ENAME,
          JOB,
          MGR,
          HIREDATE,
          SAL,
          COMM,
          DEPTNO,
          apex_item.radiogroup(1, EMPNO) r
      from EMP
    2) Go to Report Attributes -> Edit Radio button column
        Under Column Definition
        Display Type : Standard Report Column
        Under Column link -> do the changes given below
        Link Text : #R#  // here R is my radio button column name, so select yours radio button column name.
        Target : URL
        URL : javascript:apex.submit({request:'TEST',set:{'P6_HIDDEN':#EMPNO#}});
         // here P6_HIDDEN is item where i am setting EMPNO to that column, if you want to set any value to any item that you want to use in process then create Hidden item with protected value no.
    or if you want to show confirm message before submitting the page then use apex.confirm in place of apex.submit .
    Hope this helps you,
    Regards,
    Jitendra

  • Radio Button

    Hello all,
    i want to create radio button using code dynamically so as to do this i am using the following code :
    OAMessageRadioButtonBean radio = (OAMessageRadioButtonBean)this.createWebBean(pageContext,OAMessageRadioButtonBean.MESSAGE_RADIO_BUTTON_BEAN,null,checklist);
    radio.setTrueValueObject(--value--);
    radio.setPrompt(--value--);
    rowlayout.addIndexedChild(radio);
    it is displaying the radio buttons at page load,but if i select both the radio buttons then i am able to selcet it,but i dnt want this i want to restrict the user to select only one button
    kindly help

    Hi Jegan,
    You can create the radio button in processRequest by using (OAMessageRadioButtonBean)webBean.createbean()
    Assumption for the following code:
    The radio buttons and radio group is created at design time.
    OAMessageRadioButtonBean radioButton01 = (OAMessageRadioButtonBean)webBean.findChildRecursive("LastOrderDateRadioBtn");
    if (radioButton01 != null)
    radioButton01.setName("OrderShipRadioGroup1");
    radioButton01.setValue("Y1");
    radioButton01.setSelected(true);
    OAMessageRadioButtonBean radioButton02 = (OAMessageRadioButtonBean)webBean.findChildRecursive("LastShipOrderDateRadioBtn");
    if (radioButton02 != null)
    radioButton02.setName("OrderShipRadioGroup1");
    radioButton02.setValue("Y2");
    radioButton02.setSelected(false);
    thanks,
    Kumar

  • Replacing SAP Object Selector with Radio Button in ALV table in WD ABAP

    Hi All,
    I have a view in Webdynpro ABAP which displays data in an ALV table view (using SALV_WD_TABLE component).
    By default we have the SAP Object Selector for selecting a particular row of the table. This has to be replaced with radio buttons.
    I mean instead of using the SAP Object Selector, I need radio buttons at the start of each row.
    What I have thought of is to make the SAP Object Selector Invisible and create another attribute for the radio button in the node which contains ALV output data.
    Can you please let me know how to remove the SAP Object Selector from ALV output table and also how to include a column with radio button in the ALV output table.
    Thanks and Regards,
    Sayan Ghosh

    Hi Lekha,
    I am working with HRASR00_PROCESS_EXECUTE WD component of MSS application. In order to generate the data, this in turn calls another component called DATAOBJECTPROVIDER. I need to make the table selection as none and replace the SAP Object Selector with the radio button.
    Do you know under which method in DATAOBJECTPROVIDER do we need make the changes. I tried to search all the methods but couldnt understand a suitable one.
    Thanks and Regards,
    Sayan Ghosh

  • UIX Sample code for Single Selection Radio Button PPR??

    Does any one have a sample UIX code/page that does PPR for a single selection in a table?
    e.g On the top of teh page there is a table with a radio button single selection. Depending upon the selection in the main table the bottom page will render another table.
    Please email the sample code at [email protected]
    Thanks,
    Akshay

    Does any one have a sample UIX code/page that does PPR for a single selection in a table?
    e.g On the top of teh page there is a table with a radio button single selection. Depending upon the selection in the main table the bottom page will render another table.
    Please email the sample code at [email protected]
    Thanks,
    Akshay

  • Screen programing need to cal 2 different programs by clicking radio button

    Hi experts,
    I Need to create two radio buttons in the existing program when 1st radio button is clicked program ZSalsDoc needs to be executed and when 2nd button  is clicked  program ZShipped needs to be executed,
    these two programs internally consist of selection screens and radio buttons.
    pls if any one help by sending sample code.
    Thanks in advance

    hi raj,
    i m trying to implement your requirement.
    see what u have to do is you have to make one more radiobutton which is selected as default and you can give a message on that button like select one radio button.
    here is the code which i have done according to your requirement.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.  
    PARAMETERS : p_select TYPE c RADIOBUTTON GROUP r1 USER-COMMAND xyz DEFAULT 'X', "Select a radio button
                 p_fgnd TYPE c RADIOBUTTON GROUP r1   modif id id1,
                 p_bgnd TYPE c  RADIOBUTTON GROUP r1 .
    SELECTION-SCREEN END OF BLOCK b1.
    now you have to loop on screen
    AT selection-screen output.
    if p_fgnd = c_x.
    loop at screen.
    if screen-group1 EQ 'ID1'.
        submit zls_open_delivery AND RETURN.
        modify screen.
    endif.
    endloop.
    elseif p_bgnd = c_x.
      if screen-group1 NE 'ID1'.
       loop at screen.
       submit zls_open_delivery1 AND RETURN.
       modify screen.
    endif.
    endloop.
    endif.
    i hope this code will definetely solve your query
    because i have tried it and it is working.
    Thanks,
    Tanmaya
    Edited by: Tanmaya Gupta on Feb 24, 2010 2:54 PM

  • Need sample code to get handle of Selected rows from ADF Table

    Hi,
    I am new to ADF. I have an ADF table based on VO object.On some button action,I need to get handle of selected rows in application module.
    If anybody is having sample code to do this then please share with me.
    Thanks,
    ashok

    wow now link http://blogs.oracle.com/smuenchadf/examples/#134 is working.thanks a lot.
    also the link http://baigsorcl.blogspot.com/2010/06/deleting-multi-selected-rows-from-adf.html is very useful. Thanks a lot for Sameh Nassar too.He made it clear that in 11g Select column is not available for a ADF table and provided a solution to get Select column.
    Thanks,
    ashok

  • Assigning a function code to radio button in 4.5B

    I’ve a requirement wherein I need to trigger the PAI event in a module pool program when I select a particular radiobutton in a group and do some processing subsequently.
    For this I need to assign a function code to the radiobutton group.
    But the function code field is disabled for input in the properties screen of the layout. Our client system is SAP 4.5B.
    I am able to assign function codes to radio button groups in esuides(4.6C) and other systems.
    I want to know whether we can assign a function code at all to a radio button group in version 4.5B.
    If so, please tell me how to do this.
    With regards,
    ramu.

    Hi,
    we can't assign function codes to radio buttons.
    for assigning some code to radio button.check the radio button status.
    in PAI.
    if RAD1 = 'X'.
    xxxxxxxxxxx.
    xxxxxxxxx.
    elseif RAD2 = 'X'.
    xxxxxxxxx.
    xxxxxxxxxxxx.
    endif.
    regards,
    bharat.

  • I need to reset, clear or deselect a group of radio buttons

    I haven't been able to find the answer to this: I have a quiz-like animation that uses a group of radio buttons, I need the group to reset, clear or deselect the previous selection after submitting the answer on each question, is that possible?
    Here is the code:
    stop();
    var messageBox:TextField = new TextField();
    messageBox.text = "";
    addChild(messageBox);
    messageBox.textColor = 0xFF0000;
    messageBox.width = 200;
    messageBox.height =100;
    messageBox.x = 450;
    messageBox.y = 340;
    var userAnswer:int;
    var rbg:Object = rbA.group;
    var finalScore:int;
    btnCheck.addEventListener(MouseEvent.CLICK, nextBtn);
    function nextBtn(evt:MouseEvent):void {
    userAnswer = int(rbg.selectedData);
                if(userAnswer == 0) {messageBox.text = "PLEASE SELECT AN OPTION";
    }else{
    finalScore = finalScore + userAnswer;
    messageBox.text = "";
    nextFrame();
    btnFinish.addEventListener(MouseEvent.CLICK, finishBtn);
    function finishBtn (evt:MouseEvent):void {
    userAnswer = int(rbg.selectedData);
    if(userAnswer == 0) {messageBox.text = "PLEASE SELECT AN OPTION";
    }else{
    finalScore = finalScore + userAnswer;
    if (finalScore > 13){ gotoAndStop(8);
    }else if (finalScore > 9){ gotoAndStop(7);
    }else if (finalScore > 4){ gotoAndStop(6);
    }else {}
    startOver.addEventListener(MouseEvent.CLICK, reStart);
    function reStart(evt:MouseEvent):void {
    gotoAndStop(1);
    finalScore = 0;

    I'm all ears on this one because I checked into this the first time I saw this posting back whenever and couldn't find the solution.  And now I built something that tries to make it happen, and it doesn't.  In the AS3 help docs it doesn't say gets or sets, whereas in the AS2 docs it goes on about doing such things with that property... so maybe they changed the compnent for AS3?
    Here's what I concocted building off a help docs example.  rb3 and rb4 are basically there just to reset rb1 and rb2:
    import fl.controls.RadioButton;
    import fl.controls.RadioButtonGroup;
    var rbg1:RadioButtonGroup = new RadioButtonGroup("group1");
    var rbg2:RadioButtonGroup = new RadioButtonGroup("group2");
    var rb1:RadioButton = new RadioButton();
    var rb2:RadioButton = new RadioButton();
    var rb3:RadioButton = new RadioButton();
    var rb4:RadioButton = new RadioButton();
    rb1.group = rbg1;
    rb2.group = rbg1;
    rb3.group = rbg2;
    rb4.group = rbg2;
    rb1.move(10,10);
    rb2.move(10,50);
    rb3.move(150,10);
    rb4.move(150,50);
    addChild(rb1);
    addChild(rb2);
    addChild(rb3);
    addChild(rb4);
    function resetGroup1(evt:MouseEvent){
    rbg1.selection.selected = false;
    rb1.selected = false;
    rb2.selected = false;
    rb3.addEventListener(MouseEvent.CLICK, resetGroup1);
    rb4.addEventListener(MouseEvent.CLICK, resetGroup1);
    I rarely use radio buttons components.  If I need them, I usually create my own using movieclips.  If you go this route then you'll be able to decide what they can do, you just need to create the functions for controlling their behavior as a group..

  • Run code when a radio button is clicked

    I have a radio group with various radio buttons in there
    named date, time,
    reg etc
    When I click on a button I need the following:
    Which radio button was pressed
    The value of that button eg date, time, reg etc
    Then run some code (I will use the value to run a MYSQL
    query)
    The idea is to be able to sort a table based on the header
    that was clicked.
    Cheers
    SteveW

    Thanks for the help so far.
    I am using dreamweaver 8. ASP VBScript
    I would rather not use javascript as our operators have PDA's
    and we are
    trying to use the same interface for everyone.
    What I am trying to do is re-sort a Table by either reg,
    date, user order
    etc. by clicking on the radio buttons.
    The table is populated with MYSQL have a look at
    http://80.5.54.164/swiff/contact.asp
    user 1 password 1
    Unless there is another way to achieve this
    Cheers
    SteveW
    "bregent" <[email protected]> wrote in
    message
    news:elithk$a5n$[email protected]..
    > >Then run some code (I will use the value to run a
    MYSQL query)
    >
    > >The idea is to be able to sort a table based on the
    header that was
    > >clicked.
    >
    > Are you trying to sort the table by resubmitting a new
    sql query, or sort
    > the
    > table client side? I would suggest the latter.
    >

  • Adding function code dynamically for radio buttons

    Hi Experts,
             I have two  radio buttons in standard screen which when clicked my custom logic should be executed.
    The issue here is the standard screen radio button does not have a Fcode assigned in the field properties because of this no event is triggered when the radio button is selected.
    Thank You,
    Anupama.

    Hi anu,
         Try the following procedure,
    - Combine all the radio buttons into a group. T
    - Create a common function code for all the radio buttons. F
    - Assign all the radio buttons to the same modification group. F
    - Enclose all entire radio button in a frame. F
    Also check the website it help u as u need,
    [http://help.sap.com/saphelp_nw04/Helpdata/EN/3d/c3b23782a9cc68e10000009b38f8cf/content.htm]
    Hope it helps u....
    Regards,
    Annevit

  • Problem in activating Radio buttons and need to hit save button

    Hi Gurus,
    I added custom fields in CJ06,CJ07,CJ08 T-CODES. As per user requirement ,  I created radio button fields in sub screen  and user selects radio buttons FROM A1 TO A3  fields and also user wants to click "SAVE button"  in that subscreen, that fields data should store in database table.  Is there  any Note to implement for this and suggest me how to proceed further. 
    Thanks,
    Chiru.
    Edited by: chiranjeevi Rao on Apr 1, 2010 2:24 PM

    Hi Chandrasekhar,
    Can you explain, in detail.
    Inside the EXIT, EXIT_SAPLIMR0_001, I am writing logic to insert or modify the Z-Table for custom screen.
    Here, I need to make that SAP Updates ie Triggers the "SAVE" Button, so that the logic gets executed for updating the Z-Table.
    Motto: is to have single LUW or SAVE Button.
    Thanks.
    Vijayanand.
    Message was edited by:
            Vijayanand Annamalai

Maybe you are looking for