How to disable the single radio button in radionbuttongroup????

Hi Experts,
  I created the RadiobuttonbyKey UI element and i have set it to the SimpleType which has two values.Say Ex:
    Simple Type : 1 bus
                         2 train
My Requirement is onActionxxxx i have to display only one raiobutton in the Group and onActionyyyy i have to show both the radiobuttons in the group.
Can anyone please help me how to achieve this..............
Regards,
Mahesh

hi Mahesh ,
which UI element you are using ......radio button group is group by key or group by index  ?
if it is group by key above specified code holds ,
if is group by index , then you have bind a node of cardinaility 0...n and with one attiribute in that node.
in onActionxxxx()
   wdcontext.nodeRadioButton().invalidate();
IPrivateDynamicTableView.IRadioButtonElement element;
element = wdContext.createRadioButtonElement();
element.setValueRadioButton("Train");
wdContext.nodeRadioButton().addElement(element);
and in onActionyyyyy()
wdcontext.nodeRadioButton().invalidate();
IPrivateDynamicTableView.IRadioButtonElement element;
element = wdContext.createRadioButtonElement();
element.setValueRadioButton("Train");
wdContext.nodeRadioButton().addElement(element);
element = wdContext.createRadioButtonElement();
element.setValueRadioButton("Bus");
wdContext.nodeRadioButton().addElement(element);
Regards
Govardan Raj

