Radio Buttons selection

Hi to all,
I am using 5 radio buttons.
i did some fire partial action for radio buttons.(means call some procedures).
My problem is
i select the first radio button,suppose it throws some exception then radio button selection is goes to last radio button.
but in my requirement when ever exception is raiise,that time first radio button is selected or all radio buttons are deselected.
please give the suggestion.

You have to do the following things:
1. Attach a radio group to all these radio buttons.
2. Give them all different names.
3. And when one of the radio button is clicked, u need to set that VO attribute attachhed to radio button as "Y" and rest as N... then it works..
CO -> PR
OAMessageRadioButtonBean periodicRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("PeriodicallyItem");
periodicRadioButton.setName("FREQUENCY_GROUP");
periodicRadioButton.setValue("PERIODIC");
OAMessageRadioButtonBean specDaysRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("SpecDaysItem");
specDaysRadioButton.setName("FREQUENCY_GROUP");
specDaysRadioButton.setValue("SPECIFIC_DAYS");
OAMessageRadioButtonBean specWorkRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("SpecWorkDaysItem");
specWorkRadioButton.setName("FREQUENCY_GROUP");
specWorkRadioButton.setValue("SPECIFIC_WORK");
OAMessageRadioButtonBean specWeekRadioButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("SpecWeekDaysItem");
specWeekRadioButton.setName("FREQUENCY_GROUP");
specWeekRadioButton.setValue("SPECIFIC_WEEK");
CO -> PFR
String radioGroupValue = pageContext.getParameter("FREQUENCY_GROUP");
if(eventName.equals("frequency"))
am.invokeMethod("handleFreqSchEvent",paramList);
AM
if("PERIODIC".equals(freqValue))
schFreqRow.setPeriodically("Y");
schFreqRow.setSpecDays("N");
schFreqRow.setSpecWorkDays("N");
schFreqRow.setSpecWeekDays("N");
else if("SPECIFIC_DAYS".equals(freqValue))
schFreqRow.setPeriodically("N");
schFreqRow.setSpecDays("Y");
schFreqRow.setSpecWorkDays("N");
schFreqRow.setSpecWeekDays("N");
else if("SPECIFIC_WORK".equals(freqValue))
schFreqRow.setPeriodically("N");
schFreqRow.setSpecDays("N");
schFreqRow.setSpecWorkDays("Y");
schFreqRow.setSpecWeekDays("N");
else if("SPECIFIC_WEEK".equals(freqValue))
schFreqRow.setPeriodically("N");
schFreqRow.setSpecDays("N");
schFreqRow.setSpecWorkDays("N");
schFreqRow.setSpecWeekDays("Y");
Hope this helps..

