Populating Drop-down List in Interactive Forms for Java

Hi,all
I need to populate a drop-down list in Interactive Form.
I tried to do it by using Dynamic Properties of the drop-down
list,but didn't give nothing.At the same time I have successfully
populated a simple drop-down list(on webdynpro view),which I
replaced near my InteractiveForm.
What may be the problem?
Regards,
Michael

Use the DDL from the Web Dynpro pallette. Bind the same/ similar attribute of the DDL you used in the web Dynpro view in the interactive form also... this should work..
Thanks and Regards,
Anto.

Similar Messages

  • Fill Drop down list in Interactive form

    Hello.
    I am trying to display multiple values form the context of an form, so not web dynpro! I am using a valuelist object for that.
    When I test the form I am only getting to see the first value of my internal table and the drop down list cannot be expanded.
    If I analyse the XML I see that the items are there which I want to display.
    What is the cause of this, or is this only possible with Interactive form in an Web dynpro scenario (I hope not)
    Regards,
    Harrie Prinsen

    Hi Harrie,
    As per this post, I understand that you are going to use a simple ADOBE PRINT FORM which fetches data from ECC and displays it in the form...Am I right?
    See, if it is going to be a Simple PRINT FORM which is NON-INTERACTIVE in nature, I dont see the need of DROP DOWN LIST in this scenario. I think that could be the reason why always the first item of the INTERNAL TABLE is displayed all the time.
    If you have an INTERACTIVE SCENARIO where the user can select an option from the drop-down, then you can go with ABAP WD/JAVA WD/ISR Adobe Interactive Forms.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Drop-down list in Interactive forms

    Hi All,
    I am creating an interactive form in webdynpro abap. I would like to include a drop-down list in the interactive form. Data in the drop-down list should come from a database table.
    Can anyone give a sample program to do it? It would be of great use.
    Thanks & Regards,
    Vinod

    hi Vinod,
    You may get many threads with  similar query as yours if you use the search functionality.
    But you may refer these two threads which are close to your query.
      Drop Down List population - Abap dynpro adobe form - type ZCI
      Re: Dynamic Drop Down in Interactive Form not populating values
    Regards,
    Runal

  • Drop-down list in interactive form go up and sounds weird

    Hello everybody,
    I've a problem with a drop down list in an interactive form in my webdynpro java application.
    I've an interactive form in my view, display type is "native".
    I've put a drop down list in the pdf and filled it with some elements taken from a bapi.
    It looks like this
    IWDAttributeInfo countryInfo = wdContext.nodeListePoste().getNodeInfo().getAttribute("ListeTypePoste");
              ISimpleTypeModifiable countryType =
              countryInfo.getModifiableSimpleType();
              IModifiableSimpleValueSet countryValueSet =
              countryType.getSVServices().getModifiableSimpleValueSet();
              for(int i=0;i<wdContext.nodeListe_Poste_view().size();i++){
                   IPrivateFDIView.IListe_Poste_viewElement element = (IPrivateFDIView.IListe_Poste_viewElement)wdContext.nodeListe_Poste_view().getElementAt(i);
                   countryValueSet.put(element.getPoste_Code(),element.getPoste_Libelle());
    then I've binded my drop down list with the element of the context "ListeTypePoste"
    When I run the application I can see the list in my drop down but it goes "up"
    Like this:
    http://img198.imageshack.us/img198/7263/20111207170807.png
    Instead of having my list going down it goes up.
    And when I click the arrow to open the list I've a weird BEEEEEP like an error.
    At the end the list works well and if I choose an element it's well selected, but I would like to take of the BEEEP and to have the regular list going down.
    Any ideas?

    Hi
    I think you problem can be traced to the place where you put your drop down.
    As far as I understand your drop down funcions well.
    Try to move it into another container or best put it under RoorContainer. Test it.
    regards
    yuval peery

  • Drop-down list in Interactive forms ACF

    Hello friend,
    I am creating an interactive form in webdynpro abap.
    in my Context have:
    Z_template_surce        cardinality 1-1
        z_node                   cardinality 1-1  this structure not table.
             Country             my fiield.
    This my code. :
      DATA ddlb_value_set TYPE TABLE OF  wdr_context_attr_value.
      DATA lw_t706o TYPE t706o.
      DATA: s_element TYPE wdr_context_attr_value.
      SELECT * FROM t706o INTO lw_t706o
        WHERE  spras EQ sy-langu AND
               morei = '15'.
        s_element-value = lw_t706o-land1.
        s_element-text = lw_t706o-text25.
        APPEND s_element TO ddlb_value_set.
        CLEAR s_element.
      ENDSELECT.
      IF sy-subrc EQ 0.
        node_z_node->set_attribute_value_set(
       name      = 'COUNTRY'
       value_set = ddlb_value_set ).
      ENDIF.
    this is correct ?
    i can create the my drop down list ??
    thaks.

    ?????????????

  • Drop down lists in Interactive forms:HCM Forms&Processes

    Hi Experts,
    I am working in HCM Forms and Process.
    I have 2 dropdown lists in my  interactive form such as COUNTRY, STATE. The STATE dropdown should be populated based on the COUNTRY field dynamically.
    I have written the logic for STATE dropdown in the method GET_STATES of  Custom Generic Service Implementation Class and that method is used in the OPERATION of FIELDGROUP in Form Scenario.
    The Java Script in the EXIT event for COUNTRY is as follows.
    xfa.record.CONTROL_PARAM.ISR_EVENT.VALUE = u201CGET_STATES";
    app.eval(u201Cevent.target.SAPSubmit();u201D);
    Still the the STATE lists is not populating in the form in Portal.
    Please provide some valuable inputs on this.
    Thanks in advance

    Hi Mukesh,
    Thanks for your response.
    It seems the script is not triggering .I didnt get the alert message.
    I am working in Citrix and SAP GUI 710 has been installed now. Still, I can't insert Webdynpro Script. It is showing one error "Error while inserting Webdynpro script".
    Earlier, in SAP GUI 640, I was able to see with the Data view with the interface import parameters. Now  the Data view(Left side of Layout)  has no elements , although the form is linked with an Abap dictionary based interface.
    Do you have any idea why these kind of errors are coming? Is this the problem with Citrix ?

  • Dynamically Populating Drop Down Lists

    Hi,
    I am trying to dynamically populate a drop down list on a form based on a selection in another drop down list. I have read the help file "To dynamically populate a second field after populating the first" which goes through an example, however I cannot get this example to work for me.
    I know that the best way to do it is to create an xml file and connect the form to this file. I am new to programming in xml but have had some experience in other forms. The code that I have (from the help page) looks like this;
    <?xml version="1.0" encoding="UTF-8"?>
    <MyData>
       <country/>
       <countries>
          <item uiname="United States" token="US"/>
          <item uiname="Vietnam" token="SRV"/>
       </countries>
       <state/>
       <US>
          <item>California</item>
          <item>New York</item>
          <item>Texas</item>
       </US>
       <SRV>
          <item>An Giang</item>
          <item>Bac Giang</item>
          <item>Bac Kan</item>
       </SRV>
    </MyData>
    I have then followed the instructions on the page, and am unable to populate either field on my form. Perhaps there is something wrong with my code? Or any other suggestions would be greatly appreciated! 
    Thanks

    Hi Paul,
    I have another question,
    I would now like to populate a third drop down menu based on the selection in the second one, however my code is going wrong somewhere as now when I put in the first 2 drop down lists, nothing appears in the second one. ie, the first drop down list I link to countries, and the second to state, as I did with the previous file, but now, when I preview it, I can choose a country, but nothing comes up in state. When I set the first drop down box to countries, I have to specify that I want it to show the uiname, but I can't do that with the second one when I select state using the XML file below, nothing is shown. Where am I going wrong?
    <MyData>
       <Country/>
       <countries>
          <item uiname="United States" token="US"/>
          <item uiname="Vietnam" token="SRV"/>
       </countries>  
       <state/>
       <US>
          <item uiname="California" token="CA"/>     
          <item uiname="New York" token="NY"/>   
          <item uiname="Texas" token="TEX"/>
       </US>
       <SRV>
          <item uiname="An Giang" token="AG"/>
          <item uiname="Ban Giang" token="BG"/>
          <item uiname="Bac Kan" token="BK"/>
       </SRV>
       <time/>
       <CA>
          <item>6</item>
          <item>7</item>
       </CA>
       <NY>
          <item>5</item>
          <item>4</item>
       </NY>
       <TEX>
          <item>3</item>
          <item>8</item>
       </TEX>
       <AG>
          <item>2</item>
       </AG>
       <BG>
          <item>1</item>
       </BG>
       <BK>
          <item>9</item>
       </BK>
    </MyData>
    Thank you for your help!

  • How to get prefilled drop down list in Adobe form from WebDynpro context

    Hi All,
    We all know that we can have dropdown list in webdynpro which can be automatically populated by the context node collection.
    How can we have the same functionality in Adobe form drop down list. I tried to bind the node attribute to drop down list in Adobe form but it shows me only first element. I am not able to see all the elements in the dropdown but if I am doing same thing for WebDynpro DropDown list I can see the complete List.
    Anybody with Solution?

    Hi Ricky
    I have started a thread for this problem and got an answer for it already. Unfortunately I did not have the time to check it out yet; have a look over there:
    https://mail.cirrus.ch/exchweb/bin/redir.asp?URL=https:///community [original link is broken]
    I appreciate if you tell me whether it worked for you.
    Andreas

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

  • Drop down list on Interactive Adobe in ABAP Web dynpro application

    Hi Experts,
    How to provide data from R/3 to drop down list on Interactive Adobe in ABAP Webdynpro application.
    Please send any documents on this.
    Your help will be greatly appreciated.
    Regards
    Sridhar V

    http://help.sap.com/saphelp_erp2005/helpdata/en/dd/b0884118aa1709e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/bb/69b441b0133531e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/nw-development?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9
    http://www.apentia-online.com/UP/Apentia/files/Article/Web_Dynpro.pdf
    http://dpermana.files.wordpress.com/2008/02/how-to-use-webdynpro.doc
    These all links will resolve your problem.
    Regards,
    Yogesh...

  • Drop down list in ADOBE Forms - WDP for ABAP...urgent

    Hi Gurus,
    Can you please explain me how to display values in the dropdown list of Adobe interactive form in WDP for ABAP. Also expalin me how to accept them in the program once the user selects the value from the list. The requirement is I have to call the RFC, get the data and display in the dropdown list at the time of initialization.

    hi,
    to populate the dropdown list you can do it...
    1). manually or 
    2). by code(i work in java... there must be some ABAP equivalent...)
    1). <b>manually</b> go to interactive form->edit
         go to Object tab->field tab ->
         you must see something like
         List Items :
         Text     + x
         click on the green + sign...
         it promps you to type. type in the value press enter... and so  on...
    2) <b>by Code...</b>
        //set up contents of a drop down list dynamically...
        IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().
                getAttributeInfo().getAttribute("DestinationCountry");
        ISimpleTypeModifiable countryType =
                countryInfo.getModifiableSimpleType();
        IModifiableSimpleValueSet countryValueSet  =
                countryType.getSVServices().getModifiableSimpleValueSet();
        countryValueSet.put("1","Germany");
        countryValueSet.put("2","UK");
    This will work....
    regards,
    -amol gupta

  • Populating values to drop down list in Adobe Forms

    Hi,
    We have added a drop down list in our adobe form. Our requirement is Payment Terms should be displayed in this drop down list. We tried by adding values to drop down list in object palette window by using '+' sign. But now we want to display values dynamically from table T052U. We need to bring two fields ZTERM and TEXT1. We don't want to use database connection, just from a table as an importing parameter it should be appended to this list.
    Atpresent, we don't want to use webdynpro or java for getting values.
    Please provide suitable answers.

    hi,
    cretae simple type in data dictionary i don't have any idea to create simple type in adobe forms.
    For creating Simple Type------in Dictionary->Local Dictionary->Data Type->Simple Type(here right click u get  create simple type).and after that choose Enumaration Here u can add values
    and create a node WITH one attribute and this attribute is off Type of that simple type u created in local dictionary and bind that node with interactive form data source property ,now in interactive form drag and drop that attribte from your dataView Run your application  these values will populate in your Interactive form.
    Regards
    Trilochan

  • Filling dynamic drop down in adobe interactive form( webdynpro ABAP)

    HI all,
    Im new in Webdynpro ABAP, my requirement is to fill drop down list in adobe interactive form. i created adobe form and its working fine.
    I Created context like ROOT(cardinality 1:1)->DATANODE cardinality 0:n. This context is for drop down and in wddoinit i did  like this.
      IN WDDOINIT ,
    DATA lo_nd_root TYPE REF TO if_wd_context_node.
      DATA lo_nd_datanode TYPE REF TO if_wd_context_node.
      DATA lo_el_datanode TYPE REF TO if_wd_context_element.
      DATA ls_datanode TYPE wd_this->elements_datanode.
    navigate from <CONTEXT> to <ROOT> via lead selection
      lo_nd_root = wd_context->get_child_node( name = wd_this->wdctx_root ).
    navigate from <ROOT> to <DATANODE> via lead selection
      lo_nd_datanode = lo_nd_root->get_child_node( name = wd_this->wdctx_datanode ).
    get element via lead selection
      lo_el_datanode = lo_nd_datanode->get_element(  ).
    ls_datanode[] = lt_dna_value[].
    CALL METHOD lo_nd_datanode->bind_table
      EXPORTING
        new_items            =  ls_datanode
        set_initial_elements = ABAP_TRUE.
       index                =
    while executing  i'm getting this error ": WebDynpro Exception: ADS: com.adobe.ProcessingException: No output was generated while rendering: Stream for: PDFOut.(200,101). " . can u please tell me how to bind value for drop down.
    I created sample table in same form and i binded same value to table, that time its executing fine.
    can u please tell me solution for this Scenario.
    Thanks
    Hemachandran.
    Edited by: hemachandran R on Sep 12, 2008 2:27 PM

    hi,
    My requirement, is to use dynamic drop down in dynamic table. I am using webdynpro abap.
    i populated the value in drop down.
    Its working fine but the problem is how to fill the default value in drop down. because i want to bind the default value which im getting specify value from the table.because each row
    im getting different values, like first row
    CAR
    , that CAR want to fill as a default value in drop down  and second row  as
    BIKE
    that BIKE  want to fill as default value in drop down  ( example drop down contain   car , bike , cycle).
    In adobe form i binded like this
      $record.DATANODE.DATA[*].DNA_RATING
    i dont know whether this one is correct or wrong  .
    im getting default value as empty.
    please give me some solution how to do this.its very urgent
    thanks
    hemachandran.

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

Maybe you are looking for

  • IPod Classic trouble with 64 bit Windows 7

    Just got a new (generation 7?) iPod Classic.  I am running Windows 7 64 bit.  When I plug the iPod into any of the USB ports, it does not show up as a drive.  When I go into the device manager, it shows up as Apple Mobile Device under the USB Control

  • Issue installing iTunes with Quicktime 7.6

    I downloaded iTunes and it came with Quicktime. I went to install it and I got the following error message: Outlook is currently running on this computer. If proceed without quitting Outlook, it is highly recommended that you restart Outlook after in

  • ITunes Producer 2.4 can't repair epub

    I'm uploading some books to sell in the iBookstore using iTunes Producer 2.4.  When I highlight the epub and click Repair EPUB, I get a message back saying that it was unable to repair the EPUB, though no error messages or any clue as to what the pro

  • What is the best way to port complete applications from DEV - Test - PROD

    Hi, One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then, What is the best way to port complete applications from DEV -> Test -> PROD ?? Also, since the URLs in use in

  • .swf doesn't work when embed to html

    I have a quote .swf file that when I open in my PC and fill the form works, but when I embed the same .swf to an html page doesn't, this .swf file works on a different server than the one I post the html is there any special parameter or any other su