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;}

Similar Messages

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

  • How to populate Second drop down based on the first drop down value

    Hi Experts,
    i have a HTML BSP page. with 2 drop down with SELECT and OPTION tags. i need to populate the second drop down based on the first drop down value.
    i tried HTMLB script they work good as stand alone when i try to embed the HTMLB with HTML it does not work.
    Please can you give me a solution only with ABAP script and HTML.
    please clearly let me know on what event i should implement it. sample code is really appreciated .
    With regards,
    Chella

    You can have event handler for first drop down . Then populate the data for 2nd field when the event triggers on first field.

  • Polulate textfield(s) from a MS SQL Database based on selection from DropDown List

    I am new to LiveCycle Designer. I am trying to create a Master Bill of Lading form. I want the user to be able to enter a Store Number from a in a text field and, based on what they enter I want to populate the address information from a database on my SQL Server.
    When I bind the address fields from the database, I only see the first record in the database.
    I'm not sure where to go from here...
    Thanks in advance,
    Jeremy

    That seemed to fix my error and returned the value to my DDL.
    I have modified the code so it looks at the clone of my dataConnection (dcStoreData)
    CODE:
    btnClear.MainPage.sStNo::change - (JavaScript, client)
    var inStrNbr = xfa.event.newText;
    if (inStrNbr == ""){
    app.alert("You must enter a valid name - try again!") } var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != "dcStoreData")
    nIndex++;
    tfStoreID.rawValue = inStrNbr;
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    // the node pertaining to the data connection specified
    //app.alert(oDB.saveXML("pretty"));
    //set up sql call to DB to get specifics about employee
    oDB.nodes.item(1).query.setAttribute("text", "commandType");
    oDB.nodes.item(1).query.select.nodes.item(0).value = "Select * from tblStoreMast_LastVersion where StorNbr = '" + inStrNbr + "'";
    //app.alert(oDB.nodes.item(1).saveXML("pretty"));
    //now connect to DB and get a record
    oDB.open()
    oDB.close();
    it runs with no error and I am seeing the value it has given my DDL.rawValue
    Now I get the "error:"
    GeneralError: Operation failed.
    XFAObject.open:16:XFA:btnClear[0]:MainPage[0]:sStNo[0]:change
    ado2xfa operation failed.  Item cannot be found in the collection corresponding to the requested name or ordinal.
    My Store Number is stored as an int in the database.
    Do I have to somehow cast it as a character?
    Sorry for the headache!
    Jeremy

  • How to disable certain text fields in second tab based on the drop down selection from first tab?

    My first tab contains a drop down menu which has two options
    1. Personal info
    2. Office info
    The second tab contains all the information regarding Office and Personal Information. But I need to selectively disable certain fields based on the drop down in first tab.
    For example,
    The second tab consissts of all fields like
    Name,
    Age
    Job title,
    Office Location, etc.
    And i dont want office related details to be displayed if I am selecting personal info in the first tab.
    It would be really great if someone could send me the code for achieving this.
    Thanks in advance.

    Hi Vishnu
                  Can you check the List component in foundation/components ? I think "Build list using" works he same as your requirement. Check the listener they have used in dialog/items/list/items/ listFrom/listeners
    "selectionchanged"  : function(box,value){box.findParentByType('tabpanel').manageTabs(value);}
    here the ExtJs will find the tabpanel with value you are selecting fromdropdown. The title of each panel should match with the dropdown values
    Some queries
    Disable values means you have to remove it from your CRX?
    "values should become mandatory". for tab2? or tab3? - if tab2 and if it is a customized widget then u have to write it in your js only i think.
    Thanks
    Veena

  • Automatically fill input fields based on selection from dynamic drop down

    Hi All,
    I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword).
    My scenario:
    1. In my offline interactive form, I have:
        a.  Material Number --> drop down field with "Allow Custom Text Entry" ticked
        b.  1 execution button to call web service
        c.  Material Group - Input Field (Read Only)
    2. User will enter material number with wild card character (eg: ABC*).
        User will then click the execution button.
        Web Service in result will return all materials that match the entered material number.
        Dynamic binding will do the magic to generate the drop down list.
    3. Beside material number, web service will also return material description and material group.
        Below is the illustration:
         Material        Description       Material Group
         ABC              Material ABC               GRP01
         ABCDE        Material ABCDE          GRP02
    --- so far so good ---
    My requirement:
    Every time user select material from the drop down list, i want to auto-populate field "Material Group" (which value is also returned by web service).
    I know i need to put the script on event change of the drop down field.
    But i don't know how to read internal table returned by web service.
    Hope someone can enlighten me.
    Thanks in Advance !!!

    Solved after reading:
    1. /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
    2. Chapter 7 of Live Cycle Designer Scripting Basics
    (http://help.adobe.com/en_US/livecycle/9.0/LiveCycle_Designer_Scripting_Basics.pdf)
    Thanks.

  • Populate field based on selection from another field?

    I'm using a Data Connection with a SQL query that returns two fields (StNameFull and ADDRKEY). I have a drop-down list called "Address" with the list items dynamically bound to StNameFull, so the user can select the address.
    What I'm trying to do is populate the second field "Key" with the corresponding record, based on the selection made from the drop-down list.
    Is it possible to script this so that when the Address is selected the Key will automatically fill in with the key that matches the address selcted?
    I currently have "Key" as a text field bound to ADDRKEY, but not sure how to have it check what was selected in "Address"
    Thanks so much,
    - Kevin

    Yes it is possible but you will have to write some script to do it. You wil also have to ge the DataConenction to execute a SQL statement. There is a good blog on this topic at this location:
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    Paul

  • Disable fields based on value selected from first list box.

    Hi All,
    I am facing a problem in module pool programing. My scenario is there will be around 50 fields in the screen  , within that first field is a drop down list box. In the list box there will be electricuty , gas and csw. If user select gas then the fields corresponding to gas will only be editable other fields not relevent to gas will be non editable(Disable).... Same case for electriciy andcsw also.
    Can any one guide me regarding this....
    Thanks in advance.
    Regards
    Ajoy

    Hi Asaha,
    This link will be of great help for you if you are new to Module pool.
    [Module Pool Notes|http://wiki.sdn.sap.com/wiki/display/Snippets/ModulePoolNotes]
    For [DYNP_VALUES_READ|http://wiki.sdn.sap.com/wiki/display/ABAP/FilteringF4HelpvaluesinTablecontrol,basedonotherfield+value] refer this link.
    For [DYNP_VALUE_UPDATE|http://wiki.sdn.sap.com/wiki/display/ABAP/GettingainputfieldpopulatedonenteringthevalueinoneInputfield]
    Regards
    Abhii

  • Populate imagebox based on selection from listbox

    Hi,
    First off, I am not a developer, but I have been able to do quite a few things in Access VBA to suit my needs. 
    I have created an access "application" that lists product information based values entered in a textbox and combobox. Now I need to display the product image as well.
    I have a form with a textbox that the user types in a product brand code. This code determines the styles that are populated in the style combobox (these changes as soon as the brand code changes). I then have a button that runs a query to fetch products
    that have the style and brand as per the previously selected values. I then have a listbox that displays the data from the query. the other fields on the form are populated based on the selection made in the listbox (each time a new row is selected, the details
    on the form change). 
    Up to this point I everything works fine. Now I need to populate an image box based on the selection made on the list. I have a lot of images and they are all named
    brand-style.jpg
    My question is: How do I populate this image box based on the selection made in the list?
    "Of all the things I have lost, I miss my mind the most"

    Store the full path to each image file in a text column in the Products table.  Return this as a hidden column in the list box by setting its column width to zero.  Set the ControlSource property of the image control to reference the list box's
    hidden column.
    You'll find examples of how to load an image into an image control in various contexts as Images.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    Ken Sheridan, Stafford, England

  • How Do I:  Fill a read-only field based on selections from 2 DDlists?

    Follow-up from issue:  
    http://forums.adobe.com/message/2417876#2417876
    I have 2 drop-down lists...  "Department" and "SubDepartment"
    The selection in DDlist "Department" spawns a unique list in DDlist "SubDepartment"
    I select the proper items from both DDlists.
    When I do this, I want read-only text field "NameOnIDBadge" to be populated with a pre-defined entry.
    Example:
    In "Department" DDlist, select item "Finance & Administration"
    In "SubDepartment" DDlist, select item "Food Service" from the list that appears
    THEN:
    In read-only text field "NameOnIDBadge" the following predefined read-only text appears:  "Contract Food Serv."
    (Thanks to Paul, I already know how to make the selection in DDlist "Department"  affect the selection list in DDlist "SubDepartment"
    but I don't know how to make the selection of both DDlists create a new pre-defined entry in a text field.)
    I have attached a mockup of the file I am working with...

    I tried that but a few things went wrong.
    1. After I select "Food Service" in the second "SubDepartment" DDlist, a Javascript error message pops up (see attached), and I have to click it to make it go away.  Then the text "Contract Food Serv" appears in the text box.
    2. If I select a different value in the Department DDlist, the rawtext still remains in place... it should clear out.
    3. The raw text seems to be based on the selection of the SubDepartment DDlist only.  However, I need specific raw text to be generated based on the combination of BOTH DDlists.   (It could happen that a totally different Department DDlist could have the same item in its corresponding SubDepartment DDlist.  In that case, the rawtext would be completely different.)
    Correct example:
    Department DDlist = Finance & Administration
    SubDepartment DDlist = Food Service
    NameOnIDBadge = Contract Food Serv  <-- CORRECT
    Incorrect example:
    Department DDlist = Clinical Services
    SubDepartment DDlist = Food Service
    NameOnIDBadge = Contract Food Serv   <--  INCORRECT   (it might be something else)

  • Populate row of master detail form with selection from LOV?

    Hi Guys,
    Total noobe, Hope you can help me out with a project I am working on in Oracle Apex 4.1 with 11g XE
    I am sure this is a simple enough issue but I just can’t see the solution.
    I have a table called ‘STOCK’ this contains all new parts and delivery details.
    ‘STOCK_ID’ NUMBER PK
    ‘DELIVERY DATE ‘ DATE
    ‘PART’ VARCHAR2
    ‘PART_SN’ VARCHAR2
    ‘PART_AN’ VARCHAR2
    ‘INSTALLED’ CHECKBOX
    I have a table that list all the current physical locations of hardware for example
    ID, Till number, store location etc…
    I have an table to list the devices and modification to the hardware in these store locations.
    Move Date, Device, Device Serial number, Device Asset Number, Comments
    I have a report & form that displays all the current physical locations of hardware and a master detail form linked to this to add devices and modifications to each store location.
    I have a LOV setup on the Devices column that is based on a simple select query
    SELECT PART from STOCK
    ORDER BY 1
    This provides me the list of parts in the stock table.
    What I need to figure out is how do I get the data from the ‘STOCK’ table when I select a part in the LOV to auto populate ‘DEVICE_SN’ ‘DEVICE_AN’ in my master detail tubular form. this information is contained in the 'PART_SN' & 'PART_AN' columns of the STOCK table.
    I also need to figure out how to identify the part because by default the LOV only displays one column and I have no idea which part I am selecting other than by name. i could use a popup LOV and scan a barcode into the search box and get the retuen value to display the part name in the field.
    I also would like to reduce the number of records displayed in the LOV by using the ‘INSTALLED’ checkbox i.e. if checked this part has been used and will not be available for selection. The ‘PART_SN’ field can be duplicated as we often get the same part back again as a replacement after repair but this should be valaditated against i.e if the parts is ticked as installed and not available for selection in the list it can be added again this could possibly be validated based on the ‘DELIVERY DATE‘?
    I hope this make some sense to you guys if you need any further details let me know.
    Cheers
    Darren

    Hi,
    I am from the Oracle Forms background too and I have been using Oracle Apex for a while. Oracle Forms is just like client-server application although it uses the Forms servlet to render its Web front-end. I think...if you're really trying to develop true-Web application, you should try to forget such features as "master with many details" in Oracle Forms. Loading all the details in a single page will cause overheads anyway. When you discover more about ajax and such third-party javascript libraries as jquery and mootools, you'll have a different mind of Web development.
    Thanks.
    Andy

  • Conditionaly select the physical table based on selection from prompt.

    Hi expert.
    we have one logical table with two LTS(LTS A and LTS B). LTS A is at day level and LTS B is at week level.
    So i have created a dashboard prompt which returns as day and week in drop down(SQL Result).
    So when we select Day it should run from the day table and when we select Week it should run from week table.
    How to do that...

    Amotoj,
    This scenario is exactly what the Cascade parent is meant for.   You would define your screen to have multiple fields where if you select a value in field 1, field 2 will be automatically filtered based on the first selection.
    You will need the appropriate indexes on the Complex Table to support it but it is fairly straight forward.
    If there a reason you don't want to use multiple fields?
    --Bill

  • Populating a text field in a form based on selection from a list field?

    Hello,
    I'm using Acrobat 9 on a mac.
    In the list field users choose their hospital name. I then want the address associated with this hospital to populate a text field. Where do I enter the hospital addresses and the "script" (if hospital X then this address)? I've copied this list field and am using it in multiple places on the form by utilizing "global binding" and this is working well.
    Also, can the choices in a list field "drop down" or is the only option available a "click through?"
    Thanks in advance for your help!!

    hi, i've seen this problem before but can't remember what the solution was...
    but just by searching on this forum resulted in this link
    Re: Copy and Paste
    hope it helps

  • How to view information based on selection from table

    I currently have a roles table, usersinroles table, and a users table. The users table has a user ID, the roles table has a Role ID, and the usersinroles table has Role ID and user ID as foreign keys. Many users can have many roles. On one page I have the users first name and last name displayed in a read-only table. a user can be selected in which they are directed to a page to view the users details. How can I display on that page the selected user's roles he/she has? I've tried a view but it displays ALL the users and their roles.
    Thanks,
    Adam

    Hi,
    create a bind variable in the users VO and then pass the authenticated username as an argument to the ExecuteWithparams operation. This queries the VO to only show the user you are interested in. The developer guide is a good source of information and inspiration
    http://download-uk.oracle.com/docs/html/B25947_01/toc.htm
    Frank

  • Change the source for a media player based on selection from a list.

    All of this is referring to my public facing website in Office 365.
    I put the following code in a content editor web part:
    <audio controls>
      <source src="http://someserver/somefile.mp3" type="audio/mpeg">
    </audio>
    This works just fine. 
    What I want to do, is display a table below this which is a list of mp3's. when the user clicks on one of them the audio plays in the <audio controls>. 
    In other words, I want to change the source of the above player when I click on a link elsewhere in the page.
    Thank you
    Joe Fager

    What you'll need to do is have a javascript onclick/onchange event in the dropdown that runs a set of code that will reset the audio control with the new source. That can be done with jQuery.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

Maybe you are looking for

  • [Fixed...] wpa_supplicant and netcfg stopped working since updates

    Hello, I am new to the forums and have run into a problem with wpa_supplicant and netcfg (though I believe the problem resides with wpa_supplicant). A bit about me - This is my first "intermediate" linux distro (I tried fedora back when it was versio

  • THREADS PARALLEL TASKS

    Hi Form If have n tasks to execute in Simoltaniously with out any ' Sleep' process involved 1)Do I need to Put each task in a new thread, If So How ?? 2)IDo I have to use Thread Groups , If So How ?? Please state the same with simple Examples. Please

  • PDF FILES WONT PRINT

    Ever since Ive used my Macbook Pro with Safari, I have been unable to print PDF files.  I can view the files but as soon as I go to print, the documents are blank in the print screen (and if printed).  I am able to view and print these files if I use

  • Every time i try to update itunes it keep saying " can't find itunes.msi file" so it won't update, what do i do?????

    Can't find itunes.msi file  also bonjour msi file ive tried to uninstall itunes /bonjour/apple ect  its says the installation source for tis product is not available. verify it exists,to accessit i have  a ipad2 / iphone 4/ and also a ipod and the so

  • Límite de impresión en Photoshop Element  3 y 4

    Escribo este comentario solo para compartir algo que he descubierto sobre Photoshop Element 3 y 4 y lo que no encontraba explicación. No tiene importancia pero es curioso. He estado utilizando Photoshop Element 3 hasta hace un mes que me han regalado