Double drop down list on managing second list based on selection of first l

hello experts,
I call the values into the two drop down list box through the database and now
I want to manag second drop down list box based on the selection of first drop down list box.
So how can I do it?
Any suggestions, jsp code and ideas will be greatly appreciated.
Thanks and regards!

Hello, Isn't this the same issue as:
[http://forums.sun.com/thread.jspa?threadID=5370613&tstart=0]
and [http://forums.sun.com/thread.jspa?threadID=5370149&tstart=0]

Similar Messages

  • Drop Down - maintaining Order of the List Problem

    Hi,
    I have a Drop Down where the Code is
      <h:selectOneMenu styleClass="alignRight" id="myDropDown"
                           value="#{myBean.yCode}"
                           onchange="submitPageX();"
                           title="select any one in this menu">
            <f:selectItems value="#{yCodeList}"/>
          </h:selectOneMenu>It is rendered properly and I can see the value in my backing bean when the Drop Down value changes.
    Currently the Values in the Drop Down is in the same order as they are in the List which is populated in the Backing Bean. The Drop Down Component is common for all pages and is like a Header for all the pages.
    My question is if I have 3 Values in the Drop Down and the User selects the 2nd Option is there a way to keep the Order of the Drop Down Values same but have the 2nd Option Selected in the Drop Down.
    So until the User changes the Drop Down Values himself the Value selected by User is displayed as the selected Value.
    e.g.
    Jack Displayed Currently
    John
    Sarah
    Now User select 2nd Option.
    Jack
    John Now in the subsequent pages JOHN should appear in the drop down by default but and the order of drop down remains same.
    Sarah
    One way to do is to alter the Order of the list and then by default the first option is shown in the Drop Down, but I dont want to alter the List order.
    Thanks in Advance

    That sound pretty easy.
    Just set the value of #{myBean.yCode} to the user selected value during the subsequent page loads which use the same drop down.
    I guess that will do the trick.

  • IMac - freezes or pauses intermittantly - usually for 2 or 3 seconds no matter what program is running - sometimes just touching a menu to get a drop down will take several seconds

    my iMac freezes or pauses intermittantly - usually for 2 or 3 seconds - no matter what program is running - sometimes just touching a menu to get a drop down will take several seconds - if playing music on iTunes or Spotify the music will pause for several seconds - it is not internet related because it happens when working off line - its become a major annoyance in using the compuetr - really slows it down - any suggestions?

    Run the Extented Apple Hardware Test from the original system disc that came with your iMac, as per > Intel-based Macs: Using Apple Hardware Test

  • Populate second drop down box based on selection from first drop down box

    Hello, I have a situation involving a drop down box with 9 items to choose from. What I want to do is depending on which of the 9 items the client chooses, this will determine what items are populated in the second drop down boxes (the items in the second drop down box will be mirrored on 9 other drop down boxes).
    For example, my first list box would be titled Review Type and there would be MF, VA, FA, etc. If the MF was selected, then the 10 boxes below (all drop-downs) will be prepopulated with a specifc selection of topics and if they chose VA then another set of topics would be prepopulated.
    Can you please point me out on the proper script to accomplish this? I don't have a xml/data source to connect to so I will be manually inputting the choices.  Thanks!
    Header 1
    Header 2

    I came across a sample of a script that seems to do what I want it to however I can't seem to get it to work all the way through.  It only compiles the items from the 1st case and not the 2nd or 3rd case.  If I click on the 1st case, it will not clear if I click on the 2nd or 3rd case. The items from the 1st case stays static and shows up for other cases.  However if I open the form and click on the 2nd or 3rd case first, it's blank and nothing shows up. Can you please help me out with any fixes to this problem?  Please help!!
    Here's the script:
    switch (this.rawValue){
    case "General Client File Review":
    ft1.clearItems();
    ft1.rawValue
    = null;ft1.addItem("UBIS New Account Application");
    ft1.addItem("Suitability Update Form");
    ft1.addItem("Trust Certification Form");
    ft1.addItem("Corporate Account Form");
    ft1.addItem("Partnership Account Form");
    ft1.addItem("LLC Account Form");
    break; 
    case "529 Plan":
    ft1.clearItems();
    ft1.rawValue
    = null;ft1.addItem("UBIS New Account Application");
    ft1.addItem("Suitability Update Form");
    ft1.addItem("Trust Certification Form");
    ft1.addItem("Corporate Account Form");
    ft1.addItem("Partnership Account Form");
    ft1.addItem("LLC Account Form");
    ft1.addItem("529 College Plan Disclosure");
    ft1.addItem("Vendor Application");
    ft1.addItem("Fund Direct Addition Form");
    ft1.addItem("Investment Replacement Form");
    ft1.addItem("RT Transaction Approval");
    break; 
    case "Direct Held Mutual Fund":
    ft1.clearItems();
    ft1.rawValue
    = null;ft1.addItem("UBIS New Account Application");
    ft1.addItem("Suitability Update Form");
    ft1.addItem("Trust Certification Form");
    ft1.addItem("Corporate Account Form");
    ft1.addItem("Partnership Account Form");
    ft1.addItem("LLC Account Form");
    ft1.addItem("Mutual Fund Disclosure");
    ft1.addItem("FINRA MF Expense Analyzer");
    ft1.addItem("Vendor Application");
    ft1.addItem("Fund Direct Addition Form");
    ft1.addItem("Investment Replacement Form");
    ft1.addItem("RT Transaction Approval");
    break;}

  • Drop down that fills a second field and sets the email recipient

    (note: this was incorrecty posted in the Acro forum and I was informed to move it here)
    Apologies for this simple, newbie question but I am stuck. I have worked on this for a few hours, and just cannot get it to work.
    The basics: I want to get a name from a drop down, have it display in another field then set the submit button to email to that recipient.
    Acrobat Pro X
    LCD 9.0.0.2
    Win 7
    I have done this with one recipient before where the Submit button has all the info already entered, but this time I want to allow the user to choose from one recipient in a list and route the completed form to that person. I have tried all sorts of variations on Java examples in multiple forums and while everyone else seems to be able to do this, I have been unsuccessful. I cannot even get the text field to display the email based on the name in the drop down, much less the addressing part. I have tried a custom calculate script, case script and other items to no avail.
    The 3 elements........
    1) Drop down menu with names, let's just say there are two names - "John Doe (Eastern)" and "Jane Smith (Western)". The field is named "DistMgr".
    2) Text Field that displays the corresponding email for the name in DistMgr. Pretty much only used for display to confirm the address visually. This field is named "Email".
    3) Attach & Email button to send the form to the recipient chosen. Subject is always the same, lets just say it says "New Form". The button is named "Submit".
    What I want to do is select the name from DistMgr, have it populate Email (for display in the form) and automatically change the Submit button to allow the user attach the fom, insert the appropriate email address & the standard subject and invoke a standard email client with just the click of the Submit button.
    Any help would be appreciated and even links to locations where this very basic question has already been answered would work.
    Thank you.
    Joe Rowan

    Are you using Adobe LiveCycle Designer?  If so when you have the form open in designer, click on the dropdowns you will see in the code behind that dropdown where it calls a variable which is called myScriptObject.  Behind the drop-down list called "teams" it calls this script.
    Here is what is in the scriptobject:
    var epl = "Chelsea,Manchester United,Arsenal,Tottenham";
    var liga = "Barcelona,Real Madrid,Valencia,Mallorca";
    var seriea = "Roma,Inter Milan,AC Milan,Sampdoria";
    var eplArray = new Array();
    eplArray = epl.split(",");
    var ligaArray = new Array();
    ligaArray = liga.split(",");
    var serieaArray = new Array();
    serieaArray = seriea.split(",");
    function loadData(dropdownField) {
         if (!(form1.page1.subform1.league.isNull)) {
              switch (form1.page1.subform1.league.rawValue) {
                   case "English Premier League":
                        for (var i=0; i < eplArray.length; i++) {
                             dropdownField.addItem(eplArray[i]);
                        break;
                   case "Spanish Liga":
                        for (var i=0; i < ligaArray.length; i++) {
                             dropdownField.addItem(ligaArray[i]);
                        break;
                   case "Italian Serie A":
                        for (var i=0; i < serieaArray.length; i++) {
                             dropdownField.addItem(serieaArray[i]);
                        break;
                   default:
                        break;                    
    Deborah

  • Double Drop-down Menus

    Suddenly, on my 17" MBP, the drop down menus have doubled the choices. What I mean is that when I click on the Apple on the upper left for example, instead of the menu showing "About this Mac", "Force Quit" etc., or when clicking on Safari instead of "Preferences", "Private Browsing", "Quit", etc. I see each of these choices twice! If I click on one, the chack mark appears on both.
    And on the screen, whenever anything pops up that gives me an opportunity to click it, a black box appears around the button I am supposed to click. The box stays there until I click somewhere else on the screen.
    I do not notice any performance issues, but wondering what the heck this could be about. I've rebooted, turn off & back on, etc., and that didn't change things.
    Thanks

    OK, the problem is most likely isolated to your main User Library then. It's probably a corrupt preference file. Read this for troubleshooting it.
    http://macosg.me/2/9r
    Check out the new remodeled MacOSG website! 24-hour Apple-related news & support.
     MacOSG: An Apple User Group  iTunes: MacOSG Podcast  Follow us on Twitter: MacOSG

  • How to have drop down menu in which we cant continue until selection is made

    Hi All,
    I have a case in which I have 4 drop down menu, and a continue button, I want to make sure that a user cant continue until selection is been made on all the four or atleast from some of the drop down menu. how can I do that.
    Solved!
    Go to Solution.
    Attachments:
    selection.vi ‏20 KB

    I believe what Norbert was suggesting is something like this:
    With this code the "Continue button will be disabled and greyed untill a value change event has been registered on each of the four I32 controls.  Note also that its always OK to Cancel (and the windows X is active so you won't anger your users)  The caller should decide what to do if Canceled? is TRUE.
    Modify as desired!  the Attachment is saved back to 2012
    You can safely delete the case structure.... 
    Its a hold over from my VIT 
    Jeff
    Attachments:
    Simple UI (Events) 1.vi.vi ‏31 KB

  • TS3274 When viewing pick lists from different web sites my iPad2 selects the first choice on the list and loads it without allowing me to pick my option; is there a way to change this default?

    When viewing pick lists from different web sites my iPad 2 (safari) selects the first choice on the list and loads it without allowing me to pick my option; is there a way to change this default?

    With your playhead over the clip in the timeline and that V track's 'track selector' as the only one active...hit the 'f' key.
    This will load the original clip into the viewer at the matching point of the frame in the timeline.
    K

  • Problem Outputting Data From Second Table Based On ID in FIrst Table

    Hi Everyone: I have been stuck for a couple of days on a
    couple of issues. Here is one:
    I have a COURSES table. I also have a COURSES Summary page
    that displays all of the courses and related info.
    When a user clicks on a specific course it takes them to a
    courses detail page for that specific course. PROBLEM: Everything
    is working ok except: I have a separate table that has the teachers
    information in it. The two tables are related by The Primary Key
    (PERSONNEL_ID) in the Teachers table (Called PERSONNEL_LISTS) and
    MT_ID in the COURSES TABLE. I don't want the MT_ID to be displayed
    on the details page: I want the teachers first and last name.
    Here are the two tables:
    http://www.coolflasher.com/Courses_table.gif
    http://www.coolflasher.com/Personnel_table.gif
    The SQL that is currently being used on the Course Details
    page is:
    <cfparam name="URL.COURSE_ID" default="-1">
    <cfparam name="URL_COURSE_ID"
    default="#URL.COURSE_ID#">
    <cfparam name="SESSION._Insert_COURSES" default="-1">
    <cfquery name="COURSES"
    datasource="SCHEDULING_TRACKER">
    SELECT *
    FROM COURSES
    WHERE COURSE_ID = <cfqueryparam value="#URL.COURSE_ID#"
    cfsqltype="cf_sql_numeric"> OR ( -1= <cfqueryparam
    value="#URL_COURSE_ID#" cfsqltype="cf_sql_numeric"> AND
    COURSE_ID=<cfqueryparam value="#SESSION._Insert_COURSES#"
    cfsqltype="cf_sql_numeric">)
    </cfquery>
    And I'm outputting the MT_Code:
    <cfoutput>#COURSES.MT_ID#</cfoutput>
    I tried adding the PERSONNEL_LISTS table to the query, but I
    can't figure out how to get it to output the FIRST_NAME and
    LAST_NAME column that correspond with the MT_ID in the COURSES
    table.
    Courses
    Table

    Something like this maybe?
    (NOTE: you should explicitly list column names from both
    tables instead of using *)
    <cfquery name="COURSES"
    datasource="SCHEDULING_TRACKER">
    SELECT t.FIRST_NAME,
    t.LAST_NAME,
    c.COURSE_NAME,
    c.COURSE_ID,
    ---whatever other fields that you want to select
    FROM COURSES AS c
    INNER JOIN PERSONNEL_LISTS AS t ON c.MT_ID = t.PERSONNEL_ID
    WHERE c.COURSE_ID = <cfqueryparam value="#URL.COURSE_ID#"
    cfsqltype="cf_sql_numeric">
    OR ( -1 = <cfqueryparam value="#URL_COURSE_ID#"
    cfsqltype="cf_sql_numeric">
    AND c.COURSE_ID=<cfqueryparam
    value="#SESSION._Insert_COURSES#" cfsqltype="cf_sql_numeric">)
    </cfquery>
    Also, not sure what you are expecting -1 = <cfqueryparam
    value="#URL_COURSE_ID#" cfsqltype="cf_sql_numeric"> to do.
    Phil

  • No Search engines listed in the Manage Search Engine drop down

    After the most recent update 15.0.1 I have NO SEARCH ENGINES on my computer None listed in the drop down menu under "manage search engines" Everything is greyed out so I can't add anything

    Do you still see the default search engines in the searchplugins folder in the Firefox program folder (C:\Program Files\Mozilla Firefox\)?
    If not then you need to reinstall Firefox.
    You can find the latest Firefox release in all languages and for all Operating Systems here:
    *Firefox 15.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Your bookmarks and other profile data are stored in the Firefox Profile Folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected whenever you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Try to delete search.json file and a possible search.sqlite file in the Firefox Profile Folder.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder

  • Binding Drop Down Lists

    Hello,
    I am trying to figure out how i can bind drop down lists. I want it so if you choose a certain selection in drop down list 1, then you are only able to pick a certain selection out of drop down 2. So basically each selection in drop down 1 will give you different options to select in drop down 2. Sorry if i made that really confusing. Thanks
    -Aaron-

    Hi,
    Here is a mock-up version of the spreadsheet.
    The first dropdown has the nine categories set in the Object / Field tab. Also have a look in the Object / Binding tab as there are values specified for each of the nine categories. These will be used later in the script.
    The second dropdown does not have any values specified in the Object / Field tab.
    Instead there is script in the exit event of the first dropdown. This is a switch statement that first of all looks at the bound value ("9030") of the choice that the user has made ("9030 National Marketing"). The statement then looks at each case until it gets to one that matches; then it runs the script for that case and then breaks from the switch statement.
    Each case starts off with:
    DropDownList2.clearItems();
    DropDownList2.rawValue = null;
    This is important because this clears the list in dropdown2 and sets its value to null. These two lines are then followed by a series of addItem() script which goes through all of the types in that category.
    I have scripted all of 9030 and the first five lines of 9031. This should get you out of the traps. It is a bit of a pain, but just copy and paste downwards.
    Each case ends with a "break;" and the last "}" closes the switch statement.
    Good luck,
    Niall

  • Adobe LiveCycle Designer working with 2 drop down list, one response triggers the other

    I am fairly new to Adobe LiveCycle Designer ES 8.2, but I would like to have a drop down list of managers and another drop down list of employees.
    I would like this set up in such a way where the manager can click on their own name in the manager list and have a drop down list appear which is only populated with their directly reporting employees.  They can then click on the individual employee they are going to report on.
    Then there will be several questions pertaining to the individual direct report, etc. (This part I can do)
    Is this possible?
    If so, please provide detailed instructions for me to try.
    Thank you in advance.

    Put this in the change event of your Manager drop down:
    var myObj={"Manager 1":"Employee A,Employee B,Employee C",
                        "Manager 2":"Employee D,Employee E",
                        "Manager 3":"Employee F,Employee G, Employee H"};
    DropDownList2.setItems(myObj[this.boundItem(xfa.event.newText)]);
    This is assuming the list of items in that dropdown is "Manager 1", "Manager 2", "Manager 3".
    And DropDownList2 is the name of your Employee drop down.
    Kyle

  • Display look up column as drop down list in a web part in SharePoint 2013

    Hi,
    I have a look up column in SharePoint 2013 calendar list.I want to show that field with values in the page as drop down list to filter the data based in selected value.
    Is it possible through OOB or javascript.
    Please help .
    Thank you.

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Single Item drop down (View, Edit, Delete, Alert) on Companyweb List (2003)

    We had a user delete an old list that was created by a previous technician. I recreated the list as best I could but I noticed the previous one had a drop down on the first column and I don't see that anymore. The drop down had (View, Edit, Delete, Alert)
    each item in the first column would have this.

    Kris,
    Go to "Modify settings and columns" 
    select the column named "Title (linked to item with edit menu)" and rank it as first column
    like below
     You will get (View, Edit, Delete, Alert)
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Drop down menu for a list

    Hi, I need to create a type of drop down menu for a
    navigation list. Only one button needs a drop down option. I was
    wondering if anyone had any suggestion on the best way to go about
    it? Is there a way to make the list that drops down to the right
    instead of dropping straight down in order to keep the opening
    window from getting in the way of the button beneath it. I would
    like to do it without changing the order of the navigation list and
    having to make it the last button.
    Thanks

    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "PENONE" <[email protected]> wrote in
    message
    news:fk2jpl$412$[email protected]..
    > Hi, I need to create a type of drop down menu for a
    navigation list. Only
    > one
    > button needs a drop down option. I was wondering if
    anyone had any
    > suggestion
    > on the best way to go about it? Is there a way to make
    the list that drops
    > down
    > to the right instead of dropping straight down in order
    to keep the
    > opening
    > window from getting in the way of the button beneath it.
    I would like to
    > do it
    > without changing the order of the navigation list and
    having to make it
    > the
    > last button.
    >
    > Thanks
    >

Maybe you are looking for

  • Problem connecting to iphone 6 to itunes

    HI, I am having an issue connecting my iphone 6 to itunes.  It is a brand new phone that has been set up via iCloud download. When I connect it to my PC it isn't recognised by itunes nor does the PC teem to recognise it (not even charging). The USB c

  • The 10.5.1 to 10.5.5 slow down

    Hello everyone I haven't been here in a while. The computer: Mac Mini Late 2005 pre Intel The issue: When i upgraded to 10.5.1 i was happy because my computer was faster in Leopard than it was in Tiger but after a few updates its now gotten really sl

  • 3.0EA1/2.1: Recent Objects "which object" confusion

    The new Recent Objects window in 2.1 could be handy, but really needs to show types where the icon isn't unique (ie package spec and package body get same icon). As the connection navigator forces you to open the spec before opening the body, you alw

  • Supplementary excise duty

    In some of the cases, the purchase order is made without specifying excise duty amount when the material is received from traders.  In normal course traders do raise the bill on basic price and excise duty amount and subsequently when they clear the

  • Very urgent .. how to merge more than one pdf into one pdf

    Hi, I have one problem how to merge 2 pdfs into one pdf.please help me. thanks, suneel