Similar Messages

  • How to disable the select options button, while audio is playing in the question template in captivate 8?

    How to disable the select options button, while audio is playing in the question template in captivate 8?

    Apologies for late reply.
    I mean "On Question screens audio keeps on playing even after we have selected an option or options depending on the question type and clicked Submit. How do we stop the audio on selecting an option?"

  • How to Disable the Add & Review Button

    How to Disable the Add & Review Button
     *Updated with the correct ISF  code (the previous code, in case you saved it, was to actually  escape apostrophes.  That will be posted  seperately. 
    Note that this solution might not work in your environment - you might have to modify it based on your installation.
    Enjoy! 
    Common_disableAddAndReviewButton()
       if ( Moment == 'ordering' )
            var theForm = document.forms[0];
            var buttonCt = 0;
            for( i = 0; i < theForm.elements.length; i++ )
                 if( theForm.elements[i].type == "submit" )
                    if ( buttonCt == 0 || buttonCt == 2 )
                        theForm.elements[i].disabled = true;
                         theForm.elements[i].style.visibility="hidden";                  
                     buttonCt++;              

    This is GREAT - I added a new Java Script and set it to "when form is loaded" and when I did some test reqs - no Add & Review button !!!!

  • How to disable when one radio button is selected

    Hi Folks,
    One of our requirement is as follows,
    Scenario: We have two columns with radio buttons and two dropdown box for the same columns to select the values.
    Requirement: When user select one radio button then the other radio button and its relevant dropdown both is disabled.
    Radio Buttons:
    Company
    EmpNo
    Dropdown Box:
    Company
    EmpNo
    If CompName Radio button is selected then Radio Buttom and Dropdown Box for Policy Id is disabled.
    Finally, The filter is applied on CompName to populate the values in dropdown
    Thanks Guys,
    KK

    look for a function like setActive or setDisable

  • How to disable the  'Change - Display' Button in Cluster via SM34 ?

    Hi
    I have a View Cluster maintained with a transaction wich calls  SM34 passing it the Cluster.
    I need the dialog be only in display mode, so i'm looking for a way to disable the button Change<->Display.
    Does somebody knows how can i do this ? maybe with an event, the button does not appears or well making the button does not change the display mode (does not change the field VIEW_ACTION siwtch from 'S' to 'U')
    Thanks in advanced
    Frank

    Hi Frank,
    On SAP 4.7 Version
    1). Goto SHD0
    2). Enter the transaction code as SM34
    3). ENter the transaction Variant as say ZSM34
    4). Click on the create button --> this will take you to the sm34 screen. If you want to default some value or disable something on this screen just hit enter on this screen. You will get a popup window to select and restrict.
    5). You can further go to next screen and deactivate the menu. On the popup screen you will get a button MENU FUNCTIONS.
    Hope this helps
    Cheers
    VJ

  • How to disable the custom push button in Classic ALV

    Hi All,
    Iam Using Classic Alv (with out classes).I have a created a push button.now at run time i want to make it dynamic .
    iam using REUSE_ALV_GRID_DISPLAY
    for ex.
    i have some records in my out put.
    i have a push button "INSERT"
    For first time when i clicked it will be inserted.
    Now if i run the report for the same inputs as top,i will get the records.But the "INSERT" push button should be disable.IS that Possible ??
    If yes kindly send me the solution.

    Hi,
    Here is the piece of code for your understanding...
    FORM f4200_pf_status_set USING i_extab TYPE slis_t_extab.
      REFRESH i_extab.
      PERFORM f4210_exclude_fcodes CHANGING i_extab.( This form is mentioned below ).
      SET PF-STATUS 'STANDARD' OF PROGRAM '(Program name)' EXCLUDING i_extab.( This line of code will excude the function u don't want)
    ENDFORM.
    FORM f4210_exclude_fcodes USING i_extab TYPE slis_t_extab.
      DATA: ws_fcode TYPE slis_extab.
      CLEAR ws_fcode.
      ws_fcode = '&EB9'.           
      APPEND ws_fcode TO i_extab.
      ws_fcode = '&ABC'.           
      APPEND ws_fcode TO i_extab.
      ws_fcode = '&NFO'.           
      APPEND ws_fcode TO i_extab.
      ws_fcode = '&LFO'.          
      APPEND ws_fcode TO i_extab.
    ENDFORM.                    " f4210_exclude_fcodes
    I hope this clarifies. Revert for any queries.
    Cheers,
    Venkat

  • [SOLVED] Firefox/GTK - How to disable the icons on buttons?

    I'm running GNOME 2.30 with Firefox 3.6.3.
    I have set: gtk-button-images = 0 in .gtkrc-2.0 (although I think it might be deprecated), as well as setting buttons_have_icons to false in gconf under /apps/desktop/gnome/interface.
    All other programs have icon-free buttons, but Firefox insists:
    [img]redacted[/img]
    Is there something I'm missing?
    Last edited by jasonwryan (2013-03-17 23:23:30)

    I'm not so sure ... I've tried all of the ~25 GTK themes I have installed, and they all still have icons, but only in Firefox.  All (most?) other GTK apps I've tried removed the button icons.
    I'm in Xfce now, and the situation is the same.  Look at the "Close" buttons in both sceens:
    Icons on buttons ENABLED:
    Icons on buttons DISABLED:
    So maybe this is a Firefox issue?
    Last edited by MkFly (2010-05-29 02:52:12)

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • How can i declare a single radio button field in selection-screen ?

    How can i declare a single radio button field in selection-screen ?

    >
    Rob Burbank wrote:
    > And how will you turn it off once it is turned on??
    >
    > Rob
    Thats correct ;)...See ravi if users will ask so many things its our Job to convay the correct solution ....
    Just post your org requirement..SOo some body guide you better//
    Sas

  • 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.

  • How to disable the cancel button in InputDialogBox?

    Can someone please tell me how to disable the cancel button in an input dialog box?
    thanks,

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How to disable the validity of a particular Role for 100 users, in a single

    Hi
    How to disable the validity of a particular Role
    which is assigned to 100 users. (disabling the role of change the validity of the role )
    at present am doing manually, by entering into each user and changing the validity of the role
    Thanks.

    > How to disable the validity of a particular Role for 100 users, in a single ...
    ... shot?
    Assign a reference user to the 100+ users and create events in the factory calendar which assigns and removes the role from the reference user only.
    The downside is that it is not scalable for many of the same concepts at the same time, because a dialog user can at one logon time only have one reference user assigned to them.
    Cheers,
    Julius

  • I have disabled the next/skip button in quizes and don't remember how I did it.

    I have disabled the next/skip button in quiz and don't remember how I did it. I need to reenable it. Oh yea Captivate 7.

    Thank you for responding.
    Not sure what you mean. The master question slide looks normal and the project question slide does as well. When I launch the project the Next/skip button is grayed out and I cannot click on it. In the properties it looks the same as the other buttons.

  • How to show/hide individual radio buttons in a single radio button list

    Can I apply javascript to checkboxes in order to show/hide individual radio buttons in a single radio button list?

    Thanks, Niall,
    I'll give it a try . . .
    Yours,
    Robert Anderson
    SWRCB WebSupport
    1001 I Street
    Sacramento, CA 95814
    8th floor 59B
    (916) 341-5950
    [email protected]
    >>> Niall O'Donovan <[email protected]> 8/5/2010 1:47 PM >>>
    Hi,
    Yes, it can be done. You just need to reference the actual button, rather than the radio button group.
    It is best if you name the radio button group AND all of the individual radio buttons.
    If the radio button group was named "myRadioButtons" and the three rb were named "yesRB", "noRB", and "maybeRB". All of this is in the hierarchy.
    Then this script in the click event of the checkbox would work:
    if (this.rawValue == 1)
         myRadioButtons.maybeRB.presence = "hidden";
    else
         myRadioButtons.maybeRB.presence = "visible";
    Hope that helps,
    Niall

  • How can you disable the fm radio app on the 7th gen nano?

    How can you disable the FM radio app on a 7th gen NANO?

    Why would you want to? Unless the app is open, you won't be using the functionaloty or using extra power etc.

Maybe you are looking for

  • MacBook Pro 15" Display Failure- Nvidia GeForce 8600M GT

    some people are getting positive tests and some are not. what is the deal? clearly the problem is all the same. i think apple needs to step up and realize that any computer shipped out with this gpu is a failure. quite frankly i've read tons of peopl

  • Activation failed + USR_MISSING_PRIVILEGE

    Hi Folks, We had some DCs working fine on our track. We made changes in one DC(by following checkout and checkin correctly). When we tried to activate this activity, we got activation failed message. We checked the associated activation log. There we

  • No Budget Check on doing Stock Transfer (ME27)

    Hi We have activated SAP FM module and currently doing the testing. On doing Stock transfer from one plant to another (ME27), it is observed that the system is deriving the right FM acct assignment. Despite of not maintaining the budget for the Fund

  • Release blocked orders using sap mail

    Hi Gurus, How can I configure SAP that will forward all blocked orders (due to credit management) to sap mail without using workflow functionality?  At the same time, the approver can release the block in sap mail. Thanks, Paul

  • Copy Appraisal Results From Previous (MBO)

    Hi: There is a business requirement to populate the "criteria" and "notes" from previous year's appraisal form. This must be populated when the appraisal form is launched. I probably should be using a BADI for this. However, I don't know which functi