Populating drop down with search help

I have drop down to populated in WD,but i dont want it to be populated with the field values  from ddic,instead iwant the  the search help  values for this field in the ddic.Say for example i have the Carrid field with  values AA,BB and so on in the ddic table  and in the search help d description is there like for AA->american airlines and so on .so i dont want to populate my drop down with aa,instead i want american airlines.Please advice.

you can try this ,
1.after creating the attribute which you wanna populate in the context of your node .
2.Go to do inint method of your view and try using the code below with node and attributes which you need.
method wddoinit .
data:     rootnode_info type ref to if_wd_context_node_info,
      rootnode_info1 type ref to if_wd_context_node_info,
      it_value_bet type table of wdr_context_attr_value.
     " node_arrid type ref to if_wd_context_node_info.
rootnode_info = wd_context->get_node_info( ).
" ADD A CHILD NODE TO THE ROOT.
call method rootnode_info->get_child_node
  exporting
    name       = 'ARRANGEMENT_ID'
  receiving
    child_node = rootnode_info1.
data:    lt_valueset type wdr_context_attr_value_list  ,
      l_value type wdr_context_attr_value.
" fill up internal table from table***********************
data : itab_pa_id type standard table of /sappssrm/pa_idt,
       wa_sappssrm_pa_id like line of itab_pa_id.
select * from /sappssrm/pa_idt into table itab_pa_id.
loop at itab_pa_id into  wa_sappssrm_pa_id.
   l_value-value      = wa_sappssrm_pa_id-arrangement_id.
   l_value-text    =  wa_sappssrm_pa_id-description.
insert l_value into table lt_valueset.
endloop.
I guess this should help .
Regards,
Abhishek

