Calling an action on Click of Radio Button

Hi,
We have a form in which we need to display two radio buttons and two dropdown lists. Depending on the selection of Radio Button the drop down list should change.
To get the different data in the dropdown based on the selection of radio button, what would be the best method?

a.If the data is fairly static and little, then you could get it all at once and use standard javascript (or a toolkit like jquery)
b. If the data is potentially large, then you could use javascript + ajax + dhtml using a toolkit like jquery
c. If you cant use javascript , then you would have to first change the UI to have a submit button , then its like any other pageflow action.
what would be the best methodDepends on what attributes you wish to measure best , development time, accessibility, response times etc.
regards
deepak

Similar Messages

  • How to control what VoiceOver says when clicking a radio button in Safari?

    Hello-
    I am developing a web page that I want to work in Safari & VoiceOver. Does anyone know how I can:
    1) control what VO says when it is hovering over a radio button (ideally some alt text or title attribute)
    2) control what VO says when I click a radio button in Safari (right now, it seems to say 'Group').
    I have tried to put the radio buttons in a fieldset, tried tons of attributes in the input tag (including alt, title, desc, description), but nothing seems to change.
    Here is a URL where you can hear what I'm talking about: http://postcalc.usps.gov/
    Turn on VoiceOver (try Cmd+F5), pull up the URL and hover over the 'letter' or 'large envelope' radio buttons, then click one of them. It says 'group'. I'd like it to say 'letter option selected' or something.
    Thanks for any & all help!
    Seth
    PS: I do know about the <label> tag. I've tried surrounding my <input> tag with a label and using <label for="someID">, but it doesn't seem to help.

    Thank you for the suggestion...it does work and fires the event, but it is still not selecting the current record when I try to perform an Update or Delete.
    I had to modify your code a bit in order for it work in JDev 10...used the JUCtrlValueBindingRef instead of the FacesCtrlHierNodeBinding.
    Here is what my af:table tag looks like:
    <af:table value="#{bindings.FeesView1.collectionModel}"
    var="row" rows="#{bindings.Fees001View1.rangeSize}"
    first="#{bindings.FeesView1.rangeStart}"
    emptyText="#{bindings.FeesView1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
    selectionListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    binding="#{backing_viewFees.table1}" id="table1">
    If I put back my 2 original attributes, then my Delete and Updates work.
    selectionState="#{bindings.FeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FeesView1.collectionModel.makeCurrent}"
    Here is my code in the backing bean:
    public void tableSelectOne1_attributeChangeListener(SelectionEvent selectionEvent) {
    JUCtrlValueBindingRef binding = (JUCtrlValueBindingRef)this.getTable1().getSelectedRowData();
    if (binding != null) {
    Row currentRow = binding.getRow();
    if (currentRow != null) {
    System.out.println(currentRow.getAttribute("CurrentRecordInd")); // this does print my selected value!!!!
    }

  • JDev 10.1.3 ADF: How to fire an event when clicking a Radio Button

    I have a <af:table> component with the following code for my radio button
    <af:tableSelectOne text="Select and"
    binding="#{backing_viewFees.tableSelectOne1}"
    id="tableSelectOne1"
    attributeChangeListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    autoSubmit="false">
    When I click the radio button it does not fire up my event in my backing bean?

    Thank you for the suggestion...it does work and fires the event, but it is still not selecting the current record when I try to perform an Update or Delete.
    I had to modify your code a bit in order for it work in JDev 10...used the JUCtrlValueBindingRef instead of the FacesCtrlHierNodeBinding.
    Here is what my af:table tag looks like:
    <af:table value="#{bindings.FeesView1.collectionModel}"
    var="row" rows="#{bindings.Fees001View1.rangeSize}"
    first="#{bindings.FeesView1.rangeStart}"
    emptyText="#{bindings.FeesView1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
    selectionListener="#{backing_viewFees.tableSelectOne1_attributeChangeListener}"
    binding="#{backing_viewFees.table1}" id="table1">
    If I put back my 2 original attributes, then my Delete and Updates work.
    selectionState="#{bindings.FeesView1.collectionModel.selectedRow}"
    selectionListener="#{bindings.FeesView1.collectionModel.makeCurrent}"
    Here is my code in the backing bean:
    public void tableSelectOne1_attributeChangeListener(SelectionEvent selectionEvent) {
    JUCtrlValueBindingRef binding = (JUCtrlValueBindingRef)this.getTable1().getSelectedRowData();
    if (binding != null) {
    Row currentRow = binding.getRow();
    if (currentRow != null) {
    System.out.println(currentRow.getAttribute("CurrentRecordInd")); // this does print my selected value!!!!
    }

  • Calling subscreen on click of radio button

    Hi,
    I am creating a module pool program , in which on click of a radio butto to 'YES' a subscreen should appear ( on the main screen) with few fields so that the user can input values of it.
    But I am having proble in calling the subscreen in PAI event.Actually I think it should be something like this
    Module user_command.
      case sy-ucomm.
       when rb_yes = 'X'
        { CALL SUBSCRREN CODE
    ENDIF.
    Can this be done? I f yes how? I only know how to call subscreen in PBO, but the syntax for calling subscrren is different in PAI i think.

    Hi,
    Try doing this.
    This is your flow logic in the main screen  to call the Subscreen's PBO
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0110.
    CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZTRIAL' '0111'.
    In the PAI of the main screen,
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0110.
    CALL SUBSCREEN TAB1_REF1.
    Assign a function code to your radio button.
    Layout -> Attributes -> Function Code
    In the TOP include,
    DATA: v_dynnr type sy-dynnr.
    In module USER_COMMAND_0110.
    if p_rad = 'X'.
       v_dynnr = '0111'.
    else.
      v_dynnr =  ' '
    endif.
    You can check this for your reference
    [http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm]

  • Selection screen to appear when user clicks on radio button

    hi
    i have severla radio buttor in a radio button group
    i want that whne user clicks on first radio butter selection scren 1 eg as below to apper
    when use clicks on radio buton2 selection scree2 will appear please suggest
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE
    text-008
    PARAMETER : fyr2_fy type FIMC-RYEAR default 2008,
                 fyr2_cg type FIMC-CGYEAR default 2008,
                 fyr2_bk type FIMC-PERID default 7.
    SELECTION-SCREEN END OF BLOCK B1.
    regards
    arora

    Hi,
    At selections screen on that radiiobutton group.
    if radio_button1-status = 'X' (Active)
    call screen 'scereen number' or set screen 'nuymber'.
    else.
    call screen...
    endif.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • How to call an applet on click of a button in core java?

    On this, I suggest that if we can call commond prompt on background and then pass the path of the class file of another applet we can open another applet on clicking on the button what u says ? if any suggestions or code u can give it is our pleasure to know that.

    If you are asking if you can execute an external process (application/applet) from another application/applet - the answer is yes and no.
    Yes. If you have the security settings/policy to do so.
    No. This may require a security policy to be allowed - as an applet.

  • How to go to a particular field of the same page by clicking the radio button.

    Hello All ,
               I am working on a form which is designed by some one else . There is a Page - 8 . And there is a question at the first which is in another subform.
               At the end there are several radio buttons . If some one is clicked as yes then the focus should be on Question which is present at the beginning of the form.
    My code goes like this .
    if(TopmostSubform.Sub_Form_Section.Page8.RadioButtonList[0].Q9_EnterAnotherProgramRegEntSt ate[0].this.rawValue ==true)
    xfa.host.setFocus(' TopmostSubform.Sub_Form_Section.Page8.Table.Row[1].Cell[1].Q9_ProgramNm');
    Form hierarchy for Q9 _ProgramNm is -- TopmostSubform.Sub_Form_Section.Page8.Table.Row[1].Cell[1].Q9_ProgramNm
    Form hierarchy for radio button is -- TopmostSubform.Sub_Form_Section.Page8.RadioButtonList[0].Q9_EnterAnotherProgramRegEntStat e[0]
    The event should be click event on JavaScript.
    Please someone help !!!!

    Hi
    In the second screen, for field empno, set the attribute Output only as X and set group1 for empname as 'INP'.
    In PBO of second screen, write this code.
    loop at screen.
    case screen-group1.
       when 'INP'.
         if sy-ucomm = 'DISP' .  "sy-ucomm value when you click display
           screen-input = '0'.
           modify screen.
       endif.
    endcase.
    endloop.
    regards
    Navneet
    Message was edited by:
            Navneet Saraogi

  • To Change the Program Title when i click second radio button

    Hi All,
    I have two radio buttons in my report.
    1) party wise report  ( if R1 = X  this will display report )
    2) sales wise report ( if R2 = X this will display report )
    i declared in report attributes as party wise report .
    When i clik sales wise report.
    it is coming party wise report,
    i want it to be as sales wise report.
    Please let me know how to do it.
    Thanks in advance
    Ramesh

    Hi,
    Hope below code can give you some idea.
    parameters: r1 radiobutton group rad1 default 'X',
                r2 radiobutton group rad1.
    start-of-selection.
       if not r1 is initial.
          sy-title = 'Party'.
          Write:/ 'First'.
       else.
          sy-title = 'Sales'.
          write:/ 'Second'.
       endif.
    Kind Regards
    Eswar

  • How to call a method by clicking on a button

    hi, I have made a jsp page where I define a method toto.
    what the html source code for a button wich when you click it will process this method ?
    thanx

    There is no HTML source (or Javascript source either) that can directly call your toto JSP method. Think of it like this. You want to send a request from the browser to tell the JSP page to run method toto. For example, if the JSP page is named myPage.jsp, then the request could be as simple as myPage.jsp?action=runtoto (or http://yourwebserver/your/page/path/myPage.jsp?action=runtoto as an absolute URL). The JSP would then need to look for the action parameter as it is sent from the browser. If the action parameter equals "runtoto" then you could call the run tot method. Example:
    <%String action = request.getParameter("action");
    if(action.equalsIgnoreCase("runtoto"))
       toto();%>
    This could be coded in myPage.jsp and would run the toto method whenever the browser requested it via the action parameter. The HTML for the request could be coded as a button, a hyperlink, or anything that would generate a new page request.
    <form action="myPage.jsp" method="GET">
    <input name="action" type="button" value="runtoto"> Click to run the toto method.
    </form>
    Of course you have to consider the other parameters that will be submitted with the form. This may present some design issues/questions.

  • Perform different actions on click of popup buttons

    Hi,
    I am Using <af:popup id=""><af:dialog type="okCancel" title=""> combination pop up.
    I want to navigate to different pages, say "one.jspx" and "two.jspx" when i click on 'OK' and 'cancel' buttons.
    can any one help on this please...
    Regards
    Syamala.

    Hi,
    ........ I use JDeveloper 11g .........
    You can use type YesNo in dialog and in DialogListener write a method in backing bean :
    public void dialogListener(DialogEvent dialogEvent) {
    if(dialogEvent.getOutcome().toString().equals("yes")){
    // Yes action
    }else{
    // No Action
    in OkCancel dialog will execute the method only if you press ok
    for navigate to page you can use
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
    try this code:
    public void dialogListener(DialogEvent dialogEvent) {
    ExternalContext ectx =
    FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpServletRequest request = (HttpServletRequest)ectx.getRequest();
    if (dialogEvent.getOutcome().toString().equals("yes")) {
    System.out.println("yes action");
    RequestDispatcher rd =
    request.getRequestDispatcher("/untitled2.jspx");
    try {
    rd.forward(request, response);
    } catch (ServletException e) {
    } catch (IOException e) {
    } else {
    System.out.println("no action");
    RequestDispatcher rd =
    request.getRequestDispatcher("/untitled3.jspx");
    try {
    rd.forward(request, response);
    } catch (ServletException e) {
    } catch (IOException e) {
    I hope it can work with you ...
    Sameh

  • Is there a way to change the default action for clicking a "Print" button on a website to open Print Preview instead of the default system printer?

    When I am at a website that contains a button for printing (Gmail, for example), is there a way to change the way that functions, so that when I click "Print", Firefox will open Print Preview instead of taking me to the default system printer?

    You can apply  system-wise "negative" color effect under Settings > General > Accessibility, by toggling the White and Black switch - and, in iCab Mobile (and some other, better browsers / PDF readers), its own "night mode" negative color scheme.
    Otherwise, no, you can't do anything else except for asking third party app authors to add selectable back/froeground (=text) colors to their apps.
    There is an article dedicated to this question: http://www.iphonelife.com/blog/87/do-you-find-your-idevices-screen-be-too-blueis h-or-just-too-harsh-bedtime-reading

  • 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

  • Radio button loose focus on action='true'

    Hi guys
    I have a dynamic list based on which i create a table , This table holds a search result.
    against each employee id in the table i have a radio button to select, i have made the action='true' for the radio button, so that based on the selection i can further calculate other attributes of the employee.
    but when i select the radio button the user form is refreshed, the daynmic list and table are recalculated, the radio button slection is lost, all together a fresh result is displayed.
    how can i solve this
    Thanks in advance
    Cva

    tried all of the things u said.
    Changed to requestFocusInWindow().
    And added:
            try {
                EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        Information.getComponentInitiator().showPlayingField();
            } catch(Exception e) {
                e.printStackTrace();
            }On the part that initiates the panel that should get focus.. tried with SwingUtilities.invokeAndWait aswell..
    Also, the correct panels are focusable, visible and displayable..
    Any other ideas?
    EDIT:
    Found a solution.
        public void showPlayingField() {
           try {
                EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        JPanel_GameStarted_PlayingField playingField = new JPanel_GameStarted_PlayingField();
                        Information.getMainFrame().addComponent(playingField,0);
                        playingField.requestFocusInWindow();
            } catch(Exception e) {
                e.printStackTrace();
        }Swapped the invokeAndWait to the method showPlayingField, and called the requestFocusInWindow after the panel had been added to the jframe.
    Edited by: Lgeee on Jul 2, 2010 3:46 AM

  • Api to call from plsql as clicking button "Configurator" from OM screen

    Hi,
    I need to call an API from Plsql Procedure which performs hte same action as clicking the configurator button in sales order screen.
    Can you please help me out in getting the api name and syntax.
    Thanks,
    Vijaya.

    If you are getting 404 page not found error, then there may a problem in deployment of servlet.
    Are you able to launch your servlet URL directly when requesting from the browser. Type your servlet URL in browser and check the response.
    If you want to have control when configurator finishes its action, you should specify the your servlet url in the return_url parameter in the initialize message used to launch configurator.
    HTH

  • Click radio button with Apple Script

    I have something like this going on at the moment:
    tell application "Adobe Reader"
           activate
    end tell
    tell application "System Events"
           tell process "Adobe Reader"
                  click menu "file" of menu bar 1
                  click menu item "Print..." of menu "file" of menu bar 1
                  click radio button "pages" of window "Print"
                  --click button "Printer..." of window "print"
                  --click menu button "PDF" of window "Print"
                  --click menu item "Save as PDF…" of menu 1 of menu button "PDF" of window "Print"
                  --keystroke "D" using {command down, shift down}
                  --keystroke "G" using {command down, shift down}
           end tell
    end tell
    How do I click the radio button "Pages" in the print dialog box under "pages to print" with applescript?
    Thanks

    I ended up using key codes to tab using control down to get to it, which works for me.

Maybe you are looking for

  • Multiple Apple ID's/One Computer

    My three kids each have their own Itouch.  They each have their own Apple ID as well.  Whenever we connect one of the itouches, Itunes attempt to load evey app loaded by every separate apple ID.  i though with separate accounts, this would not happen

  • Com.ms.xml.dso.XMLDSO.class

    Dear All, I tried to load an XML doc using: <applet code="com.ms.xml.dso.XMLDSO.class" id="myXML" height=0 width=0 mayscript="true"><param name="URL" value="emp.xml"> </applet> But the status shows com.ms.xml.dso.XMLDSO.class not inited and then Load

  • How to edit phone number in iCloud keychain

    how to edit phone number in iCloud keychain

  • Change email layout to "classic layout"? w iPad

    How do we change the email layout on an iPad to the "classic layout" like you can on a new Mac Pro?

  • Contextual menu for formating drives

    Is there a contextual menu that will allow me to format drives so that all I have to do is right click on a drive or CDRW/ DVDRW/ HD and select erase to erase the drive instead of always having to launch the Disk Utility all the time.