Using selected items from drop-down list in rest of page

Hi,
I hope I'm able to describe clearly what's the problem.
So I'm implementing a form for the moment. It contains a drop-down list. The user has to select one item from it and as a result another drop-down list on the same page needs to be filled with a couple of options. I wanna do this without refreshing the page, cos else I have to retrieve all the values from boxes that were allready filled in. Is it possible?
Greetings,
Raf

This cn be done with javascript. But you need to cache the data on first load of your jsp.
regards

Similar Messages

  • Email Select People From Drop Down List

    I am creating a form that sales reps fill out to go to one whole department and I have that all set with my email submit button.
    However I also need to form to go to one of 5 others based off their names in a Drop down box for who is a manager for a certain region. Since all 5 don’t need to be copied on all form submissions I want our sales reps to be able to select their manager from the drop down list to ultimately add their email address in the CC field when the forms is submitted.
    Is this possible?
    Thanks, Mike

    Ok,
    if you don't know scripting, then you can use this macro (requires Desiger ES2 or ADEP Designer).
    It will create the script for you.
    The only thing you have to do is to install the macro.
    http://thelivecycle.blogspot.com/2011/07/mailto-maker-macro.html

  • Problem in sending drop down list value to jsp page showing  null value

    i am trying to send a drop down list value from client side to a jsp page but getting null value
    this is first page where i have accessed data from database and putted it in a drop down list
    <select name="sub">
         <%
         while(rs2.next())
         cat=rs2.getString(1);
         %><option value="<%=cat%>"><%=cat%></option><%
         }%></select>
    <input type="submit" value="Go"></input>
    now on submit i am going to another page
    where i want the selected value from drop down list to be printed
    i have used there
    <%
    String subject= request.getParameter( "sub.value" );
    out.println(subject);
    %>
    but it is printing null here what is the problem that i m facing
    thanx & reagrds
    sweety

    how to generate dynamically names for text boxes
    i am generating text boxes in while loop when selecting data from database
    while(rs1.next())
    name=rs1.getString(1);%>
    <tr>
    <td>1</td>
    <td><%out.println(name);
    //i am printing here stud_id a unique key and want to update records from following text boxes to particular stud_id
    %></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    <td><input type="text" name="????"></input></td>
    </tr><%
    the structure is like
    stud_id | attended theory | conducted theory | ateended practical | conducted practical
    where attended theory, conducted theory............. are to be inputed manually for all students and then update in database
    so i am facing problem in generating names for textboxes how to do that
    so that those can be updated in database for particular student
    Thanx & Regards
    sweety

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • How to capture selected value from drop down by index

    Dear friends,
    i want to capture the value of select value from drop down by index, for eg if  select air france, how to capture , could any one please let me know
    Thanks
    Vijaya

    Hi Vijaya,
    You can get the value of selected from drop down as below
    Check out the event handler method attached to Onselect event of the ui element drop down by index , if no event is associated, then create an event and attach to the drop down list
    Now you will be having the CONTEXT_ELEMENT in the WDEVENT parameter
                   data lo_element type ref to if_wd_context_element.
                   lo_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT').
    Now, you can get the static attribute value of selected  drop down value & let us say your drop down list values are populated from context node 'ND_DRP_DOWN'
                   data ls_data type wd_this->element_nd_drp_down.
                             lo_element->get_static_attributes(
                                       importing
                                       static_attributes = ls_data ).
    Hope this helps you.
    Regards,
    Rama

  • Create a drop down list that populates based on the selection form another drop down list.

    I need to set up a drop down list that is popualated (i.e. displays a certain list of selctions in the drop down list) based on the choise the form user selects in an adjacent List
    For example
    There are two drop down list field sitting side by side in the form
    1. Select State          2. Select Course
    What I want to do is have a list of states in the first drop down list (1.Select State) and depending on which state the form user selects , the second drop down list (2.Select Course) will populate with a selction of courses available in that selected state only (i.e. it will on;y show course available in QLD if QLD is selcted).
    Is this hard to do?

    Hi,
    I would recommend some posts from Stefan Cameron's blog:
    http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/
    http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/
    Hope that helps,
    Niall

  • Mobile Me Alias not showing up in "From" drop down list in Mac Mail

    I have a couple of older .mac/Mobile Me email aliases that used to show up as either [email protected] or [email protected] in Mac Mail in the From drop down list, as recently as yesterday. Today, all I can see for any alias that has both the .mac and @me options due to their age, is the @mac.com version. I want to use the @me version of the alias, but this option no longer shows in the list. Newer Mobile Me aliases only have the @me.com address and they show up fine. One last point. If I use the Mobile Me web mail app, I can see both the @mac.com and the @me.com choices in the From drop down list, so it's working as it should.
    Mail isn't working correctly, but since I've not updated the Mail app recently, I suspect Mobile Me isn't sending both versions of the aliases over when the list is refreshed.
    Any suggestions? Thanks!

    It started about a week ago. The "From" drop-dow is now missing in Mac Mail. It should appear beneath the subject line. I was working with MobileMe Chat support for about 3 hours. They cannot solve the problem and have now escalated it to the "Senior Advisor Team."

  • Firefox 3 used to have a drop down list under the back button for recent pages. How do I get this in FF4?

    FF3 used to have a drop down list of the most recent pages that a tab had displayed under the back arrow button. FF4 does not appear to have this. How can I see history of what's been displayed in the tab say four or five pages back?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!

    I have Maveriks. I downloaded numerous ACID Fonts and purchased Stuffit as instructed by ACID Fonts in order to use them. However, now I am unable to figure out how to get them into my Font Family drop down list or insert into Pages. PLS HELP!

    Hi FancyJean!
    Here is an article for you about using Font Book and installing fonts that you have downloaded:
    Mac Basics: Font Book
    http://support.apple.com/kb/ht2509
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • Hide id from drop-down list at the top of the detail tab

    Hello Nakisa experts!
    I have one more question about Nakisa OrgChart 4.0 SP 1.
    How can I hide position and org unti id from drop-down list at the top of detail tab, see picture below:
    Thanks in advance.

    I'm not sure you're going to be able to change this.  I think (but I'm afraid I don't know for sure) the section is defined by \WEB-INF\uitemaplates\com\nakisa\manager\omg\ui\subucs\sectionDesigners\DetailHistoryButtonSectionSubUC.xhtml, which after a quick search through the application looks as though it might be populated by a NakisaTrollBin.jar ... which isn't really something you should be looking to edit.
    Nakisa do often write in various settings that can allow features to be tweaked and enabled/disabled.  It could be that there's something you could add into SettingsResources to apply the change you require, but you would need to contact Nakisa about this as they don't document all of these options.
    All this being said I would query why this is being done.  It is not uncommon to say have multiple positions with the same name - e.g. HR Administrator might exist in several org units.  If you are looking through several identically named org units or positions, the unique identifier is going to be the object's ID.  As such it seems most logical to me to keep the ID in the history to allow a user to discern the difference between identically named positions/org units.
    Regards,
    Stephen.

  • Is there any way to stop the print screen from dropping down on top of the page to be printed.  Can the print screen be moved?

    Is there a way to stop the print screen from dropping down on top of the page to be printed.  Can the print screen be moved?  When the print screen drops down, it covers the page and the info needed to create the file.  Thank you

    You will find that this is application dependent.  Most Apple applications such as Safari and Mail will use the "sheet" type of dialog boxes that you are referring.  There is no way for the user to change that behavior.  Other, non-Apple, applications like Firefox use a "modal" dialog box for printing etc.  The modal boxes can be moved around so you can see the page behind.

  • Using getElementById() to get values from drop down list

    Hi, I am using Netbeans to write this program. I have this .java page that gets the url of the HtmlPage from the .properties page. And when this page is opened in the browser, there are drop down lists that have values I want to get from the user when he/she has selected, and save it to a database. I'm actually using mozilla firefox to open this page, and using firebug to inspect the drop down list element.
    I know getElementById is a javascript code, however, my friend told me to use it in the .java page. This is how part of my code looks like. What I'm not sure is how to implement getElementById() and where.
    HtmlPage pageMain =EBPage;
    WebRequest postRequestSettings = new WebRequest(
    new URL(getProperties("trustAdmin")), HttpMethod.POST);
    *// Set the request parameters*
    postRequestSettings.setRequestParameters(new ArrayList());
    postRequestSettings.getRequestParameters().add(new NameValuePair("component", "edit"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("formids", "unixTime,instance,time,description,message"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("page", "Status"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("service", "direct"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("session", "T"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("submitmode", "submit"));
    postRequestSettings.getRequestParameters().add(new NameValuePair("submitname", ""));
    *// Insert instance of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("instance", instance));
    *// Insert content of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("message", message));
    *// Insert description of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("description", description));
    *// Insert time of message here*
    postRequestSettings.getRequestParameters().add(new NameValuePair("time", time));
    *// Convert time to unix seconds*
    postRequestSettings.getRequestParameters().add(new NameValuePair("unixTime", String.valueOf(System.currentTimeMillis() / 1000)));
    HtmlPage newPage1 = pageMain.getWebClient().getPage(postRequestSettings);
    WebRequest requestSettings = new WebRequest(
    new URL("http://www.google.com"), HttpMethod.GET);
    requestSettings.setRequestParameters(new ArrayList());
    requestSettings.getRequestParameters().add(new NameValuePair("page", "Preview"));
    requestSettings.getRequestParameters().add(new NameValuePair("service", "page"));
    newPage1 = newPage1.getWebClient().getPage(requestSettings);
    And I'm told to insert page.getElementById() in the place shown below:
    HtmlPage page = null;
    page.getElementById()_
    *try {*
    *// Login proxy*
    page = (HtmlPage) jsonBrowser.getPage(getProperties("jsonBrowser"));
    String proxyUrl = page.getForms().get(0).getAttribute("action");
    System.out.println("Proxy Url" + proxyUrl);
    WebRequest requestSettings = new WebRequest(
    new URL(proxyUrl), HttpMethod.POST);
    requestSettings.setRequestParameters(new ArrayList());
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_PASSWORD", password));
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_PRIVATE_CHALLENGE_STATE", ""));
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_REQUEST_ID", ""));
    requestSettings.getRequestParameters().add(new NameValuePair("PROXY_SG_USERNAME", userID));
    *// Get the page*
    page = page.getWebClient().getPage(requestSettings);
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.INFO, "===================================Login in Trust");
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.INFO, page.getWebResponse().getContentAsString());
    *} catch (IOException ex) {*
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.SEVERE, null, ex);
    *} catch (FailingHttpStatusCodeException ex) {*
    Logger.getLogger(postTrustMessage.class.getName()).log(Level.SEVERE, null, ex);
    return page;
    Any help would be greatly appreciated. Thanks.

    I want to value drop down list from seeded page of EBSString picklistvalue = pageContext.getParameter("PickListBeanID"); //PickListBeanID is the ID of the MessageChoiceBean
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • How can I select from drop-down list and jumping to selected subform?

    I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
    drop-down list...A (jump to subform1)
                             B (jump to subform2)
                             C (jump to subform3)
    subform1
    subform2
    subform3
    ....end of form

    Hi,
    you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
    From a dropdowns exit event the script will look this way:
    switch (this.rawValue) {
              case "A" : xfa.host.setFocus("form1.page2.field1"); break;
              case "B" : xfa.host.setFocus("form1.page2.field1"); break;

  • Web UI - Value not getting selected from drop down list  .

    Hi  All ,
        I am facing a problem in one of the fields which is enhanced with a drop down functionality .
      I have created the GET_V_** method and also the GET_P_**  method for the same .And finally I am able to see the values in the drop down list . But the problem is , when I am trying to select a value from the drop down no values are selected .
    Can anyone plese help me in this as What has to be  done .
    I have taken references from few guides but I am not getting any clear idea of what has to be done .
    Regards,
    Ranjita

    Hi Ranjita,
                     To trigger a round trip, you must have given the event name in GET_P method.
    Same event handler would trigger.
      Please put a break point in Event Handler in IMPL class, and in SET_attr method of the attribute in CN class and see if value is getting set properly or not. Final value that would be displayed on UI would be there in GET_attr method of CN class.
      I hope it helps.
    Thanks,
    Rohit

  • Selecting Top N records in a table using a slider or drop down list

    Hi Experts,
    I have a query that  displays 1000 records ( say) in VC iview.
    Can i have a drop down list in the variable form to control the number of records displayed in the output table by the user .
    or can i have a horizaontal slider ( Min value is 2 -max 1000)  to display the number of records in the output table  selected by the horizaontal slider.
    basically iam having a requirement to give the user the capability to select the Top N records of the output table...where the user enters the N value in Drop downlist of variable form or user slides the N value using Horizontal slider
    Thnaks
    P.Navakanth

    Hi
    Yes it is possible. First you need to create 'Condition' in BEx query where you have to create 'TOP N' & 'N' should be a variable input. Then you will get this in 'Variable Screen' of a query. In VC for this same variable you can use slider. Use 'Select' function in the 'Action' of the slider & pass it to require table/graph.
    Try this, this will give you the required result.
    Regards
    Sandeep

Maybe you are looking for