Regarding Radio Button

Hi All,
I am using ADA Logical database in my Report which is creating Selection Screen.
In this selection screen there are two radio buttons in a same group and
first radio button is by default selected.
But in my report I have to make second radio button as default.
What shall I write in
Loop at Screen.
Endloop.
Rishi

Hi Martin,
Yes it workks. Problem solved. Thanks boss.
One last query.
Actually there were 3 Radio Buttons. I have removed first with following code.    
Loop at screen.
IF screen-name = 'XEINZEL'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
Endloop.
As it was not required.
But Martin the Label for this first Radio button was List assets, so I require this Label  to print only but not Radio Button on  Selection Screen and then next two Radio Buttons on subsequent lines. So Is it Possible.
Rishi.

Similar Messages

  • Regarding Radio button in selection screen?

    Hi experts,
    In my selection screen I am having two radio buttons.
    By default I am selecting the first radiobutton and displaying a selection block correspoding to that below.
    If I am selecting second radio button I want to display another selection block regarding to that second radio button.
    At that time first selection block should be hidden or should be disabled.
    Please help me out with sample codings.
    Thanks,
    Sakthi.

    Hi ,
    Try like this..
    TABLES : mara.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE select.
    PARAMETERS : p1 RADIOBUTTON GROUP rado USER-COMMAND hi DEFAULT 'X',
                 p2 RADIOBUTTON GROUP rado.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 .
    SELECT-OPTIONS : s_hello FOR mara-matnr MODIF ID m1,
                     s_hi FOR mara-mtart NO-EXTENSION NO INTERVALS MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b2 .
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        CASE screen-group1.
          WHEN 'M1'.
            IF p1 = 'X'.
              screen-active = 1.
            ELSE.
              screen-active = 0.
            ENDIF.
          WHEN 'M2'.
            IF p2 = 'X'.
              screen-active = 1.
            ELSE.
              screen-active = 0.
            ENDIF.
        ENDCASE.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN ON s_hi.
      CHECK sy-ucomm NE 'HI'.
    START-OF-SELECTION.
      IF p1 = 'X'.
        WRITE 'hi'.
      ENDIF.
    cheers,
    Sai

  • Query regarding radio buttons

    Suppose i have created a 2 radio buttons say A1, A2. If i click A1 radio button One table which i have created should open, Similarly when i click A2 radio button Another table should Display...an u plz give code for that??

    Hi
    What do you mean by table to be displayed? You mean the data from that table to be displayed in the report output.
    first fetch the data of two tables into two internal tables ITAB1 and ITAB2
    now write the code as
    if v_r1 = 'X'.  (first radiobutton is selected)
    write: ITAB1 fields
    else.
    Write ITAB2 fields
    endif.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Urgent regarding radio buttons

    hi friends i created radio buttons with the if else i am checking the output is coming wight..but can we ktake case statement..? if so after case what i have to wright..?
    .ParameterS:a1 type c radiobutton group radi .
    ParameterS:a2 type c radiobutton group radi.
    ParameterS:a3 type c radiobutton group radi.
    start-of-selection.
    *if a1 = 'X'.
    *WRITE: ' A1 SELECTED'.
    *ELSEIF A2 = 'X'.
    *WRITE: '   A2 SELECTED'.
    *ELSE.
    *WRITE: '  A3 SELECTED'.
    *ENDIF.
    as follows..?
    CASE radi.
    when a1.
    write: ' a1 selected'.
    when a2.
    write: ' a2 selected'.
    when a3.
    wruite: 'a3 selected'.
    when others.
    WRITE: 'A2 SELECTED'.
    endcase....
    but this radi is not accpetin can my question is can i write case here if so how..?plz reply asap

    Hi,
    You cannot do so... since Case-EndCase can be used to value of a single variable, and depending on its value, you perform some action.
    Though it is meaningless to use Case-Endcase for your version of code, since it is not appropriate here, I am just writing it down the corresponding CASE-ENCASE version of your IF-ELSE-ENDIF so that you can better understand how it works.
    Data: v_param(2) type c.
    If a1 = 'X'.
        v_param = 'A1'.
    ELSEIF A2 = 'X'.
        v_param = 'A2'.
    ELSE.
        v_param = 'A3'.
    ENDIF.
    Case v_param.                       " so here you are checking the value of a single variable
      When 'A1'.                           " checking value using When statement
        write: ' a1 selected'.
      When 'A2'
        write: ' a2 selected'.
      When 'A3'
        write: ' a3 selected'.
    EndCase.
    Hope it clears your doubt and answers your question.
    Regards, Tapas
    <Pls reward if useful or answered>

  • Regarding Radio button position

    Hi All,
    I have a requirement in which i have 2 radio buttons and 1 push button and i have declared these three like this
    PARAMETERS: r1  RADIOBUTTON GROUP g1,
                r2 RADIOBUTTON GROUP g1.
    SELECTION-SCREEN: BEGIN OF LINE.
    SELECTION-SCREEN: PUSHBUTTON 30(30) pb01 USER-COMMAND onli
                      VISIBLE LENGTH 15.
    SELECTION-SCREEN: END   OF LINE.
    If i select the first radio button and click on the push button ztable should be updated. i have written code for this but 2nd time when user clicks on the push button with out changing the radio button position, a pop up message should be displayed like 'Nothing has been changedu2019.
    Please suggest me in this issue.
    Thanks in advance.
    Regards,
    Samatha

    text 001 :Selection screen sample
    tex t002 : List
    text 003: Alv
    text 004: None
    CONSTANTS : rbSelected TYPE c LENGTH 1 VALUE 'X'.
    DATA : p_txt type c LENGTH 100.
    SELECTION-SCREEN BEGIN OF BLOCK frame1 WITH FRAME TITLE text-001.
      SELECTION-SCREEN ULINE /10(40).
      SELECTION-SCREEN BEGIN OF LINE.
        SELECTION-SCREEN POSITION 15.
        PARAMETERS: rb1 RADIOBUTTON GROUP rb.
        SELECTION-SCREEN COMMENT 20(30) text-002.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN BEGIN OF LINE.
        SELECTION-SCREEN POSITION 15.
        PARAMETERS: rb2 RADIOBUTTON GROUP rb.
        SELECTION-SCREEN COMMENT 20(30) text-003.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN BEGIN OF LINE.
        SELECTION-SCREEN POSITION 15.
        PARAMETERS: rb3 RADIOBUTTON GROUP rb.
        SELECTION-SCREEN COMMENT 20(30) text-004.
      SELECTION-SCREEN END OF LINE.
      SELECTION-SCREEN ULINE /10(40).
    SELECTION-SCREEN END OF BLOCK frame1.
    IF rb1 = rbSelected.
      CONCATENATE 'You selected' text-002 INTO p_txt SEPARATED BY space.
    ELSEIF rb2 = rbSelected.
      CONCATENATE 'You selected' text-003 INTO p_txt SEPARATED BY space.
    ELSEIF rb3 = rbSelected.
      CONCATENATE 'You selected' text-004 INTO p_txt SEPARATED BY space.
    ENDIF.
    WRITE / p_txt.

  • Regarding Radio Buttons

    Hello,
    My self created one Radio button group, in that i am created set of radio buttons.
    Then by default it is selecting one radio button.
    Now i dont want to be keep selecting bydefault one radio button in that group. For this what should I do.
    Thank you

    Hi,
    Radio buttons are meant for that only.........
    One radio button should be selected by default...
    If you want that functionality then you can use check box instead of radio butoons.
    Orelse take three radio buttons in a group and leave the one which is selected by default and use the other two for your programming.
    Reward if helpful.
    Regards,
    Syed

  • Regarding radio button and selection screen

    hi
    i have a requirement to grey out one particular select option , if any one of 4 radio button is selected. (total 5 radio buttons ) . 
    how do i proceed .
    SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE  text-001.
    SELECT-OPTIONS: p_year  for  s021-spmon obligatory,
                    p_kunag  FOR vbrk-kunag  ,
                    p_matnr  FOR vbrp-matnr  ,
                    p_augru  FOR vbrp-augru_auft  ,
                    p_vbeln  FOR vbrk-vbeln  .
    SELECTION-SCREEN END OF BLOCK blk1.
    SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE  text-002.
    PARAMETERS: nrw RADIOBUTTON GROUP g1 default 'X'user-command check,
                mwd RADIOBUTTON GROUP g1user-command check,
                rws RADIOBUTTON GROUP g1user-command check,
                edu RADIOBUTTON GROUP g1user command check
                standard RADIOBUTTON GROUP g1 .
    SELECTION-SCREEN END OF BLOCK blk2.
    SELECTION-SCREEN END OF BLOCK blk.
    i know we need to use at-selection screen output.
    but how do i set ONLY that particular select option , to no input.

    Hi ,
    Use like This
    User Dynamic Selection
    at selection-screen output.
      select single * from t000md.
      loop at screen.
        case screen-group1.
          when 'REL'.
            if not  p_old is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'BEL'.
            if not p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'ARB'.
            if  p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
          when 'MTA'.
            if  p_new is initial.
              screen-input = '0'.
              screen-required = '0'.
              screen-invisible = '1'.
            endif.
            modify screen.
        endcase.
      endloop.
    Reward Points if it is useful
    Thanks
    Seshu

  • Query regarding Radio Button

    Hi Guys,
                   In my selection screen I am giving 2 radio buttons.
    My requirement is I need a sy-date field beside one radio button.
    Is there any way to do this.
    Thanks in Advance,
    Prasad.

    Hi..use this code:
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETER : ra_1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND abc,
                ra_2 RADIOBUTTON GROUP g1.
    SELECTION-SCREEN COMMENT 7(10) display.
    *SELECTION-SCREEN COMMENT 7(10) display MODIF ID def.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      IF ra_1 = 'X'.
        display = sy-datum.  " you can modify the format of the date
      ELSE.
        display = sy-datum.
      ENDIF.
      MODIFY SCREEN.

  • Regarding radio buttons + api + onclick

    hi all,
    i have used api's for generating radio buttons in the report region.
    the requirement is that when the user chooses any one of the option in the radio button i have to store a set of details in the database.
    how do i associate this radio group with a submit action, (i.e) i need a radio group with submit just like the radio group available in the items category.
    hope i have made my requirements clear.

    Is this question different from the one that was answered here?
    calling a java script function
    Sergio

  • REGARDING RADIO BUTTON LOGIC

    HI GURU, PLEASE TELL ME IF I WANT TO ADD ONE MORE RADIOBUTTON.<AUTHORIZATION>, IF I CLICK   AUTHORIZATION THEN
    FINDING EMPLOYEE CODE.
    IN BELOW  PROGRAM IF I CLICK RADIOBUTTON PROJECT , FINDING PROJECT ID& DATE, IF I CLICK RADIOBUTTON PROJECT WITH STATUS, ENABLING ONLY PROJECT STATUS.URGENT PLEASE TELL ME HOW TO ADD LOGIC IN BELOW PROGRAM.
    REPORT  ycpr_program_hierarchy_report1.
    INCLUDE ycpi_program_hierarchy_report.
    TABLES : aufk , dpr_project , prp_action , PA0000.
    SELECTION-SCREEN :  BEGIN OF BLOCK b1 WITH FRAME.
    SELECTION-SCREEN BEGIN OF LINE .
    PARAMETERS : r1 RADIOBUTTON GROUP rd1 DEFAULT 'X' USER-COMMAND flag.
    SELECTION-SCREEN : COMMENT 3(70) text-001,
                     END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE .
    PARAMETERS : r2 RADIOBUTTON GROUP rd1.
    SELECTION-SCREEN : COMMENT 3(70) text-002,
                     END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS:r3 RADIOBUTTON GROUP rd1.
    SELECTION-SCREEN : COMMENT 3(70) TEXT-003,
                       END OF LINE.
    SELECTION-SCREEN : END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_projid FOR dpr_project-project_id MODIF ID md
    MATCHCODE OBJECT ycpsh_projectid.
    PARAMETERS : pstatown LIKE dpr_project-proc_status_own MODIF ID md1.
    PARAMETERS : p_date LIKE sy-datum OBLIGATORY DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK b2.
    c_flag = 1.
    DATA: g_flag TYPE c.
    AT SELECTION-SCREEN OUTPUT.
      IF r1 = 'X'.
        c_flag = 1.
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'MD'.
              screen-active = 1.
            WHEN 'MD1'.
              screen-active = 0.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF r2 = 'X'.
        c_flag = 0.
        LOOP AT SCREEN.
          CASE screen-group1.
            WHEN 'MD'.
              screen-active = 0.
            WHEN 'MD1'.
              screen-active = 1.
          ENDCASE.
          MODIFY SCREEN.
        ENDLOOP.
    REGARDS
    SUBHASIS

    Hi ,
    Try like this..
    TABLES : mara.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE select.
    PARAMETERS : p1 RADIOBUTTON GROUP rado USER-COMMAND hi DEFAULT 'X',
                 p2 RADIOBUTTON GROUP rado.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 .
    SELECT-OPTIONS : s_hello FOR mara-matnr MODIF ID m1,
                     s_hi FOR mara-mtart NO-EXTENSION NO INTERVALS MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b2 .
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        CASE screen-group1.
          WHEN 'M1'.
            IF p1 = 'X'.
              screen-active = 1.
            ELSE.
              screen-active = 0.
            ENDIF.
          WHEN 'M2'.
            IF p2 = 'X'.
              screen-active = 1.
            ELSE.
              screen-active = 0.
            ENDIF.
        ENDCASE.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN ON s_hi.
      CHECK sy-ucomm NE 'HI'.
    START-OF-SELECTION.
      IF p1 = 'X'.
        WRITE 'hi'.
      ENDIF.
    cheers,
    Sai

  • Regarding Radio Button Tab Traversal

    Hi All,
    Iam Using the JGoodies , I have the RadioButtons in
    my application . Here my problem is when I traverse through the Tab , focus is moving to the Deselected RadioButton label , which should not happen . Is there any way to avoid this ?
    Can any body have the idea in this scenerio ...pls help me.
    Thanks in Advance

    Well, yes of course this happens. You need to move to deselected buttons to give the user a chance to "select" the button.
    Not everybody uses a mouse and you application should not be designed to force a user to use the mouse.

  • Help needed regarding radio button

    Hi,
    I am new to oracle apex and am building some pages.I came across a problem which can be described as follows...
    I have a form in which there are check boxes(p1_item1,p1_item2.....p1_item10), what i am tryng to do is when the user clicks the first check box(p1_item) then all of the other checkboxes must be deselected( if any of them are selected before)and if the user clicks any of the remaining checkboxes then the first check box must get deselected if it was selected before.i want this to be do this dynamically before the submit button.
    i tried several things and was not successful. If any one can direct me through the steps i will be thankful.Thanks in advance.
    Sai

    user583282,
    Please update your profile to include a user-friendly name... makes it easier to communicate.
    I have a report that needed something pretty much identical to your form need.
    The code was modified from Sergio's blog. Feel free to modify it to suit your needs.
    This code can go in the header of your region...
    <script type="text/javascript">
        function ToggleAll(e)  {
                 if (e.name == "f10") {
                    if (e.checked) {
                       ClearAll();
                 else {
                    ClearF10();
        function Check(e) {
                 e.checked = true;
        function Clear(e) {
                 e.checked = false;
        function ClearAll() {  
                 var ml = document.wwv_flow;   
                 var len = ml.elements.length; 
                 for (var i = 0; i < len; i++)  {     
                      var e = ml.elements;
    if (e.name == "f01") {
    Clear(e);
    ml.f01.checked = false;
    function ClearF10() {
    var ml = document.wwv_flow;
    var len = ml.elements.length;
    for (var i = 0; i < len; i++) {     
    var e = ml.elements[i];
    if (e.name == "f01") {
    Clear(0);
    ml.f10.checked = false;
    </script>
    For the "Main" checkbox, paste this into the Label of the item:
    <input type="checkbox" name="f10" value="" onclick="ToggleAll(this)">For each of the other items, past this into the Label of the item:
    <input type="checkbox" name="f01" value="" onclick="ToggleAll(this)">NOTE the f10 versus f01.
    What will (should) happen is when you check the "Main" checkbox (f10) it should clear all of the the "Other" item checkboxes (f01) and when you check any of the "Other" checkboxes then it should clear the "Main" checkbox.
    There may be a better or more efficient way so if anyone else has some input here I won't take any offence...
    Cheers,
    Mike

  • How to select single radio button in particular group and to calculate valu

    Hi.. Experts..
    I have 2 radiobutton groups and each radiobutton group consists 10 radio buttons..
    in each group i want to select one radiobutton and based on the radiobutton selected the value
    as to get calculated.
    what happens is that if i select a radiobutton in onegroup and select in another group , radiobutton selected in previous group get's
    deselected.
    please help in this .. it's very urgent...
    here is my code .. help if want to change the coding or is there any better way of coding then this..
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
          <%@include file="tst1.htm" %>
          <htmlb:tray id    = "2"
                      width = "100%" >
            <htmlb:gridLayout columnSize  = "15"
                              rowSize     = "3"
                              cellPadding = "5"
                              cellSpacing = "5"
                              width       = "100%" >
           <htmlb:radioButtonGroup id = "rbg1"
      columnCount = "3"
       selection = "<%= selection %>" >
              <%-- qno --%>
              <htmlb:gridLayoutCell columnIndex = "1"
                                    rowIndex    = "1"
                                    width       = "30" >
                1
              </htmlb:gridLayoutCell>
              <%-- Dimensions --%>
              <htmlb:gridLayoutCell columnIndex = "2"
                                    rowIndex    = "1"
                                    width       = "300" >
                Understands the company's vision and long-term goals and the role he/she and team members have to play in accomplishing them.
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - Don't know --%>
              <htmlb:gridLayoutCell columnIndex = "3"
                                    rowIndex    = "1"
                                    width       = "80" >
                Don't Know
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "3"
                                    rowIndex    = "2" >
                N
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "3"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="n">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - Rarely --%>
              <htmlb:gridLayoutCell columnIndex = "5"
                                    rowIndex    = "1" >
                Rarely
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "4"
                                    rowIndex    = "2"
                                    width       = "20" >
                1
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "4"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "5"
                                    rowIndex    = "2"
                                    width       = "20" >
                2
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "5"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "6"
                                    rowIndex    = "2"
                                    width       = "20" >
                3
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "6"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="hello">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - sometimes --%>
              <htmlb:gridLayoutCell columnIndex = "7"
                                    rowIndex    = "1" >
                Some
                times
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "7"
                                    rowIndex    = "2"
                                    width       = "20" >
                4
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "7"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "8"
                                    rowIndex    = "2"
                                    width       = "20" >
                5
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "8"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "9"
                                    rowIndex    = "2"
                                    width       = "20" >
                6
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "9"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="hello">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - most of the time --%>
              <htmlb:gridLayoutCell columnIndex = "10"
                                    rowIndex    = "1" >
                Most of the time
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "10"
                                    rowIndex    = "2"
                                    width       = "20" >
                7
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "10"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "11"
                                    rowIndex    = "2"
                                    width       = "20" >
                8
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "11"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - all the time --%>
              <htmlb:gridLayoutCell columnIndex = "12"
                                    rowIndex    = "1" >
                All the time
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "12"
                                    rowIndex    = "2"
                                    width       = "20" >
                9
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "12"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "13"
                                    rowIndex    = "2"
                                    width       = "20" >
                10
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "13"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              </htmlb:radioButtonGroup>
          </htmlb:gridLayout>
    <%-- qno2 --%>
    <htmlb:gridLayout columnSize  = "15"
                              rowSize     = "3"
                              cellPadding = "5"
                              cellSpacing = "5"
                              width       = "100%" >
    <htmlb:radioButtonGroup id = "rbg2"
      columnCount = "3"
       selection = "<%= sel %>" >
              <%-- qno --%>
              <htmlb:gridLayoutCell columnIndex = "1"
                                    rowIndex    = "1"
                                    width       = "30" >
                1
              </htmlb:gridLayoutCell>
              <%-- Dimensions --%>
              <htmlb:gridLayoutCell columnIndex = "2"
                                    rowIndex    = "1"
                                    width       = "300" >
                Understands the company's vision and long-term goals and the role he/she and team members have to play in accomplishing them.
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - Don't know --%>
              <htmlb:gridLayoutCell columnIndex = "3"
                                    rowIndex    = "1"
                                    width       = "80" >
                Don't Know
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "3"
                                    rowIndex    = "2" >
                N
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "3"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="n">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - Rarely --%>
              <htmlb:gridLayoutCell columnIndex = "5"
                                    rowIndex    = "1" >
                Rarely
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "4"
                                    rowIndex    = "2"
                                    width       = "20" >
                1
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "4"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "5"
                                    rowIndex    = "2"
                                    width       = "20" >
                2
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "5"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "6"
                                    rowIndex    = "2"
                                    width       = "20" >
                3
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "6"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="hello">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - sometimes --%>
              <htmlb:gridLayoutCell columnIndex = "7"
                                    rowIndex    = "1" >
                Some
                times
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "7"
                                    rowIndex    = "2"
                                    width       = "20" >
                4
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "7"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "8"
                                    rowIndex    = "2"
                                    width       = "20" >
                5
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "8"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "9"
                                    rowIndex    = "2"
                                    width       = "20" >
                6
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "9"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="hello">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - most of the time --%>
              <htmlb:gridLayoutCell columnIndex = "10"
                                    rowIndex    = "1" >
                Most of the time
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "10"
                                    rowIndex    = "2"
                                    width       = "20" >
                7
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "10"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "11"
                                    rowIndex    = "2"
                                    width       = "20" >
                8
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "11"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <%-- Rating Scale - all the time --%>
              <htmlb:gridLayoutCell columnIndex = "12"
                                    rowIndex    = "1" >
                All the time
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "12"
                                    rowIndex    = "2"
                                    width       = "20" >
                9
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "12"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "13"
                                    rowIndex    = "2"
                                    width       = "20" >
                10
              </htmlb:gridLayoutCell>
              <htmlb:gridLayoutCell columnIndex = "13"
                                    rowIndex    = "3" >
                <input type="radio" name="***" value="male">
              </htmlb:gridLayoutCell>
              </htmlb:radioButtonGroup>
            </htmlb:gridLayout>
          </htmlb:tray>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

    Dont duplicate the thread, follow ur original thread Re: Regarding radio buttons
    Raja T

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • Regarding use of radio button

    Dear All,
       I add two radio button in my form. And they work. One button for 'male' and another for 'female'.
    When i click male button then it sends '1' to database in the respective field and
    when i click female button then it sends '2' to database.
    But i need 'M' for male and 'F' for female.
    what is the solution.
    Good day.
                                                                                  Regards
                                                                 Bodhisatya Bhattacharjee

    Try something like this for the first Option button ...
            Dim oOptionBtn As SAPbouiCOM.OptionBtn
            With oItem
                .Left = 100
                .Top = 100
                .Width = 50
                .Height = 20
                oOptionBtn = .Specific
            End With
            With oOptionBtn ' data bind
                .Caption = strCaption
                .ValOn = 'M'
                .ValOff = 'F'
                If Len(strGroupWith) > 0 Then .GroupWith(strGroupWith) ' Use tihis to group the option buttons
                If Len(Trim(strFieldName)) > 0 Then .DataBind.SetBound(True, "", "FIELD1")
            End With
    and then set the
    ValOn = 'F'
    and .
    ValOff = 'M'
    for the other button.
    hope it works for you
    null

Maybe you are looking for