How to get drop down list  display values

I have binded my drop down list with tabledataprovider. In the value field i have given customer id and in display field i have given customer name.
I have reatrived cust id but
how to reatrieve customer name.

http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56515
Also, if your dropdown list is bound to a data provider you can use something like this:
RowKey rowkey = tripDataProvider.findFirst("PERSON.PERSONID", dropDown1.getSelected());
String displayValue = (String)tripDataProvider.getValue("PERSON.NAME", rowkey);

Similar Messages

  • How to get drop down list (list of values) in selection-screen

    Hi al,
       This is anilreddy. Please let me knew the solution
    How to get the drop down list for a fieldin selection-screen (not in dialog programming)
    (not as POV)
    Regards,
    anilreddy

    REPORT ZTESTPRG.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    Thanks
    Mahesh

  • Getting Drop Down list for a field in portal based on the values in R/3

    Hi,
    Presently we were customizing the ESS>>Family Members/Dependants iview in Portal. Because of the design requirement, in R/3 we have added some custom field for infotype 21 (Family Member details Infotype). We have to display these field on portal in Family Member Iview.
    However for these custom fields i am not able to get the drop down list with all the possible values description(F4 help ) in portal unlike the standard SAP fields.
    I am able to display the codes but the description is not coming up for the fields. However for standard SAP field, only description comes.
    For this I tried to attach the search help to the data element and also assigned a check table to the data element in R/3. But still I am not getting the description in the drop down.
    So how can I get the description and only the description in the drop down.
    Thanks
    Namit

    Hi,
    When you run the Search hep is it giving the description or not
    You have to create the serarch help with both the fieldname and its description field then we cna the values. Or
    Try to mantain the text table for this field and get the data.
    Get the valeusinto drop drown with this table Or create the SearchHelp for this text table
    Regards
    Lekha

  • How to add drop down list through personalization on seeded page with value

    Hi All
    I am trying add add drop down list through personalization on seeded page with value
    I have go through with anill passi's block
    still I am getting problem to create

    I have download that page from server via mds
    but when I open that page in Jdev it doesnt shows any options like
    status
    even I have open that page in xml also but still doesnt shows any options like status
    following is xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    - <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile:~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory
    -->
    - <page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: VacSrchPG.xml 120.3 2006/04/27 09:08:34 gganesan noship $" version="9.0.3.8.7_942" xml:lang="en-US">
    - <content>
    - <oa:pageLayout helpTargetAppShortName="per" id="IRC_VAC_SEARCH_PAGE" akRegionCode="IRC_VAC_SEARCH_PAGE" regionName="Vacancy Search Page" shortDesc="Page to enable managers to search for vacancies" amDefName="oracle.apps.irc.vacancy.server.VacancySearchAM" controllerClass="oracle.apps.irc.vacancy.webui.IrcVacSearchCO" helpTarget="PER_vacancy_VacSrchPG" function="IRC_CM_VACANCY_SEARCH" windowTitle="Vacancies" title="Vacancies">
    - <ui:corporateBranding>
    <oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" />
    </ui:corporateBranding>
    - <ui:productBranding>
    <oa:image id="productBranding" source="/OA_MEDIA/IRCBRAND.gif" />
    </ui:productBranding>
    - <ui:contents>
    <oa:query mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" prompt="Search" id="VacancySearchQuery" user:akAttributeCode="FND_NESTED_REGION1" user:akAttributeApplicationId="0" extends="/oracle/apps/irc/vacancy/webui/VacSrchQueryRN" />
    <oa:formParameter id="IrcAction" adminCustomizable="false" user:akAttributeCode="FND_ACTION_NAME" user:akAttributeApplicationId="0" />
    <oa:formParameter id="IrcActionValue" adminCustomizable="false" user:akAttributeCode="FND_PRIMARY_KEY_VALUE" user:akAttributeApplicationId="0" />
    <oa:formParameter id="IrcActionType" adminCustomizable="false" user:akAttributeCode="FND_ACTION_TYPE" user:akAttributeApplicationId="0" />
    <oa:formParameter id="IrcFunction" adminCustomizable="false" user:akAttributeCode="FND_FUNCTION_NAME" user:akAttributeApplicationId="0" />
    <oa:formValue prompt="IRC_VAC_SEARCH_FLEX_PAGE" id="VacancyIdFlexDrill" promptTranslationExpansion="100%" user:akAttributeCode="FND_LINK_1" user:akAttributeApplicationId="0" />
    <oa:formValue id="IRC_SEARCH_INSTR_TEXT" rendered="false" />
    </ui:contents>
    - <ui:copyright>
    <oa:messageStyledText id="ICX_COPYRIGHT" extends="/oracle/apps/irc/common/webui/StandardFooterRN.ICX_COPYRIGHT" />
    </ui:copyright>
    - <ui:privacy>
    <oa:link id="ICX_PRIVACY" extends="/oracle/apps/irc/common/webui/StandardFooterRN.ICX_PRIVACY" />
    </ui:privacy>
    </oa:pageLayout>
    </content>
    </page>

  • How to modify drop down list values of a screen field in UDM_DISPUTE?

    Hi All,
    I have a requirement wherein i need to modify the drop down list for a screen field depending on the value of the other screen field in transaction UDM_DISPUTE. 
    Please suggest how this can be achived.
    Any BADI 's or any other approach is available?
    Thanks in advance,
    Srilakshmi.

    Hi,
    At what time do you want to modify the drop down list, while creating or after creating the dispute case. There are some BADI's where we can change the attribute drop down list values.
    Thanks,
    Sunil

  • How to create drop-down list in Portal??

    My case: I have three locations A B C(in the database) for example.
    I would like to use drop-down list to show list of All, A, B, and C.
    After I choose any of them, for example A, it must show all the data of that particular location and if it is All it must show data of all three locations.
    By using Simple Parameter, it's just a static one but I prefer the dynamic one that get directly from the database. And I also got a problem of showing all locations by choosing All in my dropdown menu
    Any idea??!?
    Thank you so much.

    You could try a dynamic page:<br>
    <br>
    &LT;html&GT;<br>
    &LT;body&GT;<br>
    <br>
    &LT;form action="http://host.port/pls/portal/etc." method="get"&GT;<br>
    &LT;select name="location"&GT;<br>
    &LT;ORACLE&GT;<br>
    for rec in (select loc_code, loc_name from locations union select '-1' id, 'All' loc_name from dual)<br>
    loop<br>
    htp.p('&LT;option value="' || rec.loc_code || '"&GT;' || rec.loc_name || '&LT;/option&GT;');<br>
    end loop;<br>
    &LT;ORACLE&GT;<br>
    &LT;/select&GT;<br>
    &LT;/form&GT;<br>
    <br>
    &LT;/body&GT;<br>
    &LT;/html&GT;<br>
    <br>
    The form should then call your page with a &location=loc_code in the url. Using a page parameter and a bound variable you can access that. You may need to use a decode in your sql to deal with the All scenario:<br>
    <br>
    select ..... where loc_code like decode(:location, -1, loc_code, :location)<br>
    <br>
    Hope this helps.<br>
    <br>
    Patrick

  • Error while populating drop down list with values from a database

    Hi all,
    I have a JSP page with a drop down list that is to be populated with values from a database.
    This is the code in my JSP file:
         <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers();
                Iterator<Integer> iterator = floornumbers.iterator(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% while (iterator.hasNext()) { %>
                       <option value="<%=iterator.next().intValue()%>"> <%=iterator.next().intValue()%> </option>
                       <% } %>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>   The DataManager.java class simply forwards this to its respective Peer class, which has the code shown below:
          package seatplanner.model;
        import java.sql.Connection;
        import java.sql.ResultSet;
        import java.sql.SQLException;
        import java.sql.Statement;
        import java.util.ArrayList;
        /* This class handles all floor operations */
         public class FloorPeer
         /* This method returns all the floor numbers */
         public static ArrayList<Integer> getAllFloorNumbers(DataManager dataManager) {
            ArrayList<Integer> floornumbers = new ArrayList<Integer>();
            Connection connection = dataManager.getConnection();
            if (connection != null) {
              try {
                Statement s = connection.createStatement();
                String sql = "select ID from floor order by ID asc";
                try {
                  ResultSet rs = s.executeQuery(sql);
                  try {
                    while (rs.next()) {
                      floornumbers.add(rs.getInt(1));
                  finally { rs.close(); }
                finally {s.close(); }
              catch (SQLException e) {
                System.out.println("Could not get floor numbers: " + e.getMessage());
              finally {
                dataManager.putConnection(connection);
            return floornumbers;
         }  The classes compile properly, but when I load this page up in Tomcat it just freezes and does not load the form. I tested the DB connection and it works fine.
    What am I doing wrong in the JSP code?
    Thanks for the help in advance.
    UPDATE: I commented out the form, and added <%=floornumbers.size()%> right above the commented code to check if the ArrayList is indeed getting populated with the values from the database (the values are of type integer in the database). The page still freezes like before. I'm puzzled now :confused: .

    Wrong usage of Iterator.
    <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers();
                Iterator<Integer> iterator = floornumbers.iterator(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% while (iterator.hasNext()) {
                                    Integer inte = iterator.next();
                            %>
                       <option value="<%=inte.intValue()%>"><%=inte.intValue()%></option>
                       <% } %>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>or make use of enhanced loop as you are already using J2SE 5.0+ for avoiding confusions.
    <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% for(Integer inte:floornumbers) {%>
                       <option value="<%=inte.intValue()%>"><%=inte.intValue()%></option>
                       <%}%>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>and a lot better thing would be making usage of basic Taglib provided with JSTL spec or struts spec which make life easier and simple.
    something like usage of <c:forEach/> or <logic:iterate/> would be lot better without writing a single scriptlet code.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to populate drop down list in infopath 2010 with form library column

    I created one column of choice type and have put 3 values on this column in form library in site.
    and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • How to implement drop down list in WDP Abap....very urgent...please help me

    Hi Gurus,
    I wanted to implement the drop down list button in the WDP Abap interactive form. Once the users clicks on the drop down button, an RFC should be called and display the details under the drop down button. Please give me the logic with code. Its very urgent...please help me. Please note that it is in WDP Abap interactive forms. We are using NW2004S, ECC6.0.

    Hello,
    you have to use ZCI form to use DDLB in WD-ABA. The content of the DDLB has to be present at rendering time, there is no dinamic call when you click the "dropdown".
    The attribut you map to the DDLB has to be an element with a value-set, and the value set has to contain the text / value pairs.
    >> this will be displayed when you click the dropdown.
    Best regards,
    Dezso

  • Beginner Problems - How to sum drop down lists in a table

    Hi,
    Please forgive my newness but I'm creating a table with 10+ rows and columns and need to sum the colums. The user is expected to select a number from a drop down list and I would like to sum those nbumbers up at the bottom of the column, seems simple enough...
    I have named each cell in the bindings tab but can't seem to find the right sum script. I just started using livecycle and have had a good experience up until now.
    I wish it was like excel where you just need to click or highlight the cells you want to sum and be done with it but I can't seem to find the easy button...
    Cant you just highlight a column, name it and then use that name in a sum script?
    Thanks so much for any help and I've looked around but can't get a grip on this one so I apologize if it's been asked before.
    Go easy on me.

    One last thing.
    I can manage this one on my own but it's taking so long to do it the way I'm going at it.
    Basically, I've overpopulated most of my drop down list items, some by over 100 and I'd like to restrict the results that can be chosen by the user.
    Right now, I'm deleting each value in the List Item field in the cell tab one by one but I have a lot more to go and this could take a few hours at this rate. Is there no way for me to just highlight a large chunk and remove it that way or do I have to go one by one clicking the delete button? I can't find any option to delete more than one at a time which seems odd.
    Sorry if I'm not clear enough.
    Thanks again either way.
    ~OK~
    I just ended up copying a new cell to each overpopulated cell and rename. Seems to have worked and definitely saved some time, kind of obvious I suppose... but would be nice to be able to delete more than one item at once in the list item field.

  • Dynamic Drop-down list - selected value can't be cleared ...

    1. check out the following code of a dynamic drop down list using cursor :-
    DECLARE
         -- DROP-DOWN LIST OF ALL DEPARTMENTS
         TEMPNUMBER NUMBER(2) := 2 ;
    -- Because we've to initialize the list
    -- at least with 1 item.
    CURSOR C_DEPT IS
         SELECT DEPT_ID FROM DEPARTMENT;
    BEGIN
         ABORT_QUERY ;
         CLEAR_LIST('DEPTLIST');
         FOR TEMP IN C_DEPT LOOP
         ADD_LIST_ELEMENT( 'DEPTLIST', TEMPNUMBER, TEMP.DEPT_ID, TEMP.DEPT_ID );
         :SRBLOCK.LST := TEMP.DEPTNO;
         -- prev. line set the newly selected value
         TEMPNUMBER := TEMPNUMBER + 1 ;
         END LOOP;     
    END;
    2. problem is as we've to atleast initialize with one list item... that item can't be cleared with CLEAR_LIST.
    3. how can i actually clear that and still use cursor. because i've searched forum for this thing and found all those code not working ... for my project ...
    4. quick help needed ...

    Hi Omar,
    I have solution for you
    To populating or refreshing the lists you can use
    two procedures:
    One of them - generic, which can be used for all types of list
    Another is specific which contain a SQL statement to retrieve the data for
    particular list.
    1. Specific procedure:
    PROCEDURE GET_DEPARTMENT_LIST
    IS
    sql_stat VARCHAR2(32767);
    ret_code NUMBER;
    BEGIN
    -- SQL Statement for Drop-down List
    -- (must have two columns for label and value - both VARCHAR2)
    sql_stat := ' SELECT DEPARTMENT_NAME,TO_CHAR(DEPT_ID)'
    ||' FROM SCHEMA.DEPARTMENT';
    POPULATE_MY_LIST('BLOCK.DEPARTMENT_LIST',sql_stat,ret_code);
    END;
    2. Generic procedure:
    PROCEDURE POPULATE_MY_LIST
    (item_name VARCHAR2,
    sql_stat VARCHAR2,
    out_code OUT NUMBER)
    IS
    rg_id RECORDGROUP;
    rg_name VARCHAR2(100);
    ret_code NUMBER;
    item_id ITEM;
    BEGIN
         item_id := FIND_ITEM(item_name);
         IF ID_NULL(item_id) THEN
              out_code := -1;
              RETURN;
         END IF;
         --Creating Record Group with Unique Name
         rg_name := 'RG_'||SUBSTR(item_name,INSTR(item_name,'.',1)+1,LENGTH(item_name));
         --Checking Record Group Name for existance
         rg_id := FIND_GROUP(rg_name);
         --If Group does exist - delete it
         IF NOT ID_NULL(rg_id) THEN
              DELETE_GROUP(rg_id);
         END IF;
         --Creating Record Group
         rg_id := CREATE_GROUP_FROM_QUERY(rg_name,sql_stat);
    ret_code := POPULATE_GROUP(rg_id);
    IF (ret_code <> 0) THEN
         out_code := ret_code;
         RETURN;
    END IF;
    POPULATE_LIST(item_name,rg_id);
    IF NOT FORM_SUCCESS THEN
         out_code := -2;
         RETURN;
    ELSE
    out_code := 0;     
    END IF;
    DELETE_GROUP(rg_id);
    END;
    Hope it help.
    Dmitry

  • How To Create Drop Down List?

    Hi All,
    I Want to Create DropDown list For Company Code.
    I Gave Control Property As 'DropDownList'
    In Entry List, I Gave System Object And Bapi.
    After It Displays Input And Output.
    What Value I Assign to Company Code
    in Both Input And Output Ports.
    This is Very Urgent,please Give Steps For Quick Understanding.
    Thanks & regards
    SubbaRao Chinta.

    subbarao
    1- right click on your drop down list.
    2- choose properties.
    3- goto the entry list tabl
    4- select dynamic entry list.
    5- choose your system and search for the BAPI --> BAPI_COMPANYCODE_GETLIST.
    No input is required for this bapi
    6- for the output choose COMPANYCODE_LIST
    VALUE --> @COMP_CODE
    TEXT --> @COMP_NAME
    Regards,
    Sami
    Edited by: Sami Ahmed on Mar 24, 2008 10:54 AM

  • How to put drop down list

    Hi All,
    I have added Z_field in Va01 Transaction. I want to put drop down list for that .
    Can you please suggest me how to do that.
    Regards
    Radha

    Hi Radha Konjeti,
    To have a dropdownlist/listbox in your report, use this demo code for creating a listbox with a set of values in it and select a single value for processing:-
    REPORT  Y_MOVIE MESSAGE-ID ZMSG.
    TABLES : Y_MOVIES.
    TYPE-POOLS: VRM.
    TYPES : BEGIN OF MOVIE,
            YR LIKE Y_MOVIES-YR,
            CATEGORY LIKE Y_MOVIES-CATEGORY,
            WINNER LIKE Y_MOVIES-WINNER,
            NOTES LIKE Y_MOVIES-NOTES,
            END OF MOVIE.
    DATA: NAME TYPE VRM_ID,
          LIST TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST,
          MOVIETAB TYPE STANDARD TABLE OF MOVIE INITIAL SIZE 10 WITH HEADER LINE.
    PARAMETERS: CATEGORY(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN.
      IF CATEGORY EQ ''.
        MESSAGE E006.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      NAME = 'CATEGORY'.
      VALUE-KEY = 'PIC'.
      VALUE-TEXT = 'PIC'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'MAL'.
      VALUE-TEXT = 'MAL'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'FEM'.
      VALUE-TEXT = 'FEM'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.
    START-OF-SELECTION.
      WRITE : / 'Category Selected :', CATEGORY.
      ULINE.
      SELECT
      YR
      CATEGORY
      WINNER
      NOTES
      FROM Y_MOVIES INTO TABLE MOVIETAB
      WHERE CATEGORY = CATEGORY.
    END-OF-SELECTION.
      WRITE : /1 'Year', 6 'Category', 16 'Winner', 50 'Notes'.
      ULINE.
      LOOP AT MOVIETAB.
        WRITE : /1 MOVIETAB-YR, 8 MOVIETAB-CATEGORY, 16 MOVIETAB-WINNER, 50 MOVIETAB-NOTES.
        ULINE.
      ENDLOOP.
      IF SY-SUBRC <> 0.
        MESSAGE I005.
      ENDIF.
    Hope this solves your problem.
    Thanks & Regards.
    Tarun Gambhir.

  • How to add drop down list in toolbar?

    Hi SAP CRM Experts,
    After save the personalization of the view, there will be a drop down list appeared in the toolbar in the view, the drop value contain the personalization you just saved and the standard one.
    Could someone let me know how to enhance this functionality to create not only the view configuration but also customizing field drop down list?
    That means we want drop down list in toolbar which contain several options also it's value could pass to view controller.
    Thanks in advance...
    Tony

    Could someone kindly help?

  • Drop down list for values at parameters forconfigurable product in CRM 2007

    Hi All,
    I want to create configurable service products in CRM 2007 connected with SAP IS-U.
    I uses the simplified product configuration, container approach. Hierarchy, settypes are set.
    Then I created parameters like for example discount, I can set in the WEB UI default value for this parameters, like 5%.
    But I need to have more variables for one parameter.
    For example:
    The agent sells an electricity product to the customer, and wants to configure the product in the sales process, give a discount from 5, 10, 15%.
    This variables 5,10,15% I like to get somehow in a drop down list, that the agent has a choice wich discount he gives.
    Thanks for any answers!
    Gabor

    Patrick,
    In PPOMA, did you check the requester for inheritance?  If the values are maintained at a higher level, is the inhertiance working to the requester level in the org structure?
    Regards, Dean.
    Edit: I just your reply to the previous posting, do you have one set as a default?
    Edited by: Dean Hinson on May 20, 2008 3:27 PM

Maybe you are looking for