Similar Messages

  • Using radio button selection in multiple tables

    Hello All,
    I've got a bit of a design issue and it being a Friday my brain is a bit foggy and I can't seem to figure out a solution.
    what I want to do is have 3 tables. The user should only be able to select one line from any of the three tables.
    I can do this by having events that clear down selection on the two other tables on any selection of the third, but the select buttons of tables don't really give the UI impression that only one row can be selected. To do this I'd like to use the radio button element.
    so
    table A
    choice - name
    (o) - Anne
    (o) - Bob
    (o) - Charlie
    Table B
    choice - name
    (x) - David
    (o) - Ellen
    (o) - Fran
    Table C
    choice - name
    (o) - George
    Here the entry in table B for David is selected. But any selection of any of the other options should deselected.
    My thoughts are to use a radio button ui element, bind the "selected" value to a unique id for each row/table (an attribute of the node element for each table) and the value to a common shared attribute (not table specific).
    Any better ideas - and certainly any which would mean I'm not going to have to maintain a lookup table of my unique ids and node elements to find out which one is selected?
    Cheers,
    Chris

    Ok - here's how I did it.
    I created another lookup table which had a guid and reference to the element.
    in the each elements I had a guid which I bound to the key for selection property of the radio button in the table.
    I then bound the selected key property to an attribute that was common to all elements.
    in my "processing" logic I read the selected key, read the lookup table - and therefore got the reference to the selected element.
    Would have been an awful lot easier if I could have used a reference to the element itself as the "key" - but that was required to be a character field.
    [image showing radio button selection working across multiple tables|http://i51.tinypic.com/bi79dx.jpg]
    End result works quite nicely.
    Cheers,
    Chris

  • Clearing radio button selection

    Guys, iam stuck in a situation where iam not able to clear the radio button selection in the SINGLESELECT tableview. I am using MVC approach and my layout is similar to bookshop example in SAP  tutorial_4_mvc.
    I found that even in the SAP example the raio button is not cleared when a new search is used. The radio button remains selected and it has to be clicked again to refresh and retrieve new values. But I would like to clear the selection.
    Any help on how to clear previous radio button selection every time the page is reloaded?
    Thanks.

    hi,
    i tried this but for some reason the index of the prviously selected row still gets applied to the new selection and is checked.
    in my do_handle_event:
    IF htmlb_event IS BOUND  AND
         htmlb_event->name = 'tableView'.
        table_event ?= htmlb_event.
        selectedrowindex = table_event->selectedrowindex.
        READ TABLE i_result INDEX selectedrowindex INTO wa.
        IF sy-subrc EQ 0.
          CLEAR: imatfact1, iagrfact1, iagrhead1, iabgru1, v_part_detail,
    selectedrowindex.
    processing data
    ENDIF.
    In my DO_REQUEST:
    result_view->set_attribute( name = 'i_result' value = i_result ).
      result_view->set_attribute( name = 'iterator' value = me ).
    result_view->set_attribute( name = 'selectedrowindex' value =
    selectedrowindex ).
      call_view( result_view ).
    In my page:
    <htmlb:tableView id              = "result"
                     headerText      = "Header Text"
                     onNavigate      = "onMyNavigate"
                     selectionMode   = "<%= v_sel_mode %>"
                     emptyTableText  = "No data found matching your query!"
                     onRowSelection  = "<%= v_onrow_sel %>"
                     table           = "<%= i_result %>"
                     iterator        = "<%= iterator %>"
                     visibleRowCount = "10"
                     selectedRowIndex = "<%= selectedrowindex %>">
      <htmlb:tableViewColumns>
        <htmlb:tableViewColumn columnName          = "MATNR"
                               width               = "100"
                               horizontalAlignment = "left"
                               title               = "PART" >
        </htmlb:tableViewColumn>
        <htmlb:tableViewColumn columnName          = "ZFLAG"
                               width               = "100"
                               horizontalAlignment = "left"
                               title               = "DISCOUNT" >
        </htmlb:tableViewColumn>
      </htmlb:tableViewColumns>
    </htmlb:tableView>
    I am also using the interface methods u tthere is no code inside:
    IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
    Please suggest what could be wrong.
    I have debugged this and saw the selected rowindex as '0' also but it gets applied somewhere again.
    Thanks.

  • I want to add radio button selected value in shopping cart

    hi
    i am new to java
    and i am doing shopping cart project
    and i want to aad radio button selected value in cart but only one value.
    i am doing that in jsp.
    when iam adding that value the name of radio button is printed.
    and in remove page nothing displyed
    pls help me
    Thanks in advance.
    my code is-
    index.jsp
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    <html>
    <head>
    <title>Shopping cart</title>
    <style>
    * { font-size: 12px; font-family: Verdana }
    input { border: 1px solid #ccc }
    </style>
    </head>
    <body>
    <jsp:declaration>
    java.util.Enumeration parms;
    java.util.Enumeration values;
    </jsp:declaration>
    <jsp:scriptlet>
    parms = request.getParameterNames();
    values = request.getParameterNames();
    while(parms.hasMoreElements()) {
    String name = (String) parms.nextElement();
    String value = (String) values.nextElement();
    session.setAttribute(name, value);
    </jsp:scriptlet>
    <img src="images/add.png" onclick="document.location='index.jsp'">
    <img src="images/remove.png" onclick="document.location='remove.jsp'">
    <img src="images/cart.png" onclick="document.location='cart.jsp'">
    <h2>Add to shopping cart</h2>
    <form method="POST" action="index.jsp">
    <table>
    <tr>
    <td><input type="radio" name="radio" value="$10.00" checked></td>
    <td>$10.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$15.00"></td>
    <td>$15.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$20.00"></td>
    <td>$20.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$25.00"></td>
    <td>$25.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$30.00"></td>
    <td>$30.00</td>
    </tr>
    <tr>
    <td><input type="radio" name="radio" value="$35.00"></td>
    <td>$35.00</td>
    </tr>
    </table>
    <br><br>
    <input type="submit" value="submit">
    </form>
    </body>
    </html>
    cart.jsp
    <html>
    <head>
    <title>Shopping cart</title>
    <style>
    * { font-size: 12px; font-family: Verdana }
    </style>
    </head>
    <body>
    <jsp:declaration>
    java.util.Enumeration parms;
    </jsp:declaration>
    <img src="images/add.png" onclick="document.location='index.jsp'">
    <img src="images/remove.png" onclick="document.location='remove.jsp'">
    <img src="images/cart.png" onclick="document.location='cart.jsp'">
    <h2>The shopping cart</h2>
    <jsp:scriptlet><![CDATA[
    java.util.Enumeration content = session.getAttributeNames();
    while (content.hasMoreElements()) {
        out.println(content.nextElement());
        out.println("<br>");
    ]]></jsp:scriptlet>
    </body>
    </html>
    remove.jsp
    <html>
    <head>
    <title>Shopping cart</title>
    <style>
    * { font-size: 12px; font-family: Verdana }
    input { border: 1px solid #ccc }
    </style>
    </head>
    <body>
    <jsp:declaration>
    java.util.Enumeration parms;
    </jsp:declaration>
    <jsp:scriptlet>
    parms = request.getParameterNames();
    while(parms.hasMoreElements()) {
    String name = (String) parms.nextElement();
    session.removeAttribute(name);
    </jsp:scriptlet>
    <img src="images/add.png" onclick="document.location='index.jsp'">
    <img src="images/remove.png" onclick="document.location='remove.jsp'">
    <img src="images/cart.png" onclick="document.location='cart.jsp'">
    <h2>Remove items from cart</h2>
    <form method="get" action="remove.jsp">
    <table>
    <% if (session.getAttribute("$10.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$10.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$15.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$15.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$20.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$20.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$25.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$25.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$30.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$30.00</td>
    </tr>
    <% } %>
    <% if (session.getAttribute("$35.00") != null) { %>
    <tr>
    <td><input type="radio" name="radio"></td><td>$35.00</td>
    </tr>
    <% } %>
    </table>
    <br><br>
    <input type="submit" value="submit">
    </form>
    </body>
    </html>

    i used this where park .visits is the java class for
    visit object that contains getResort() method
    now error has gone but nothing is stored in the
    actionform class I would take that to mean the List
    1. does not contain a collection of Visit. You can check that by printing some debug statements inside the loop
    2. contains collection of visit objects. However the visit objects return null for getResort().
    Why dont you debug by printing out the objects from wherever you sit it in request/session scop (i.e in your servlet/web-handler)
    ram.

  • Keep Radio Button selected after action

    Hi All - This is a strange situation.
    I have 3 context node for Radio Buttons
    the 1st context node is for 2 radio buttons
    the 2nd context node is for 6 radio buttons
    the 3rd context node is for 4 radio buttons
    Scenario: 1st Context node has "DEFAULT VALUE" so is initially selected, the other two context node doesn't have DEFAULT VALUE.
    I select a radio button (that belongs to the second node) and also select a radio button (that belongs to the 3rd context node) now I click a custom button that will trigger an ACTION.
    1st & 3rd Radio buttons keep the RADIO BUTTON SELECTED but 2nd Radio Button now is like INITIAL, WHY??? if everything is designed the same way.
    I want to keep the selected value so the user can see which options they selected.
    A1          B2            C3      <----
    First time (after initialization)
    X
    A1         B2            C3      <----
    I selected values
    X            X              X
    A1         B2             C3     <----
    After Action is trigger
    X                             X
    thanks!
    Jason PV

    Hi,
    I dont see any reason other than selected value getting lost in wddomodify method or in action event handler.
    Check in WDDOMODIFYVIEW or in Action Handler method you are not playing modifying the context node bound to 2 group of radio buttons .
    Or you can fetch the selected value in your action handler store it in some view attribute and bind the node back again with same value on wddomodifyview.
    Regards
    Manas Dua

  • How to get Radio button select event in my co

    Hi,
    I want to get the radio button selection event in my co,how can i get the event?

    Hi,
    841475 wrote:
    I want to get the radio button selection event in my co,how can i get the event?---There is no event for radio button.
    ---U need to explicitily set the event for the radio button.
    Action:FirePaatialAction
    Event:RadioEvent---Get the event in co by below code:
    if("RadioEvent".equals(pageContext.getParameter(EVENT_PARAM)))
    ---In radio button event..:)
    Regards
    Meher Irk

  • HIdidng input field depeding on radio button selected

    Hello Experts,
    Can any let me know  or point to a tutorial ?
    how I can hide a input field another input field depending on the selected radio button.
    The radio button I have are fax and email.
    If Fax is selected I want to dispaly input field for fax and vice versa.
    Thanks,
    Raj

    Hi raj,
    (1)Create two context attribute of type "Visibility".
        (a) faxVisible
        (b) emailVisible
    (2)And bind the "visible" property of inputfields to these attributes.
    (3)On radio button selection in the action handler do following thing  for fax selection and vice versa.
    wdContext.currentContextElement().setFaxVisible(WDVisibility.VISIBLE);
    wdContext.currentContextElement().setEmailVisible(WDVisibility.NONE);
    Regards,
    Praveen

  • Disable an Input field with the help of a radio button selection.

    Hi Guys,
    I know it is a very basic question and also has many threads for the mentioned query. None of the threads gave me a real clue about the problem. It is as follows:
    Simply, I have an input field and there are two more radio buttons on the screen, say rd1, and rd2.
    Initially Rb_gtgr is active and input field is blank and disabled, and when i select Rb_selgr, input field should be active and mandatory. It means when i try to execute the code with out entering any value after it is enabled, an error message should appear. For this the code is as follows:
    AT SELECTION-SCREEN OUTPUT.
      PERFORM screen_grace_on.
    AT SELECTION-SCREEN ON p_grace.
      PERFORM check_grace_days.
    FORM screen_grace_on .
      DATA: l_v_grace TYPE char2.
      CONSTANTS: l_c_grace TYPE char7 VALUE 'P_GRACE'.
    l_v_grace = p_grace.
    CLEAR p_grace.
      IF rb_selgr EQ c_x.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-required = 1.
           screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC'.
            screen-input = 0.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " SCREEN_GRACE_ON
    FORM check_grace_days.
      IF rb_selgr EQ c_x AND  p_grace EQ 0.
        PERFORM screen_grace_on.
        MESSAGE e492(/ams/ramfcmess1).          " Enter the number of Grace days
      ELSEIF rb_selgr EQ c_x AND p_grace GE 0.
        PERFORM screen_grace_on.
      ENDIF.
    ENDFORM.
    Ideally this code should work since in the PBO i.e., At selection screen output i am enabling the fields, and also when i select the second radio button i am also checking for the value too..
    I am working on 4.7 version of SAP. The Most interesting observation is it works fine for few variants, and not with others.
    Thank you

    Hi,
    Go through this following code,
    selection-screen begin of block B2 with frame title TEXT-005.
    selection-screen begin of line.
    parameters:     P_BIRPT type C radiobutton group RAD1 default 'X' user-command UCOMM.
    selection-screen comment 3(20) TEXT-002 for field P_BIRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_COLRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-003 for field P_COLRPT.
    selection-screen end of line.
    selection-screen begin of line.
    parameters:     P_PAYRPT type C radiobutton group RAD1.
    selection-screen comment 3(20) TEXT-004 for field P_PAYRPT.
    selection-screen end of line.
    selection-screen end   of block B2.
    selection-screen begin of block B1 with frame title TEXT-001.
    select-options: SO_KTOKD for  KNA1-KTOKD modif id M4,
              SO_BLART for  BSIS-BLART modif id M2.
    parameters:     P_PAID   type ZCLEAR     modif id M3 as listbox visible length 20.
    selection-screen end   of block B1.
    at selection-screen output.
      loop at screen.
        if P_BIRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2' or SCREEN-GROUP1 = 'M3' .
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_COLRPT eq 'X'.
          if SCREEN-GROUP1   = 'M3'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        elseif P_PAYRPT eq 'X'.
          if SCREEN-GROUP1   = 'M2'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
          if SCREEN-GROUP1   = 'M4'.
            SCREEN-INVISIBLE = '1'.
            SCREEN-ACTIVE    = '0'.
            modify screen.
          endif.
        endif.
      endloop.
    Thanks
    Anil D

  • Sub screen: Handling the Radio button selection?

    Hi,
    Scenario:
    I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub screen.
    I have grouped the radio button and also tried assigning Function code to it, but in vain..:(
    Issue
    I am not able to handle the event triggered by the selection of the radio buttons?
    Kindly suggest.
    Regards
    s@k

    Hi,
    Are you still have any Issue, Let us know
    In the Main Screen Element List there is a field OK_CODE pass an entry into it
    in the TOP Include
    DATA : OK_CODE type SY-UCOMM. " This captures the OK_CODE from the Screen.
    Since SUb Screen cant have their Own OK_CODE this can be handled in the Main Screen only
    Try in PAI of Sub Screen using OK_CODE if it is not working then Implement the same in PAI of Main Screen
    The system will generate UCOMM for Radio Button since they are in One Group only. Each Radio button cannt have a separate UCOMM assigned. In Screen Painter (if It is Module Pool) assign a FCode for the Radio Button.
    Even if try changing the FCODe Value they still will have the New Changed Value but cannot be changed.
    This automatically triggers PAI . only way to capture it is check
    case ok_code. " Optionally you can omit this
    when  ok_code = 'RAD'.  " This is common for all the Radio BUttons but cant be different
    if r1 = 'X'.
    elseif r2 'X' " Etc.
    endif.
    endcase.
    Ram
    Edited by: Ramchander Krishnamraju on Feb 26, 2010 10:37 AM

  • How to make some fields mandatory based on radio button selected

    Hi,
    As per requirement i have two radio buttons in my screen.
    1.update
    2.Display.
    When the user clicks update then certain fields of selection screen should be made mandatory.
    And if the user cliks the Display Radio Button then certain fields should be made mandatory.
    How to code for it.
    Thanks and Regards,
    Smriti

    Hi ,
    use this code ,
    now according to your requirement you make changes to your parameters.
    parameters: r1 as radiobutton group g1, " this id you update button
                r2 as radiobutton group g1.         " this is for display
    PARAMETERS: TEST1(10) MODIF ID SC1, " assume these are the fields as parameters.
    TEST2(10) MODIF ID SC2,
    TEST3(10) MODIF ID SC1,
    TEST4(10) MODIF ID SC2.
    AT SELECTION-SCREEN OUTPUT.
    if g1 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
      IF SCREEN-GROUP1 = 'SC2'.
        SCREEN-INTENSIFIED = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    elseif g2 = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
      IF SCREEN-GROUP1 = 'SC2'.
        SCREEN-INTENSIFIED = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Please let me know if you still need any help.
    Thanks and regards,
    Rajeshwar

  • Disabling fields on the basis of radio button selected

    Hi experts,
    I have a requirement where in i have a dialogue screen which has radio buttons and few other input fields.
    when i check a radio button on the screen i have to get an input field greyed out on the same screen immediately.
    i have grouped the input fields to be greyed out as GR1.
    i used the following code in the PBO of the screen which is not working,
    if  oradio eq 'X'.
          loop at screen.
            if screen-name = 'S_CREATE'.
              screen-group1 = 'GR1'.
              screen-input   = 0.
            endif.
            modify screen.
          endloop.
    endif.
    please give some input.

    Hi
    *Hello Just do the Following.*
    *" I think you are missing the below Grouping Part otherwise your code looks ok*
    *go to EDIT -->Grouping--> Radio Button Group --> Define " before this select all the Radio Buttons.*
    *all the radio button names should be r1, r2, r3 etc as declared above " Make their names same whatever you give.*
    *" Assign a Function Code for them So that automatic PAI/PBO will Take Place once you select a radio Button*
    In TOP include/ Global area declare no of radio buttons.
    data : r1, r2, r3. etc " Default they take char with one length.
    if you are in Dialog program
    " I think you are missing the below Grouping Part otherwise your code looks ok
    go to EDIT -->Grouping--> Radio Button Group --> Define " before this select all the Radio Buttons.
    all the radio button names should be r1, r2, r3 etc as declared above " Make their names same whatever you give.
    " Assign a Function Code for them So that automatic PAI/PBO will Take Place once you select a radio Button
    in PBO
    module modify_screen.
    Now in Program
    Module modify_screen.
    if r1 = 'X'.
    loop at screen.
    if screen-group1 = 'GRP'.
    screen-input = 0 " or 1.
    modify screen.
    else" implement for other Radio buttons
    endloop.
    endmodule.
    Cheerz
    Ram

  • Radio button & select options in same line

    Hi,
       I am working in sap 3.1 version. there I required radio button and select options in same line. here begin of line is not allowing for select options.
    Thanks,
    suma

    Hi,
    Hope the below code helps you.
    SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT [/][pos](len)
                              {text|{[text] FOR FIELD sel}}
                              [VISIBLE LENGTH vlen]
                              [MODIF ID modid]
                              [ldb_additions].
      parameters: p1 radiobutton group 1,
                  p2 radiobutton group 1.
      select-options s_date for sy-datum.
      SELECTION-SCREEN END OF LINE.
    You can use SELECTION-SCREEN COMMENT for placing the appropriate comments at respective positions.
    Regards,
    Satya

  • How to make buttons as disable based on radio button selection in .htm

    Hi
    I have two radio buttons. So i want that when i select one radio button other buttons should become disable in
    .htm in crm webui.
    Thanx,
    Nawal kishore.

    I am not sure why u need this .. but if you disable the radio button, user won't be able to change the radio buttons any more!!!
    You can do it in this way.
    1. go to the radio button attribute of the context node ..
    if get_p_xxxx method is present then modify that to include the below code. If not present create the method. see any standard method
    CASE iv_property.
       WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'selected'. "remember case
    endcase.
    2. create a event with the name 'selected'. "" case is important
    3. check in do_handle_event if the event is created or not..." if there is not event added in that method, you need to add your method name there...
    4. set some flag in the event method which you have to access from the get_i_XXX method(XXX is the radio button attribute).
    depending on the flag you make it disable.

  • How to handle the current row with radio button selection???

    Hi Everyone,
    I have one ADF page with one table and one "Find" button.
    I have created one new attribute with VARCHAR2(1) in the VO and dragged that attribute as first column in the table. And changed that first column to Radio Button to select only one row at a time.
    Upon clicking on the "Find" button i need to get the values of current selected row.
    How can i get the values of selected row?
    What code should i write to get the values of selected row in Method Binding of "Find" button?
    Any suggestions will be really useful.
    Thanks.

    Hello Kumar,
    I have some comments on your case.
    >
    I have created one new attribute with VARCHAR2(1) in the VO
    >
    1- You should create this attribute in the Entity object and then add it to the view object.
    2- Do you need that only one radio button is set at a time for all rows ? If yes then you need to handle the case when the user set more than one row and clear the value of the attribute for all other rows.
    >
    How can i get all the values of current row in backing bean method(method binding of Find method)?
    can u plz provide me the code for that?
    >
    If you mean by the current row is that the row with its value of the selected attribute is set (the radio button is set for that row), then you can write a method in the viewObjectImpl class and expose it to client interface and call it from your bean.
    here is an example based in Department table in HR schema.
    //This method is written in DepartmentsViewImpl   
    public Row getSelectedRadioRow(){
                //create a second row set to not impact the row set used in ADF
                RowSet duplicateRowSet = this.createRowSet("duplicateRowSet");
                //get the current row of the table to set it back after re-executing the VO
                DepartmentsViewRowImpl currentRow = (DepartmentsViewRowImpl)this.getCurrentRow();
                Row[] filteredRows = duplicateRowSet.getFilteredRows("IsSelected", "1");
                DepartmentsViewRowImpl row=null;
                if(filteredRows.length>0){
                    row = (DepartmentsViewRowImpl)filteredRows[0];
                    System.out.println("Department Name " + row.getDepartmentName());              
                this.setCurrentRow(currentRow);
                duplicateRowSet.closeRowSet();
                return row;           
            }

  • Radio button selection, deselecting others

    My experience with "radio" buttons in GUI libraries is that selecting one in a group deselects any other button in that group -- kinda like a car radio (hence "radio" button).  How do we do that in LabView?  I thought I had seen a property to do that (though I may have been using some other GUI at the time)
       ...Dan

    Hi Dan,
    If you are using LabVIEW 7.1 or later, you can use the Radio Buttons Control in the Boolean palette to accomplish exactly what you're looking for.  If you're using a previous version of LabVIEW, you will have to write the underlying code to do this selection/deselection yourself...I'm sure you can find an example of how to do this on these forums somewhere.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

Maybe you are looking for