Passing Selected Values between drop downs

I am trying to pass values between three different dropdowns.
For eg:-  Once I select a Category on the "Product Category" Drop down , it should pass the selected Value to the NEXT Drop down, which is "product family" drop down and it should bring all the related product Families, and then the selected product Family should in turn bring all the "Products" belonging to that Family.
I have tried using the "entry list" for all the dropdowns, the first dropdown works fine as there is no "input" to the "entry list" but the second and third would not work as the selected value is not passed, instead the query returns all the values.
Any help on this would be appreciated.
Thanks,
Naseer

Hi,
Yes you can do itin the following way.
You have DropDown1 ,DropDown2.
First creat the dropdwon1 using any type of Entry list.
Now when you are creating the Dropdown2  after the Dataservice selection ,you should assain the @DropDown1 as Input for the Value and Text fields in the output/input section .
it means when evere you select the value in DroDown1 then that value becomes the input for the data service in the DroDwon2 and it will returns the required output what you had defined in it.
Thanks,
Govindu

Similar Messages

  • 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

  • Selecting values in drop down list

    Iam trying to create the drop down list. I got some programs, creating these lists for both parameter and ranges on the selection screen using 'VRM_SET_VALUES' . What the user wants is when the selection screen is loaded, he wants to select from the list OR ENTER ANY DATA WHICH IS NOT THERE IN THE LIST. To be able enter any data other than what is there in the list is not working for me.
    plz help its urgent

    Do you want to do it clientside (DHTML/JS/DOM) or serverside (JSP/JSTL)? This is easy to do clientside, but as you're asking this issue in a JSP/JSTL forum ..

  • Retrieving user selected values in drop down

    Hello
    I am in trouble again
    I am trying to set the user selected values in the dropdown list but whatever i tried i always either get the default values or just the last selceted value or the first selected value
    Can anyone help please
    heres the code
    String values = request.getParameter("selectHeaders" + i++);
        while (values != null)
            selectedValues.add(values);
            values = request.getParameter("selectHeaders" + i++);
    [INSIDE HTML]
    <%
      for (int j = 0; j < headerList.size(); j++)
             String selectedHeaders = "selectHeaders" + j;
       %>
        <TD><%=headerList.get(j)%></TD>
        <TD><SELECT name="<%=selectedHeaders%>">
         <%
               for (int k = 0; k < sheetHeaders.size(); k++)
                       int m = 0;
                       int val = 0;
                       boolean isSelected = false;
                       if(selectedValues.size() != 0)
                            while((!isSelected) && (m < selectedValues.size()))
                                     String valueStr = selectedValues.get(m).toString();
                                      val = Integer.parseInt(valueStr);
                                     // logger.debug("THE USER SELCTED VALUE : " +val);
                                       // logger.debug("THE LOOP value k: " +k);
                                       if (val == k)
                                            isSelected = true;
                                        else
                                            m++;
                                    } //end of while
                                    logger.debug("THE BOOLEAN VALUE IS: "+isSelected);
                                    %>
    //this line is the one where all my confusion is
    <OPTION <% if(isSelected) {%> selected <%}%> value = '<%=k%>'><%=sheetHeaders.get(k)%></OPTION>
                            <% } //end of if(isSelectedValues.size())
                            else { %>
                                 <OPTION <% if (j == k) { %> selected <%}%> value="<%=k%>" ><%=sheetHeaders.get(k)%></OPTION>
                           <% } //end of else (selectedValues == 0)
                            } //end of for(k)
    [END HTML]

    I got the solution
    Thanx for your time
    have a nice day

  • How to capture the value selected in the drop down box

    Hi all,
    I am populating values in  drop down box by using FM vrm_set_values in module pool.
    like below
    01  ABC
    02 ACB
    03 BCA
    04 CAB
    in module pool drop down box element name is RQGM-VALUE.
    Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
    i need to capture the value selected in the drop down box and pass it to another variable.

    Hi,
    Refer this standard code. Your issue will be resolve.
    REPORT demo_dynpro_dropdown_listbox.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
    DATA: wa_spfli TYPE spfli,
          ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    TABLES demof4help.
    name = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE init_listbox OUTPUT.
      CLEAR demof4help-connid.
      SELECT  connid cityfrom cityto deptime
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
       WHERE  carrid = demof4help-carrier2.
        value-key  = wa_spfli-connid.
        WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
        CONCATENATE value-text
                    wa_spfli-cityfrom
                    wa_spfli-cityto
                    INTO value-text SEPARATED BY space.
        APPEND value TO list.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = name
                values = list.
    ENDMODULE.
    MODULE user_command_100.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE user_command_200.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'SELECTED'.
        MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
                                            demof4help-connid.
      ENDIF.
    ENDMODULE.

  • Cond display of drop down based on value selected in another drop down form

    Hi,
    I have a requirement in my app in which I need to be able to conditionally display the values in the drop down down list based on the values selected in another drop down list...
    Currently I have 2 drop downs.
    First drop down is a list of Jacks from 2000 to 4999...
    Second Drop down consists Chassis ranging from 1 to 900..
    So when a user selects any jack between 2000 - 2999, in the second drop down only Chassis ranging from 1 to 300 should appear.
    when anything between 3000 - 3999 is selected, Chassis ranging from 301 to 600 should appear..
    and for jacks between 4000 - 4999, Chassis ranging from 601 to 900 should appear in the second drop down.
    Can someone please provide me pointers on how to do this..
    Thanks,
    Nehal

    Hi Larry,
    Thanks for your response..
    Here are the queries for my select lists.
    P62_JACK
    select list query for Jacks:
    select JACK_NUM display_value, JACK_NUM return_value
    from CTS_LIST_OF_JACKS
    order by 1
    P62_CHASSIS_BLADE_PORT
    select NETWORKPORT display_value, NETWORKPORT return_value
    from CTS_LIST_OF_NETWORKPORTS
    order by NETWORKPORT_ID
    jacks range from 2000 to 4000
    chassis_blade_port ranges from 100 to 900...
    Can you please let me know how to do it..
    Thanks,
    Nehal

  • Passing database table values to drop down list list using "vrm_set_values"

    DEar Experts,
    How can we pass database travel to drop down list using vrm_set_value call function.
    Looking forward for advise from you experts .
    REgards
    CHandan

    Dear Anubhab,
    Thanks for your suggestion,
    Plz see my code:
    Type-pools: vrm.
    DATA: it_zlt_mita       TYPE STANDARD TABLE OF Zlt_mita,
               wa_zlt_mita    TYPE zlt_mita,
               it_vrm              TYPE vrm_values with header line .
    Selection-Screen: Begin of Block b1 With Frame Title text-001.
      Parameters:
        p_mitar            Type Zlt_mita-M1 as listbox visible length 20 user-command zcc01 obligatory,
        p_mitarn          Type Zlt_mita-M2.
    Selection-Screen : End of Block b1.
    AT SELECTION-SCREEN OUTPUT.
       Select * From ZLT_mita INTO CORRESPONDING FIELDS OF TABLE it_zlt_mita.
      LOOP at it_zlt_mita into wa_zlt_mita.
         it_vrm-key   = wa_zlt_mita-m2.
         it_vrm-text  = wa_zlt_mita-m1.
         APPEND it_vrm.
         Clear: it_vrm, wa_zlt_mita.
      ENDLOOP.
                     CALL FUNCTION 'VRM_SET_VALUES'
                       EXPORTING
                         id                    = 'P_mitar'
                         values                =  it_vrm[]
    *                  EXCEPTIONS
    *                    ID_ILLEGAL_NAME       = 1
    *                    OTHERS                = 2
                     IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                     ENDIF.
    Data: dynfields type table of dynpread with header line.
         dynfields-fieldname = 'p_mitar'.
          Append dynfields.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname                               = sy-cprog
        dynumb                               = 1000    " can I use sy-dynnr here
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
      tables
        dynpfields                           =  dynfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA                 = 1
    *   INVALID_DYNPROFIELD                  = 2
    *   INVALID_DYNPRONAME                   = 3
    *   INVALID_DYNPRONUMMER                 = 4
    *   INVALID_REQUEST                      = 5
    *   NO_FIELDDESCRIPTION                  = 6
    *   INVALID_PARAMETER                    = 7
    *   UNDEFIND_ERROR                       = 8
    *   DOUBLE_CONVERSION                    = 9
    *   STEPL_NOT_FOUND                      = 10
    *   OTHERS                               = 11
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname                     = sy-cprog
        dynumb                     = 1000
      tables
        dynpfields                 = dynfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA       = 1
    *   INVALID_DYNPROFIELD        = 2
    *   INVALID_DYNPRONAME         = 3
    *   INVALID_DYNPRONUMMER       = 4
    *   INVALID_REQUEST            = 5
    *   NO_FIELDDESCRIPTION        = 6
    *   UNDEFIND_ERROR             = 7
    *   OTHERS                     = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PLZ SUGGEST ME IF ANYWHERE I WENT WRONG IN MY CONCEPT AS PER YOUR SUGGESTION.
    Looking forward for your further guidance.
    Regards
    Chandan

  • Value need to select from the drop down list & should be save under Variant

    Hi,
    My requirement is that i need to display two values in drop down list of a selection screen. Between two values , one value will be display as a default value. During program execution user can choose any value from drop down list as per requirement and
    he can save this in a Variant.
    Next time if he choose data from Variant, but still he will be able to select any value from drop down list.
    For that i am using FM VRM_SET_VALUES. How can i make the changes to meet my requirement using this function module or any other suggestions will be highly appreciated.
    Thanks & Regards,
    Tutun
    Edited by: tutun nandy on Nov 19, 2010 12:21 PM

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Parent Child Relationships between Drop Down Menus

    I  have a request for additional functionality.  Parent child relationships between drop down lists.
    for example,
    the first dropdown, could contain North, South, East, West & assign values of 1, 2, 3, 4.
    the second dropdown, could contain a filtered set of data depending on the option from the first dropdown,
    so the data could look like this in the second drop down:
    Manchester 1
    Leeds 1
    London 2
    Southampton 2
    Norfolk 3
    Newquay 4
    so if I select North in the first dropdown, the second drop down would contain all the items with a value of 1, so Manchester & Leeds.
    I have managed  to get round this using conditional show & hide, but it is much  messier on the design screen & also the way in which the data
    will be returned is very very messy - seems like a simple addition which would improve the functionality  no end.

    Hi,
    We have an "ideas" page where you can see if others have added this already, I believe there are some similar, and you can add your vote.  If you don't find something that fits you can add your idea here:
    http://forums.adobe.com/community/formscentral?view=idea
    Thanks,
    Josh

  • Print multiple sleect values in drop down

    Hi
    I am trying to display multiple values selected from a drop down in a jsp.i am trying to add the drop down and the display components to a string buffer and printing the string buffer.. i can do this in html tags w/o adding to String buffer ..
    <option value="<%=team.teamId%>" <%= ( v_teams.contains (team.teamId.toString()) ? "selected" : "" ) %>>
    <%=team.team%></option>
    but i am trying to add this to a string buffer (sbuff ) , but am erroring out
    buff.append("<option value='"+team1.teamId+"' '"+( v_teams.contains (team.teamId.toString()) ? "selected" : "" ) +"'>" + team1.team + "</option>");
    any idea how to do this..
    Thanks
    Van

    Hello van,
    if this part works fine = <option value="<%=team.teamId%>" <%= ( v_teams.contains (team.teamId.toString()) ? "selected" : "" ) %>>
    <%=team.team%></option>
    then i think your problem with the code at this part is =
    buf.append(" <option value="<%=team.teamId%>" <%= ( v_teams.contains (team.teamId.toString()) ? "selected" : "" ) %>>
    <%=team.team%></option> ")
    is the quotes. see what, make all the quotes in between the = buf.append(" ") = single quotes u understand like this =
    buf.append(" <option value='<%=team.teamId%>'<%= ( v_teams.contains (team.teamId.toString()) ? 'selected' : ' ' ) %>>
    <%=team.team%></option> ")
    so try this if it doesn't work let me know.
    alex

  • How to set default value for drop down box in jsf

    Hi,
    Can anyone help me to set the default value in drop down box using <af:selectManyChoice> ?
    As I know there is an unselectedLabel attribute in <af:selectOneChoice> but not valid attribute for <af:selectManyChoice>.
    Any help must be appreciated.
    Regards,
    AK

    Hi Frank
    My entity type is a List in managed bean. I have set the entityType in the constructor of the managed bean. I have attached my code here.
    TPSearchCriteriaBean.java****************************************
    /** Constructor */
    public TPSearchCriteriaBean() {
    super();
    entityType=new ArrayList<String>();
    entityType.add(UIConstants.LIST_ITEM_ALL);
    authorizationType=new ArrayList<String>();
    authorizationType.add(UIConstants.LIST_ITEM_ALL);
    companyType=new ArrayList<String>();
    companyType.add(UIConstants.LIST_ITEM_ALL);
    mrgStatus=new ArrayList<String>();
    mrgStatus.add(UIConstants.LIST_ITEM_ALL);
    legalStatus=new ArrayList<String>();
    setEntityType(entityType);
    setAuthorizationType(authorizationType);
    setCompanyType(companyType);
    setMrgStatus(mrgStatus);
    country = "0";
    //address = new AddressBean();
    UIConstants.java***********************************************************
    public static final String LIST_ITEM_DEFAULT = "select";
    public static final String LIST_ITEM_ALL = "0";
    LOVManager.java*****************************************************************
    public List<SelectItem> getLovList(String lovType, boolean requiredOption_SELECT, boolean requiredOption_ALL)
    log.debug("LOV loading for " + lovType + ": START");
    List<SelectItem> lovList = new ArrayList<SelectItem>();
    //check validity of lov loading request
    validLov:
    for (int i = 0; i < lovTypeArray.length; i++)
    if (lovTypeArray.equals(lovType))
    break validLov;
    log.debug("ERROR: LOV Type not valid.");
    return lovList;
    //First select is replaced by ALL here
    //<-- Select --> should be an option
    if (requiredOption_SELECT)
    lovList.add(new SelectItem(UIConstants.LIST_ITEM_DEFAULT, "--Select--"));
    LOVDao dao = new LOVDao();
    dao.loadLOVValues(lovType, lovList);
    log.debug("LOV Loading successful!");
    //<ALL> should be an option
    if (requiredOption_ALL)
    lovList.add(new SelectItem( UIConstants.LIST_ITEM_ALL, "ALL"));
    return lovList;
    Kindly help me.
    Regards,
    AK

  • How to get the values of drop downs, which are gonna create at run time.

    As per my design requirement, I have to create drop downs in an ADF display table.
    The no# of rows of the table are gonna decide the no# of the drop downs. User can select the values from drop downs. My issue is, how can I capture the selected values of those drop downs as those are gonna created run time.

    Hi
    ohh ,ok ,then as u said that u r storing twenty values ,thats y i aksed earlier ,are these form values part of tbale ,or as u said 20 values are there ,for these u r creating 20 form values ???.
    My suggestion would be ,u do four calculation and put all your results in a hashmap ,and keep this hash map in to sesion ,using the following method
    pageContext.putTransactionTransientValue("HashMapName",myHashMap);
    and inside the PFR method when u want to display these values ,u can loop through your hashmap and can display these values.
    like this
    HasMap hm=pageContext.getTransactionTransientValue("HashMapName");
    thanx
    Pratap

  • Preselected values in drop-down lists

    Hi everyone,
    Some quick background before stating the issue: I've
    developed a set of forms in ASP.NET working with a SQL Server 2000
    db where my client can add, edit, and search records within their
    intranet. When adding a record, they are making some selections
    from a drop-down list where the values are dynamically populated
    from a lookup table. There are three sections to the form and each
    section gets its values from a different table. When editing a
    record, the drop-down lists should show all the choices but
    prepopulate the list with their earlier selection.
    Here's the issue: everything is working just fine on my box
    and is working 90% on my client's server. The problem is that when
    editing a record, two of the three sections of the form are showing
    the correct values. The third section is showing the first choice
    in the drop-down list rather than what was recorded in the db.
    Again, this is not happening in my development environment.
    It's only happening on my client's environment. I've triple-checked
    the code and confirmed that the datatypes in their tables match
    what I've got set up in my db. The fact that these pages are behind
    my client's firewall make the usual trial and error kind of
    troubleshooting very difficult.
    This is very mysterious. Any suggestions for what I can check
    and how I can troubleshoot this?
    Thanks.

    In case anyone else comes across this problem, it seems that
    deleting and recreating the table solved the problem. I renamed the
    original table and compared it to the one I recreated and they
    appear to be identical but nevertheless that was the
    solution.

  • Dashboard prompt issue  (Restricting Values in drop down) ????

    Hi Friends,
    In my report I have "days to start" column which list almost 10,000 values ranging from -1000 to 5000.
    I need to create a prompt for this report on "Days to Start" column.
    When I create a prompt on Days to start with Operator "Greater than" and Control "Drop Down List" it shows me all the values in Drop down.
    I need only specific Values like 30, 60, 90, 180 which might not be in the "days to start" column.
    If I select "SQL Result" what should be the SQL for that??
    Is there any other way to solve this problem
    Aprreciate your help on this
    Thanks

    You could make a table VALUES with 1 column and fill it with values like 30,60,90....then in sql you'd write SELECT * FROM VALUES....as simple as that
    (of course, it'd have to be in RPD, and you'd need to expose it in Presentation layer)
    Edited by: wildmight on Feb 19, 2009 8:18 AM
    Also, you could try this - it works for me - but it could be slower and you might want to figure out how to round it - also, it has to be a number or cast to number format
    SELECT Table."Column"/30 saw_0 FROM "Subj Area" ORDER BY saw_0
    Edited by: wildmight on Feb 19, 2009 8:29 AM

  • Not able to set values in drop down for a table field

    Hi All,
    I am not able to set values in drop down for a table field. Although I am able to set these values to a stand alone field but its not happening for a particular table field. I am using ABAP web dynpro for coding.
    Pls help.
    Regards,
    Bhaskar

    Hi Otto,
    Here is the code I am using:
    * navigate from <CONTEXT> to <DATASOURCE> via lead selection
      lo_nd_datasource = wd_context->get_child_node( name = wd_this->wdctx_datasource ).
    * navigate from <DATASOURCE> to <CHANGING_PARAM> via lead selection
      lo_nd_changing_param = lo_nd_datasource->get_child_node( name = wd_this->wdctx_changing_param ).
    * navigate from <CHANGING_PARAM> to <EDUCATION_TAB> via lead selection
      lo_nd_education_tab = lo_nd_changing_param->get_child_node( name = wd_this->wdctx_education_tab ).
      node_info = lo_nd_education_tab->get_node_info( ).
      REFRESH ddlb_value_set.
      DATA: wa_edu_est TYPE t517t.
      SELECT * FROM t517t INTO wa_edu_est WHERE sprsL = 'EN'.
        s_element-text = wa_edu_est-stext.
        s_element-value = wa_edu_est-slart.
        APPEND s_element TO ddlb_value_set.
      ENDSELECT.
      SORT ddlb_value_set BY text.
    *    Set Value_sets to node_info
      node_info->set_attribute_value_set(
         name      = 'EDU_EST'
         value_set = ddlb_value_set ).
    Regards,
    Bhaskar

Maybe you are looking for

  • Web Application Deployment Problem...

    I'm having an issue where with an exploded directory web application deployment on a UNIX server. It doesn't seem that weblogic is finding the JSP. I'm getting Error 404. - porting from wls 5.1 to wls 6.1 - got it ported on Windows 2000 - iPlanet as

  • How to connect broadband(wired)connection to mobil...

    Hi, Anybody give me solution to connect a broadband connection to my mobile[N70-1] through a PC.[Is it possible]

  • Flash for PalmOS

    Iv seen some older posts on this but they are all a while old so i thought id ask again, is there a version of flash player that works on palm os or through j2me? Or is anyone working on creating one or know if flash will release one seing the popula

  • Reload itunes after Snow Leopard upgrade?

    I recently loaded snow leopard on my Macbook.  i was 10.5.x before that.  I noticed on some programs and functions, I had to reload them to work right, including my printer drivers.  I recently found out that since this change my ipad2 and ipod touch

  • Copying  new company code and G/L's-how to put in Quality server?

    Hi We have existing system and we are creating new company code by copying from existing company code along with G/L accounts using --Copy/edit/delete company code action. Once this is done in Development server how do we transport this in to Quality