Similar Messages

  • Strategies for populating drop downs with external data

    Hi,
    I have a couple nice forms that call various array scripts that populate drop down boxes based on a selection.  Everytime I need to update pricing, models, etc... I have to go in and manually edit the array.  I am using just designer - we do not have the server version.
    Is there a better way to do this ranther than edit the array and keep saving version?  I have seen some expamples using anXML file to the form.  This looks like a solution but I am not sure how to do it if this.
    It would be nice to have seperate database that contained my widgets external, update it and then make the connection. 
    Any help would be apprecated!

    This is a similar thread....
    http://forums.adobe.com/message/5538822#5538822
    Maybe this is a taboo subject as it something adobe wants you to buy the server version for...  I see this get asked many times but there never seems to  be a direct answer.
    In an effort to make my question more clear - If i have users out there with a form, and I want to update the form with a nightly updated file, that may contain pricing for example, how can one do this?
    So the core form stays the same, but dropdowns can be populated with external data.
    Thanks in advnace for any all help.

  • Creative cloud installed and run but doesn't display apps or anything for that matters , only a black bar at the top with creative cloud written and a drop down menu of (help pin on notification area and quit ), creative cloud installed and run but doesn'

    creative cloud installed and run but doesn't display apps or anything for that matters , only a black bar at the top with creative cloud written and a drop down menu of (help pin on notification area and quit ), creative cloud installed and run but doesn't display apps or anything for that matters , only a black bar at the top with creative cloud written and a drop down menu of (help pin on notification area and quit )
    don't know if it's relevant or not , I run Windows 8 64-bit

    111994 please try utilizing the steps listed in App doesn’t open | Progress wheel spins continually to resolve the current error.

  • Populating drop-down box from Server XML

    Hello all,
    I'm working on a REST - Lightroom interface, which I'm going to document as expose as a way for anyone to upload pictures to their site.
    Anyway, I need to populate a drop-down with the story names and ids from this XML. Any ideas? I'm a top actionscripter/ruby/etc, but not too familiar with Lua. Looks good though.
    1
    2
    Hope someone can help :)

    Hi there,
    I'm also facing an identical problem and would also like the solution. I've thought about using JavaScript in conjunction with JSP to populate the second drop down box dynamically. But first I need to retrieve the values in the first drop down box from a database and subsequently the 2nd drop down box - I'm thinking that a for loop needs to be used somehow. amishpg, I will let you know If I'm successful.
    Assad

  • Populating Drop down from Oracle Database

    Can someone please help me!
    I am trying to populate a drop down list in a JSP from an Oracle database. Basically the JSP gets the user, outputs their name and then should display a drop down for them with some values in it!
    However, I seem to be getting a drop down box for each option rather than one drop down with every option from the database;
    Here is my code!
    <html>
    <head>
    <title>JDBC and JSP</title>
    </head>
    <body bgcolor="#FDF5E6">
    <h1 align="center">Welcome to Student Sigon Page!!</h1>
    <%@ page import="java.sql.*" %>
    <%@ page import= "java.util.*"%>
    <%@page import= "java.io.*" %>
    <%
    //String driverClassString = "oracle.jdbc.driver.OracleDriver";
    //String driverConnectString = "jdbc:oracle:thin:@172.17.106.78:1521:globaldb";
    //String username = "system";
    //String password = "manager";
    %>
    <table>
    <tr>
    </tr>
    <%
    Connection conn = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@Midas2:1521:globaldb", "system", "manager");
    catch (Exception e) {
    out.println("Cannot close connect to database!"+e);
    if (conn != null) {
    String login = request.getParameter("username").trim();
    String pswd = request.getParameter("password").trim();
    String sqlQuery;
    if (login !="")
    if (pswd != ""){
    sqlQuery = ("SELECT familyname, givenname FROM STUDENTINFO WHERE username='"+login+"' AND password='"+pswd+"'");
    try { // execute the query
    Statement stmt = conn.createStatement();
    ResultSet rst;
    rst = stmt.executeQuery(sqlQuery);
    // Fetch the query result, and dispaly them in a table
    while (rst.next()) {
    %>
    <tr>
    <td> Family Name:<%= rst.getString("familyname") %> </td><tr>
    <td> Given Name:<%= rst.getString("givenname") %> </td><tr>
    <tr>
    <tr>
    </tr>
    <%
    stmt.close();
    } catch(Exception e) {
         out.println("Cannot fetch data from database!"+e);
    %>
    <%
    String sqlQuery2;
    sqlQuery2 = ("SELECT code,title FROM TMPOffering");
    try { // execute the query
    Statement stmt = conn.createStatement();
    ResultSet rst2;
    rst2 = stmt.executeQuery(sqlQuery2);
    while (rst2.next()) {
    %>
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    <select>
    </td>
    </tr>
    </tr>
    <%
    stmt.close();
    catch(Exception e) {
    out.println("Cannot fetch data from database!"+e);
    %>
    </table>
    </body></html>

    Replace
    while (rst2.next()) {
    %>
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    <select>
    </td>
    </tr>
    </tr>
    <%
    }with
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <%
    while (rst2.next()) {
    %>
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    </td>
    </tr>
    </tr>
    <%
    </select>
    %>-Bharat

  • Self populating drop down lists.

    Is there any tutorials or information to do a self populating
    drop down list
    in CF?
    I assume you would have the form post back to its self using
    a IsDefined for
    each drop down step. Drop Down 1 (DD1) is selected and that
    posts back to
    the same page and causes the DD2 to run a SQL query based on
    DD1's choice
    and you repeat the process until the final DD is selected.
    Is this correct and where can I find a good tutorial?
    Thanks
    Wally Kolcz
    Developer / Support

    Do a search on Google for "related selects in ColdFusion".
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Wally Kolcz" <[email protected]> wrote in
    message
    news:e7c9hc$g6a$[email protected]..
    > Is there any tutorials or information to do a self
    populating drop down
    > list in CF?
    >
    > I assume you would have the form post back to its self
    using a IsDefined
    > for each drop down step. Drop Down 1 (DD1) is selected
    and that posts back
    > to the same page and causes the DD2 to run a SQL query
    based on DD1's
    > choice and you repeat the process until the final DD is
    selected.
    >
    > Is this correct and where can I find a good tutorial?
    >
    > Thanks
    >
    > --
    > Wally Kolcz
    > Developer / Support
    >

  • Connecting drop-down with check boxes?

    I am making a document which provides information about retrieving documents for several countries. The user will use this form as a reminder for himself, this way he can see which documents he needs and which documents he still needs to make, or recieve from someone else. Whenever he recieves a document he can check the checkbox. The document is made in InDesign so it is a simple PDF. I have made this in to a form. It looks like the following example:
    Select country: Drop-down with items/countries: Netherlands, Belgium and Germany.
    Needed Documents
    Transport
    Bank
    Owner
    Document 1
    checkbox
    checkbox
    checkbox
    Document 2
    checkbox
    checkbox
    checkbox
    Document 3
    checkbox
    checkbox
    checkbox
    The main lead is the country which is build from a drop-down. For example: you can select the Netherlands, Belgium and Germany. Whenever you select a country the checkboxxes(made in Acrobat) should apear.
    But here's the thing: Not all countries need the same documents, so whenever a country does not require (for example) document 3, all checkboxxes of that line should not be visible for the selected country. And on document two the checkbox of the bank should not apear as well.
    I have some experience with creating forms, but not in javascript so I was hoping some of you could help me creating this base for the document?
    Thank you in advance,

    Is it even possible?

  • Hi, Macbook Pro 10.6.8 yahoo ect tells me to upgrade Safari. I guess I can't unless I buy m.Lion. Now safari will not quit. Quit is no longer highighted on my safari drop down menu. Help

    Hi, Macbook Pro 10.6.8 yahoo ect tells me to upgrade Safari. I guess I can't unless I buy m.Lion. Now safari will not quit. Quit is no longer highighted on my safari drop down menu. Help thanks, Mary

    Hi Mary,
    Force Quit Safari by clicking Option+Command+ESC
    Cheers,
    GB

  • Issue With Search Help in Module Pool

    Dear All,
    I have an Issue with Search help. I have created a Module Pool Program. In this module pool, User requires the search helps for the fields.
    Imagine there are 3 fields on a screen. Field1, field2 and field3.
    Field2 entries depends on field1 and field3 entries depends on field1 and field2.
    I have created a collective search help. and created the corresponding Ztables to maintain the search help entries.
    Now I assigned the same collective search help to both the fields . i.e. field2 and field3. But when i execute the module pool program, and press F4 on these fields , the data shown is write. BUT for the 3rd field, when I select F4, The second field values are transfered to the screen, instead of third field value.
    Any Idea will be appreciated .
    Help me , Its very Urgent.
    Regards,

    Did you check the screen field names & search help name? is it identical & unique?
    Raja T

  • Issues with Search Helps

    Hi Experts,
    Anyone have any advice or suggestions for this problem?
    Problem:
    When running standard SAP search helps (let's say search for material by material type - from MM03) the system seems to truncate my last character.  For example if I enter ERSA for material type - and look at the dynamic selection criteria all I see is 'ERS'.  Thus when I run my search - no results are returned.
    It is very odd behavior.
    Notes:
    - This occurs with standard and custom search helps
    - This only occurs with search helps - other fields do not have this issue
    - I recently downgraded my GUI version from 710 back to 640.  Since then I have uninstalled and re-installed many times - this does not seem to help.

    Why don't you try to login thru some other desktop that have SAPGui 7.10 and check whether its working or not.

  • 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

  • Form Guide - Populating a drop down with entries from another field(s)

    Greetings all!
    Here is what I am trying to accomplish:
    1. Build a repeating panel that has a field for the entry of a Name. (I can do this)
    2. Build a drop down field on another panel that will be populated with the Name entries from one or more of the repeating panel Name fields in 1. above. I would like this to happen while the user is in the same render of the form guide.
    3. Setup:
         LC ES2
         Workbench 9.5
         Would utilize Workspace to complete the form guide
         Want to use a .fml data model
    Any help would be appreciated.
    Best Regards,
    Rick Kuhlmann

    pguerett,
    Many thanks for that lca. I have been able to move forward with development of a POC Form Guide.
    However, I have one other issue that if solved will push my POC to the point of demo status for the business.
    Here it is:
    The business needs to be able to add the names of children to a Children Info panel on the form guide. - No problems with that.
    Then they need to be able to go to another panel in the form guide and select a child name from a drop down to associate that child with the name of a father. - The previous post with the lca solved that.
    Now what I need to do is to be able to take the selected child in the father panel and place that value into the data model.
    Why? because the final part of this form guide is to populate a pdf form that is really a legal petition to the court. The child(ren) names form the Children Info panel are listed at the beginning of the petition. Then the selected child in the father panel is displayed in the father section.
    So what I am looking to do is to populate that selected child in the father panel to a property in the data model.
    However, based on the lca you sent it does not seem that when I add a Data Object to the Data Model in the Guide Builder that I am not able to push that data back into the original Data Model. I thought that using a Binding might work but I have struck out so far.
    Clear as mud? Any help you or anyone else can provide would be wonderful.
    Thanks a ton!
    Rick Kuhlmann

  • HELP: Two dynamic drop-down with database connection

    Hello:
    I want to know if somebody can help me, because I have two drop-down (one with states and another with cities) but both filled with a select from a database when the form is loading. I want to display only the cities from a state when the state select change. Now I display all the cities and all the states but don't change automatic. How can I do this?
    Thank you.

    Run two queries like you said:
    "SELECT * FROM states;"and
    "SELECT * FROM cities;"upon page load. Use the first query to populate your state dropdown. Load all the cities into a big two-dimensional JavaScript array, the first dimension being the state, the second being the city. Then, you can use the JavaScript onChange() event handler in the first dropdown:
    <SELECT NAME="state" onChange="popCities();">to trigger the dynamic population of the second dropdown:
    function popCities() {
        city.options = allCitiesByStateArray[state.selectedIndex];
    }where allCitiesByStateArray is that big 2D array I mentioned earlier.

  • Problems with populating Drop Down List (WD ABAP)

    Hi,
    I am trying to populate two Drop Down fields CARRID and CONNID (Type Table SPFLI) on an Adobe Interactive Form in a Web Dynpro ABAP Application.
    In the WD Context I have a node "Flights" with those attributes.
    In the WDDOINIT I populate the Context elements (just for test purposes with all entries of SPFLI).
    [code]  
    DATA:
         node_flights                        TYPE REF TO if_wd_context_node,
         elem_flights                        TYPE REF TO if_wd_context_element,
         stru_flights                        TYPE wd_this->element_flights,
         it_flights TYPE TABLE OF spfli.
    SELECT carrid connid FROM spfli INTO TABLE it_flights.
    navigate from <CONTEXT> to <FLIGHTS> via lead selection
       node_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
    node_flights->bind_table(
        new_items            = it_flights
        set_initial_elements = ABAP_FALSE
    [/code]
    According to this
    Re: adobe form/reader  error I bound the element values property of the Enumerated Drop Down List to [code]$record.sap-vhlist.CARRID.item[*][/code], whereas <i>Object Text</i> is "Text" and <i>Object Value</i> is "Key".
    Unfortunately the DDLs on the Adobe Form are not populated with the values read from the table. I debugged the application and the values are written to the Context node.
    Do you have any further hints?
    Best regards,
    Robin
    Message was edited by:
            Robin Wennemuth

    Robin:
    Did you get this resolved? Would you please tell me how you got it done?
    Thank you,
    Fred.

  • Error message when populating drop-down list with mysql DB

    Hi everyone,
    i'm having an error message which gives zero result on google...
    here's the context: i have a drop-down list called "Patient" in the template pages of a livecycle form. The binding is set to Global so that the value is the same on the two pages of the form. I have also linked the items of the list to a mysql database (with DataConnection) by clicking the "Specify Item Values" link on the Binding tab of the element.
    now, when i open my form (or preview) i get this message, in french:
    "Propriété incorrecte de l'opération SET; dataGroup ne possède pas de propriété id."
    which is, in english (personal translation):
    "Incorrect property of the SET operation; dataGroup doesn't have an id property."
    this message appears in a messagebox, the background is empty (standard gray color)
    Then i click "OK" (which is the only button available), and my form appears, the list is populated with the values of my database table, so it actually works...
    As i said, i have zero results on google with this message...
    any idea what it means and how to avoid it?
    Thanks!

    Hi,
    For all things XFA Forms and Databases there is no place better than Stefan Cameron's blog: http://forms.stefcameron.com/.
    Have a look here: http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/ and at comment 60.
    Good luck,
    Niall

Maybe you are looking for