Event to handle radio button changed in a dynpro

Hi Everyone,
how can i handle if a radio button changes in a dynpro?
I want to disable other buttons if a radio button is selected
Thanks

Hi ,
you can do that..
first group the radio buttons in the screen and assign function group for each radio button by double clicking ..
and write the logic enable and disable fields in the screen in PBO
regards,
Prabhudas

Similar Messages

  • Events Triggered During Radio Buttons Changes

    Hi ,
    I added 3 radio Buttons in my Parameter Screen.
    Whenever iam changin the Buttons, Both At Selection Screen Ouptput and At Selection Screen Event is executed.
    Is it correct ?
    Thanks
    Kuna.

    Hi Venkat,
    ths is the first result in  Google if you search for your subject with a preceding ABAP.
    [Next time please try yourself, thank you!|http://help.sap.com/saphelp_nw04/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/content.htm]
    Regards,
    Clemens

  • How to handle radio-buttons in FB05  bdc????

    How to change Additional selections radio-button from none to Document numbers in CALL TRANSACTION BACKGROUND MODE..............................................
    Edited by: Raghavender Poosarla on Apr 8, 2008 10:32 AM

    I have BDC requirement of FB05 transaction... I am stuck at one point where this recordin is working in Foreground mode and not in Backgroung mode...The reason being there is a bit in which I am selecting a readio-button from value 'NONE' to 'Document numbers' WHICH IS HAPPENING IN FOREGROUND AND NOT IN BACKGROUND ....Can any one tell is there any special way for handling radio-buttons in recording of an transaction???

  • How to handle Event when a radio button in selection screen is clicked

    Hi all,
       What is the Event generated when a radio button is clicked in the selection Screen. My requirement is .If one radio button is clicked a field in selection screen should be greyed.
       Here I used AT SELECTION-SCREEN OUTPUT. but this event is generated only if i press 'ENTER' after clicking the radio button in the selection screen.
       Is there any other way to process this radio button event?
    Thanks&Best Regards,
    Vishnu

    hi,
    try like this
    TABLES : kna1,lfa1.
    SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-002.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : rad_but1 RADIOBUTTON GROUP one DEFAULT 'X' USER-COMMAND ucom.
    SELECTION-SCREEN COMMENT 3(26) text-003.
    SELECT-OPTIONS : kunnr FOR kna1-kunnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : rad_but2 RADIOBUTTON GROUP one .
    SELECTION-SCREEN COMMENT 3(26) text-004.
    SELECT-OPTIONS : lifnr FOR lfa1-lifnr.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN:END OF BLOCK blk1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF rad_but1 = 'X'.
          IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH' .
            screen-input = '1'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
            screen-input = '0'.
            REFRESH lifnr.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
        IF rad_but2 = 'X'.
          IF screen-name = 'KUNNR-LOW' OR screen-name = 'KUNNR-HIGH'.
            REFRESH kunnr.
            screen-input = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF screen-name = 'LIFNR-LOW' OR screen-name = 'LIFNR-HIGH'.
            screen-input = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    reward if usefull....

  • Double click event on a radio button

    Hi all,
    I have a servelet and a java script. I want to execute a method in my java script on double click on a Radio button in my page.
    I tried with setOnDblClick() method on the radio button, but the event is not fired.
    Please help.

    call you js fn on ondblclick event.

  • How to handle radio buttons

    hi.
    i put 3 radio buttons in my scene and i wan't to handle the state of this buttons in an other component "graph"
    so i create group of buttons
    var group = SwingToggleGroup{
    var choiceText = ["Cercle","Square" ,"Rectangle"];
    var formchoices = for (text in choiceText)
        SwingRadioButton{
            text: text
            foreground: Color.GRAY
            font: Font{
                name: "Tahoma"
                size: 15
            toggleGroup: group
        }//SwingRadioButtonand after i passed values to my graph component :
    var graph: Graph = Graph{
    cercleForm : bind formchoices[1].focused
    squareForm : bind formchoices[2].focused
    rectangleForm  : bind formchoices[3].focused
    };but that's not working !!
    thx

    hi
    yes that's it ! i have to use the selected attribute and not focused. it's fine now :)
    But i am asking the question : must i pass the parameters for each component ?
    is it possible to      access to one component in the Scene from an other directly ?
    ( in flash it's possible with "root")
    thx
    ilyes

  • How to handle Radio buttons on screen.(urgant)

    Dear all,
    my req is : i had a screen , on that there are 3 radio buttons,Based on the radion button selection on that screen i've to trigger the 3 select statements.
    if  Radio button 1
        execute select stmt 1.
    if  Radio button 2
        execute select stmt 2.
    if  Radio button 3
        execute select stmt 3.
    how to write this and where.
    Pls frnds this is urgant for me.
    please help me,
    Thanks in advance,
    With regards,
    Ajay Kumar K,
    9908979994.

    hiii....
    you have to remember that you have to define the radio buttons in 1 group.because if changes are made in the group from the elements list then it would affect on all the radio buttons for a particular tasks.
    again radio buttons are always been declared with the parameter statements.
    for eg..
    Parameters:
    p_rad1 radiobutton group rad1 default 'X' user-command rad1,
    p_rad2 radiobutton group rad1,
    p_rad3 radiobutton group rad1.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF p_rad1 = 'X'.
    select statement 1.
    elseif p_rad2 = 'X'.
    select statement 2.
    elseif p_rad3 = 'X'.
    select statement 3.
    endif.
    The group group over here is RAD1.
    the default radio button over here is in radio button 1. you can also also check any of the radio buttons as default.
    thanks..
    any more help pzz revert back...

  • Prevent Radio Button Change

    I am building a simple form.  Have a table displaying a list of employee names and then 3 columns: "In Office", "Out of Office", "Off".  I want to use a radio button group to display the values in my table.  I have that working, and it's correctly checking the right radio button.  What I want to do is prevent the user from changing the value.  I'll provide an "edit" link so they can update each record.  But right now, the list of records displays, and you're free to change the radio button value on each record.  Of course, none of that writes back to the database.  But still, I know what will happen is my users will change the value on that screen and think they've updated their status.
    I found how to disable, but I don't want the radio group greyed out.  Just locked from updating on that page.  See the image included. Any direction would be great.  Thanks.

    You are correct.  Even though they change the radio button that's clicked, it won't update the record.  What I was shooting for was to lock it from being changed so that they know they need to click an edit link to update that record.  My concern is that someone will not pay attention to the training and click a different button on the original page and assumed they changed it.
    Didn't think this would be such a big deal.  I do this easily in Access, because Access has two separate properties: locked and enabled.  So I'm able to lock the radio button from being changed without greying it out so it's hard to see.  Changing "enabled" to no would grey it out.  I'll probably just do this with a drop down instead.  I just thought there might be some way to accomplish the same thing on a web page that I do with the Access properties.  But thanks for the help...

  • Why does disabling radio buttons change my formatted text size?

    When I recycle through a multiple choice quiz i have created,
    disabling the radio buttons also makes the label of the radio
    button resort to a (circa) point 12 font. There doesn't seem to be
    a way to get around this. Any advice?

    I guess you, like me, are a poor typist. There is a bug, but it only really shows up when you use the mouse to repeatedly position the cursor, or move around with the arrow keys.
    My "work around" is to press enter about three times as soon as I get into the typing space. Then if I accidentally go "past the end of the formating" it does not turn to rubbish. I did not realise I was doing the pressing of enter, as I wanted to get my signature out of my face while composing, but it appear to have had side benefits I just was not aware of.
    The other formatting hell you can get into is with text pasted from Microsoft Office. Any office suite can make things unpleasant for a while, but but the Microsoft product just stands out with it's references to Microsoft specific data structures and it's magical ability to make the mail ring the anti virus bell..

  • Change Button content when Radio button clicked...

    Within my BSP code I have an OnClientClick event against the Radio button tag.
    What I need to do is to have some kind of Javascript that changes the context (text) or colour of a button if the Radio button is clicked.
    I know very little of how to achieve this and would relish any guidance about how I can get this to work.
    I understand that I need to use a reference/handle to the button and change it's values via javascript, but how can I embed this code into my BSP code, what code do I use, and more importantly how can I obtain this reference/handle on the buttion?.
    Jon

    Hi Jon,
    below an Example to do this
    (due to security forum restriction replace scrip t with script and o nclick with onclick)
    <html>
    <head>
    <scrip t>
    function change_button_text(v_object){
    var button = document.getElementById("id_button");
    var new_text = v_object.value + ' Clicked!';
    if (button.childNodes[0])
            button.childNodes[0].nodeValue=new_text;
        else if (button.value)
            button.value=new_text;
    </scrip t>
    </head>
    <body>
    <form>
    <input type="radio" name="***" value="male" o nclick="change_button_text(this)"/> Male<br />
    <input type="radio" name="***" value="female" o nclick="change_button_text(this)"/> Female
    </form>
    <button id="id_button">Button Text</button>
    </body>
    </html>
    Edited by: alessandro spadoni on Apr 28, 2011 9:56 AM

  • 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

  • BDC FB05 Radio button handling

    Hi experts.
    I got BDC requirement of FB05 transaction... Program is working fine in fore Foreground mode.In backgroud it shows error..
    The reason is which I am selecting a radio-button from value 'NONE' to 'Document numbers' .
    Can any one tell is there any special way for handling radio-buttons in recording of an transaction???
    i already used the CTUPARAMS also...
        ctu_options-defsize = 'X'.
        ctu_options-dismode = 'N'.   "E
        CALL TRANSACTION 'FB05' USING gt_bdcdata
                                  MODE gv_mode
                                   MESSAGES INTO gt_messtab
                                   OPTIONS FROM ctu_options.
    Pls help.

    Hi,
    U need to use all the four as ...
    RF05A-XPOS1(01) = ''.
    RF05A-XPOS1(02) = ''.
    RF05A-XPOS1(03) = ''.
    RF05A-XPOS1(04) = 'X'.     " Selected
    Hope this will help.
    Regards,
    Amitava

  • Radio Button to make other field Mandatory

    I have two Radio Buttons that I want when clicked on (either one) to make a Number Field mandatory. I have viewed many websites on setting a mandatory field but the script I am using will not work. I have tried a couple ways of writing it but I seem to be missing something.
    I have used this script in the Show of: click & change
    Here is the script that I'm using right now.
    if  (this.rawValue==1)   
    AssemblyNu-1.mandatory ="error";
    else
    AssemblyNu-1.mandatory ="disabled";
    And this one:
    if (this.rawValue==2)
    AssemblyNu-1.mandatory ="error";
    else
    AssemblyNu-1.mandatory ="disabled";
    Thanks,
    HHud5757

    So, I put a quick form together to test your code.
    On the change event of the radio button list (not the radio button itself), I added:
    if (this.rawValue == 1) tfTest.mandatory = "error";
    else tfTest.mandatory = "disabled";
    In my case, the radio button with the value of 1 is the one I want to make the field mandatory. If you want either button to make it mandatory, then use:
    if (this.rawValue == 1 || this.rawValue == 2) tfTest.mandatory = "error";

  • Radio Button Size

    Radio Buttons do not seem to have a "SIZE" property.
    CheckBoxes have a "SIZE" property on the OBJECT-FIELD tab. For checkboxes, the size can be set in points and it is reflected in the size of the box that is checked. This size is independent of the object width/height or font size.
    Radio buttons seem to be a fixed size circle. The OBJECT-FIELD tab has no size property. Changing width, height, margins, reserve, font, etc does not impact the size of the circle.
    There seems to be a hidden size property, since radio buttons that are imported from previous pdf seem to retain their size. Whereas, creating a new radio button always gives the same small size.
    It appears that the OBJECT-FIELD interface for the radiobutton needs to be modified to implement the "hidden" size property.
    Does anyone have a workaround. For instance, if I knew what the hidden property name and syntax was, I could set the size during the initialization event for the radio button. I suspect it's the same name and syntax as for the checkbox, but I don't have that either. The documentation that came with the "professional" version of Acrobat 7 does not seem to go to this level of detail.

    This is available in the Designer 7.1 UI, easiest thing would be to upgrade.<br /><br />Basically it sets the size attribute of the <checkButton> node, which is inside the <ui> node which is in the <field> node.<br /><br />Chris<br />Adobe Enterprise Developer Support

  • Newbie radio button question?

    Hi. I am trying to create a time field when a user clicks a certain radio button. More like a time stamp when the user clicked the radio button. There are three buttons labeled within a group: 'RadioButtonList' which have the values 1,2,3. When someone clicks the 1 button, the time field would get updated with the time the user clicked the button. Any ideas?

    In the "Window" menu, next to "Tools", select "Script Editor".
    You will see a script window open. Select the radio button first, in "Script Editor" make sure
    Language: "Java Script" is selected,
    Run At: "Client"
    Show: select "Change"
    Then paste the code in the window.
    You have to put the right names of the fields for this to work. You can get the full name of the fields by selecting the field, you will then see in the "Script Editor" window the full name of the field.
    If you created a field named "timeStamp", you would see soemthing like this in the Script Editor window:
    ----- form1.#subform[0].timeStamp::change - (JavaScript, client) ----------------------------------
    The full name of this field would be "form1.#subform[0].timeStamp"
    Following this example, the code to paste into the radio button "change" event would be:
    var now = new Date();
    form1.#subform[0].timeStamp.rawValue = now.toString();

Maybe you are looking for

  • Changing root directory of JSDK server

    Hi There! I am running my servlet using JSDK 2.1. To run my servlet, I copy my class file to C:\jsdk2.1\examples\WEB-INF\servlets and could call my servlet using the URL http://localhost:8080/examples/servlet/classname. Now I want to create a subfold

  • How do I create a void in a power plane?

    I want to remove an area of copper from a power plane but can't work out how to do this. I'm sure it's obvious if you know how! Please could a kind soul point me in the right direction? Thanks Dave

  • IPhoto slideshow in Keynote Presentation

    Is it possible to insert or link to an iPhoto slideshow (with its theme and music) in a Keynote presentation?  When I export to a Quicktime movie, I do not get the theme, just the slides and music.

  • Not seeing 'Rent' option for movie previously rented

    Not seeing 'Rent' option for movie previously rented

  • Finding iweb files in time machine

    I accidently deleted a section of my website but TM has it... I think. Does it? Does TM backup iweb? I can't seem to find the files under domain or .sites. I'm at a frustrating loss. Anyone.... bueller? anyone... Thanks.