Populate elements in a drop based on selection made in another drop down

i need to populate elements in a drop based on selection made in another drop down list. have created list models for populating data from R3. I am using PDK for java development.

hi,
to populate the second dropdown from the selection of the first u need to the submit the form on the selection of data from dropdown and based on the selection populate the second dropdown.
If using jspDynpage u can submit the form on the  ''onChange" event of first drop down.
If you can let us know what type of application is this i think we can help you in more better way.
Thanks
Ritushree Saha

Similar Messages

  • How to get value in Second Drop Down based on selection made in first dropd

    Hi All,
    I have a table with first two columns as dropdown.
    The values in first drop down are fixed. However the value in second dropdown should be populated based on selection made in first .
    e.g
    First Column had different departments say IT, SALES, HR.
    Based on department selected I have to populate employee of that department.
    For first dropdown I have taken Drop down by index.
    What should I select for second drop down and achieve desired functionality? Please guide.
    Regards,
    Madhvika

    Hi
    Use drop down by key for fixed values IT, SALES, HR. create on_select action for that drop down.
    in on_select method code like this..
      DATA lo_nd_segment1 TYPE REF TO if_wd_context_node.
      DATA lo_el_segment1 TYPE REF TO if_wd_context_element.
      DATA ls_segment1 TYPE wd_this->Element_segment1.
      data lt_segment1 type wd_this->elements_segment1.
      DATA lv_segment TYPE wd_this->Element_segment1-segment.
      data lr_column type ref to cl_wd_table_column.
    navigate from <CONTEXT> to <SEGMENT1> via lead selection
      lo_nd_segment1 = wd_context->get_child_node( name = wd_this->wdctx_segment1 ).
    get element via lead selection
      lo_el_segment1 = lo_nd_segment1->get_element( ).
      lo_el_segment1 = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
    get all declared attributes
      lo_el_segment1->get_static_attributes(
        IMPORTING
          static_attributes = ls_segment1 ).
    now ls_segment1 contains your first drop down selection value.
      DATA : lv_dropdown type string .
      lv_dropdown =  ls_segment1-segment.
      if lv_dropdown = 'IT'.
    // here fill your second drop down based on IT value.
    endif.
    Hope it solves.
    Cheers,
    Kris.

  • How to populate data from dynamic drop down list to the text field

    Hi,
    I tried to populate data from dynamic drop down list to city field. I would like to concat data from drop down list.When selecting add button to add the item and select item from drop down list, data should be displayed in the text field. However, Please help. I spent alot of time to make it works I am not successful.
    Please see the link below.
    https://acrobat.com/#d=SCPS0eVi6yz13ENV0cnUdw
    Thanks for your help
    Cindy

    Hi Rosalin,
    Loop the hidden table, get the values and populate drop down in each iteration.
    DropDownList1.addItem("Text","Value");
    You can use one more solution for this scenario. If it is a matter of 2,3 dropdowns, put three dropDowns in the form layout and give seperate static data binding to them. At run time make the dropDowns hide/visible as per the requirement.
    Hope this helps.
    Thanks & Regards,
    Sanoosh

  • Elements 13 seemed to install ok on iMac OSX 10.9.5. Restarted iMac. Tried to open Elements. Opened but start-up screen did not open. Only gave 1st menu "Photoshop Elements" no other drop downs appeared

    Elements 13 seemed to install ok on iMac OSX 10.9.5. Restarted iMac. Tried to open Elements. Opened but start-up screen did not open. Only gave 1st menu "Photoshop Elements" no other drop downs appeared

    If you go into the applications folder, can you open Adobe Elements 13 Organizer, or the editor directly? The editor is well-hidden. It's inside the support files folder in the Adobe Photoshop Elements 13 folder:

  • Changing value in drop-down based on selected value in another drop-down

    Hi,
    I have two drop-downs - changing value in Combo1, should cause the form to be submitted and values to be populated in Combo 2.
    Approaches i tried - 1) I am using an ActionListener. I am having a valueChange method which accepts an action event. However this appraoch is not working for me. 2) I was wondering if I could use Javacsript to catch the OnChange event , the javascript function would call an appropirate method in my ActionListener. I know in Struts its straightforward, but how do i achive the same here in JSF.
    Any tips would be helpful.
    Thanks
    PS: I already came across some threads in the forum, but could not get an answer. Also, I have a retsriction in terms of using Action LIsteners itself.

    Try using ValueChangeListener instead of ActionListener.
    Here's a working example of a ValueChangeListener. You can customize it and use it for your application.
    The JSP will look like this:
         <h:selectOneMenu value="#{globalsBean.selectedFirst}"
              valueChangeListener="#{globalsBean.changeList}" onchange="submit()">
              <f:selectItems value="#{globalsBean.first}" />
         </h:selectOneMenu>
         <h:selectOneMenu value="#{globalsBean.selectedSecond}">
              <f:selectItems value="#{globalsBean.second}" />
         </h:selectOneMenu>The globalsBean will look like this:
    public class GlobalsBean extends Bean {
         ArrayList first;
         ArrayList second;
         String selectedFirst;
         String selectedSecond;
         public GlobalsBean() {
              first = new ArrayList();
              second = new ArrayList();
              first.add(new SelectItem("1", "1"));
              first.add(new SelectItem("2", "2"));
              selectedFirst = "1";
              selectedSecond = "";
              second.add(new SelectItem("White", "White Cows"));
              second.add(new SelectItem("Brown", "Brown Cows"));
              second.add(new SelectItem("Green", "Green Cows?!?"));
         public ArrayList getFirst() {
              return first;
         public ArrayList getSecond() {
              return second;
         public String getSelectedFirst() {
              return selectedFirst;
         public void setSelectedFirst(String selected) {
               selectedFirst = selected;
         public String getSelectedSecond() {
              return selectedSecond;
         public void setSelectedSecond(String selected) {
               selectedSecond = selected;
         public void changeList(ValueChangeEvent event) throws AbortProcessingException{
              second = new ArrayList();
              String newValue = (String)event.getNewValue();
              setSelectedFirst(newValue);
              if (newValue.equals("1")) {
                   second.add(new SelectItem("White", "White Cows"));
                   second.add(new SelectItem("Brown", "Brown Cows"));
                   second.add(new SelectItem("Green", "Green Cows?!?"));
              } else if (newValue.equals("2")) {
                   second.add(new SelectItem("White/Black", "White Cows with Black spots"));
                   second.add(new SelectItem("Black", "Black Cows"));
              setSelectedSecond("");
    }Let me know how it works out for you.
    CowKing

  • Creating a calendar of events based upon selections made in other tables

    I have a Sheet that I've started working on the includes a variety of pop-up menus that reference look up tables on another sheet that contain names and prices of products. In conjunction with the drop down menus are a series of check boxes for the months in which one would want to receive the products. in each group of drop downs the order of what is selected can vary and be for example, a,b,c, or a,c,b, etc...
    I want to create a calendar looking portion of the sheet that would then express in what month each product was being received.
    I have used a LOOKUP function successfully for most of this but it seems to be erroring out in odd places. I've created a third table that looks at the first one I described, does a LOOKUP by product name and then if the product name is found it looks in the columns containing checkboxes for each month and returns either a true or false. Then on the calendar sheet - An IF statement is used to find if TRUE and then it uses text formatted as webdings to fill the box.
    I hope that explains things well enough. Any help in deciphering either why the LOOKup feature is working most places but not all or in providing a more elegant solution would be appreciated.
    Thank you,
    mmranta3777

    Your situation seems a little too complicated to provide concrete, meaningful suggestions without actually seeing what you are doing. A screen shot might be helpful, but your spreadsheet seems complicated enough that even that might not be sufficient. I can give a couple of general comments that maybe you can put to good use.
    (1) I cannot remember a time when I used LOOKUP(); almost always VLOOKUP() is what is needed (and rarely HLOOKUP() given the standard way data is typically stored in tables).
    (2) As formulas are filled down and across (especially complicated ones) it is easy to mess up the absolute cell referencing for the ranges that the lookup functions require.

  • Form elements similar to drop-down list

    I am programming in JSP.
    I want to know if there is a form element in tags
    that is similar to drop-down (option) list but allows the user to type an alternative if the choices is not in the list.
    I know there is such a thing in java, which I think is called a combo-box but is there one in form elements?

    not in HTML, but you could make an applet

  • Autopopulating based on selection made

    I've a customer that wants a drop down field formatted in such a way, that if, for example, they select 3/8" diameter in one drop down, the second dropdown or text field will automatically show up as 3,500 lbs. Is there a script in adobe acrobat that will make this happen?

    There are two fields, the Diameter field, and the Required Proof Load field. The Diameter field has 18 different diameter sizes. Each diameter size has a specific weight that needs to go into the Required Proof Load field.

  • Is there a way to auto populate one field based on a selection made in another field?

    We want to enter an account number and have the account name field auto populate.

    Yes there are many ways.
    Do you want to populate form a controlled source like a database?
    From data stored within the form?

  • How to populate values in to drop down by index

    Hi in my application  i have dropdownby index with label State.In that dropdown i need to populate all the states of our country like..Tamilnadu,andhraprdesh,Gujrath,Maharastra,Delhi....,and by default it should be populated with Select State ,can u please tell me the code..
    Thanks
    Kishore

    hi,
    1.in ur context create a context value node----eg: MyStates
    2.under that value node create a value attribute--eg: values.
    3.set the cardinality of "MyStates" value node to 0:n
    4.texts property of ur dropdown by index ui element shld be bound to the value attr (values).
    5.in the wdDoInit() method of ur view that has this dropdownbyindex ui element use the follwoing code,
    String    [  ]    states_array    =        new String [  ]   {"tn", "mp", "ap", "karnataka"};
    List list_for_node_elem = new ArrayList();
       for (int i =  0; i <states_array.length; ++i)
          IPrivateMyView.IMyStatesElement elem = wdContext.createMyStatesElement();
          MyStatesElement.setValues(states_array   [i ]   );
          list_for_node_elem.add(MyStatesElement);
       wdContext.nodeMyStates().bind(list_fornode_elem);
       wdContext.nodeMyStates().setLeadSelection(1);
    Regards
    Jayapriya

  • How to populate values in to drop down by index from modelnode

    Hi
    I have a dropdownby index and amodel node..model node contains text and value.which i need to be binded to dropdown text or value..and what is purpose of text and value..and is the code required to get texts populated into dropdown.
    Thanks
    Rahul

    Hi,
    The dropdown is usually part of a form, where the selected values are used as form input. For WD it is the input for the backend function. E.g. when the user selects 'Netherlands' from a dropdown list with countries, the backend function should in most cases be filled with the country key, which is often '31' or 'NL' but not 'Netherlands'.
    Now if you are using the dropdown for other purposes than as part of a form (e.g. when you want to change the data or view depending on the current dropdown value), the key is not used.
    Hope this clarifies.
    Good luck,
    Roelof

  • How to set FIX based on selection made in planning form (HP 9.2)

    Hello,
    In order to calculate new values in my business rule I have to use CREATENONMISSINGBLK ON option. But it takes too long time to complete the calculation. So, I need to set FIXes in my business rule in order to keep database selection as small as possible.
    Is there any possibility to pass page selections prom planning data form to my custom business rule?
    For example form:
    Columns: Period
    Rows: Account
    Page: Year, Entity, Version, CustomDimension
    In my rule a need to set following fixes:
    Account: Custom fixed List
    Period: Custom fixed List
    Year: Custom fixed List
    Entity: Get one values selected in data form
    Version: Get one values selected in data form
    CustomDimension Get one values selected in data form
    OR
    is it possible to set default values for Run-time prompts to be equal to selected members in page dimensions?
    Thanks.
    Message was edited by:
    MaxDyug

    Hi,
    You can set up variables in your business rules so for example,
    Create Variable rtVersion, set it as Type member and dimension Version and Usage-Type as "Run-Time Prompt".
    Then in your business rule code you refer to the variable using [rtVersion]
    Now in planning the design of the form when you choose the properites for the business rule make sure "Use Members on Data Form" is ticked, and run on save.
    Now when the form is saved a pop up window will appear passes the selected version member into the run time prompt text box, this will then be passed into your business when submitted.
    You can also hide prompts if you want it be sent directly into the business rule without any user intervention.
    Hope this helps.
    Cheers
    John

  • Prepopulate dropdown list based on selections made in other fields

    I wonder if anyone can help?
    A form with a radio button group containing two radio buttons "yes" and "no".
    Below the radio buttons is a dropdown list that has three items in the list "option A, option B, & option C.
    Below that, is another dropdown list, with three items, "10000", "15000" & "20000"
    How can I do the following?
    When radio button "yes" is selected, and dropdown list "option A is selected, it prepopulates "10000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option B is  selected, it prepopulates "15000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option C is  selected, it prepopulates "20000" in the bottom dropdown list
    Thanks in advance!

    Hi $Nith$
    Just sent you a PM

  • Why won't my drop down list populate from the array?

    I am using the following array. 
    var actDesc = new Array(" ",
    "Desc1 ",
    "Desc2 ",
    "Desc3 ");
    // Array of HUD Activity Numbers.
    var actNum = new Array(null,
    "1 ",
    "2 ",
    "3 ");
    // This populates the Description Drop-down List and works just fine.
    function populateActDesc(dropdownField)
          var i;
          for (i=0; i < actDesc.length; i++)
             dropdownField.addItem(actDesc[i]);
    //This is supposed to populate the Description Number Drop-down List but doesn't work.
    function populateActNum(dropdownField)
          var i;
          for (i=0; i < actNum.length; i++)
             dropdownField.addItem(actNum[i]);
    // Populates another field based on the Description Field value chosen and works as intended.
    function getDesc(hudActivityDescription, hudActivityNumberField)
       var i;
       for (i = 0; i < actDesc.length; i++)                
          if (actDesc[i] == hudActivityDescription)        
            hudActivityNumberField.rawValue = actNum[i];        
       break;               
    I placed the following into the drop-down list object holding the actDesc array (Event: initialize; Language: javascript):
    actNoScript.populateActDesc(this);
    This works just fine.
    I placed the following into the drop-down list object holding the actNum array (Event: initialize; Language: javascript):
    actNoScript.populateActNum(this);
    This doesn't work.  Any ideas?
    Any help would be greatly appreciated.  I am using LCD 8.2 ES on Vista 32bit.
    Thanks,
    Jerald

    Hi Jerald,
    You can't assign null to the display value of a drop down control.  If you change the HUD activity number array to remove the null it should work. 
    That is;
    // Array of HUD Activity Numbers.
    var actNum = new Array("  ","1 ","2 ","3 ");
    Bruce

  • How to populate LOV of one prompt based on other prompts w/o cascade

    Hello All,
    Scenario- There are three prompts in my report.
    Source_Prompt1, Source_Prompt2 and Target_Prompt.
    There is no direct reletion between Source_Prompt1 and Source_Prompt2.
    And user wants Target_Prompt data on selection of these source_prompts.
    Is there any way to populate target prompt on selection of source prompt.
    Note- This can be implemented by applying cascading between all three prompts fields.
    However user dosent want Cascading between source prompts.?
    is there any other method except cascading prompt to populate LOV of one prompt based on selection of other prompt values?
    Your insights are most welcome.
    Amit

    I believe the only way to populate LOVs is directly from a database. E.g.; you can not populate it "manually". In your case, you may have to create your own prompt forms and use those.
    - Ludek

Maybe you are looking for