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

Similar Messages

  • How to add values to drop down list in adobe forms

    how to add values to drop down list in adobe forms

    Hi,
    If you are using WD Java following are steps of filling values in DD Box:
    1 Create a simple type in the Dictionary.
    2 Create an attribute "CountryNew" in the Context of type created by you.
    3 Write following code in the init method of the form:
    IWDAttributeInfo countryinfo =
                   wdContext.nodeEmployee().getNodeInfo().getAttribute("CountryNew");
    ISimpleTypeModifiable Country = countryinfo.getModifiableSimpleType();
    IModifiableSimpleValueSet countryValueSet =
                   Country.getSVServices().getModifiableSimpleValueSet();
    countryValueSet.put("IN", "INDIA");
    countryValueSet.put("US "USA");
    4 Add a Enumrated DD box in the form and bind it to the attribute "CountryNew"
    Hope this helps
    Amit

  • 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

  • Drop down list in Adobe forms

    Hi All,
    I need to provide a drop down list in the Adobe form. I am calling this form from an SE38 program. I have selected the 'Value Help drop down list' element. How do i pass the value or bind the values to this element. The values for the drop down list are selected from a standard table at runtime.
    I tried using Enumerated drop down list also but did not work.
    Any idea????
    Thanks,
    Prakash Pandey

    Hi ,
    Thanks for posting this, saved me a lot of hassles trying to program something. One question. My values are in a nested table. e.g. I have a table with criteria for an appraisal. The criteria have a dropdown on them with a ratings. So, one appraisal, many citeria, many possible rating values. When I put in your code, e.g. $record.APPRAISAL.CRITERIA.DATA[].RATINGS.DATA[] , I get all Ratings relevant to all criteria on each line for the criteria table, not just for the criterion they belong to. How do I specify that it should only pick up the ratings for the current criterion ?
    Hope my explanation makes sense
    Thanks !

  • Please help: Populating values in drop down list by onchange - javascript !

    I am working on a task - I need to populate drop down named "year" dynamically (from database) depending upon the select of an element from drop down list "carLine" . I am calling javascript funtion on onchange event of the html select and setting property of the selected element.The environment is Struts and dynaactionform is being used . Here is the my html select for both the drop down list s and javascript funtion to set value. The getYears method is defined in the locatoraction action class. But after doing all these carLine is not getting populated with the values corresponding to selected carline.
    Database side is working fine .
    <script type="text/javascript">
    function getYearsForCarline(){
    document.getElementById('method').value = 'getYears';
    document.forms[0].submit();
    alert("submitted");
    </script>
    <html:form styleId="locatorForm" action="/locator/locatorAction" method="post">
              <input type="hidden" name="method" value="getYears" />
              <tr>
                   <td align="center">
                   <table border="0" width="300" cellpadding="0" cellspacing="5">
                        <tr>
                             <td><span class="formLabelEM"><bean:message
                                  key="label.locator.carLine" />*</span>
                             <html:select styleId="carLineBox" property="carLine" onchange="javascript:getYearsForCarline()">
                                  <html:option value="">Select a Carline</html:option>
                                  <html:optionsCollection property="carLines" />
                             </html:select></td>
                        </tr>
                        <tr>
                             <td><span class="formLabelEM"><bean:message
                                  key="label.locator.modelYear" />*</span>
                             <html:select property="year" >
                             <html:option value="">Select Year</html:option>
                                  <html:optionsCollection property="years" />
    Any advise will be highly appreciated . Thanks in advance.

    Thanks both of you for the advise ! My code worked perfectly fine after adding separate action mapping for Year and using that as action in the form though the new action mapping point to the same action class locatorAction ..I still do not understand the reason behind this exactly(any suggestion are most welcome) but it works. Here is code for my action mapping :
    <action path="/locator/locatorYearAction" name="locatorForm"
                   input="/locator/locatorMain.jsp"
                   type="com.apps.sales.web.salesin.actions.LocatorAction"
                   parameter="method" validate="true">
                   <forward name="showCarlines" path="/locator/locatorMain.jsp"
                        redirect="false" />
                   <forward name="showModels" path="/locator/locatorModels.jsp"
                        redirect="false" />     
              </action>

  • Dynamic drop down list in Adobe forms

    I have created a drop down list using enumerated drop down list from webdynpro native tab and binded in the object palette by giving $record.sap-vhlist.DESCR\.DATA\.FIELD.item[]* in the list items dynamically.DESCR is the field in the internal table into which i fetched data from the database table .I have written this code in a BADI.I dont know whether my form's display type is activex or native? I am not getting any values in the drop down list.can anybody please tell me what might be missing and how should i know whether my form is ActiveX or Native?
    My form is called from portal so i have used BADI to connect portal to form

    Hi sarang,
    I have done a dynamic drop down list in which DESCR field comes from database table and pops into the drop down dynamically. I was working for a PCR scenario so the adobe form was called from portal.I will tell u all the required steps.It might work for u as it is working for me:
    1.In the form:
    I used two elements from library first is a "ENUMERATED DROP DOWN LIST NO SELECT" from web-dynpro native tab and second is "ISR_TEXT DISPLAY INVISIBLE ON EDIT MODE" from ISR controls tab.Place them one on other inthe form.
    For drop down list the setting are:
         In object, field tab click on list items there in ITEMS put :$record.sap-vhlist.DESCR\.DATA\.FIELD.item[*].in ITEMS TEXT write text in ITEMS KEY write key.
         In binding,in default binding put $record.DESCR.DATA[*].FIELD.
    For text element the settings are:
         In binding,default binding put Normal.
         when we select ISR_TEXT DISPLAY INVISIBLE ON EDIT MODE it automatically comes with calculated read only int he value tab.so open script editor and place the below code:
    $record.DESCR.DATA.FIELD (in calculate).
    2.Now the code in BADI is as follows:
    In BADI we have to write the code for drop down list in the METHOD "SCENARIO_SET_ADDITIONAL_VALUES"
    As i didnt change the standard BADI i added an enhancement spot in which i wrote a function module which fills ADDITIONAL_DATA. and the below code fills the ADDITIONAL_DATA .
    DATA: t_t572b TYPE STANDARD TABLE OF t572b WITH HEADER LINE,
            t_t554t TYPE STANDARD TABLE OF t554t WITH HEADER LINE.
      SELECT * FROM t572b INTO TABLE t_t572b WHERE sprsl EQ 'E'.
      CLEAR ls_additional_data-fieldindex.
      LOOP AT t_t572b.
        ADD 1 TO ls_additional_data-fieldindex.
        ls_additional_data-fieldname ='DESCR_KEY'.
        ls_additional_data-fieldvalue = t_t572b-descd.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname ='DESCR_LABEL'.
        ls_additional_data-fieldvalue = t_t572b-descr.
        APPEND ls_additional_data TO additional_data.
        CLEAR t_t572b.
      ENDLOOP.
    For DESCR field the we have to declare  DESCR_KEY and DESCR_LABEL in the place holders for key values and palce holders for default values in characteristics tab(where all the fields for the form are defined) of ur respective scenario.(where ur pcr scenario is defined)
    Hope ur problem got resolved.
    Please let me know if any doubts.
    If ur form is not called from portal and u want a dynamic drop down list the difference is put a data drop down list and in object, field tab click on list items there in ITEMS select the field into which u populated the data from the database table (this code shud be written in code Initialization in the respective interface) and in ITEMS TEXT put $ in ITEMS KEY put $.and in binding as we normally do bind it to the respective field in which the data is populated from database table.
    It should work.

  • 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

  • Regarding drop down list  in adobe forms ::::urgent

    hi
    i have a drop down list with entries 1,2,3...  and a text field in the form layout.
    now the requirement is when i select one entry from the list
    the name of that particular entry should display in the text field.
    suppose say for ex...
    entry 1   name=xxxxx
    entry 2   name =yyyyy.
    like wise depending on what i select it should display the result in the text box..
    let me know the logic for it...
    Edited by: suman yerravelli on Mar 4, 2008 6:03 AM

    hi all
    i have a drop down list with entries 1,2,3... and a text field in the form layout.
    now the requirement is when i select one entry from the list
    the name of that particular entry should display in the text field.
    suppose say for ex...
    entry 1 name=xxxxx
    entry 2 name =yyyyy.
    like wise depending on what i select it should display the result in the text box..
    let me know the logic for it...

  • External XML data files to add values to drop down lists

    I would like to have external XML data files to add values to drop down lists in my form.. But when i create a data connection it is working properly only in the Preview in Livecycle Designer.. but not in the PDF form(Adobe Reader). Moreover im not sure whether it will work in the form manager..!plzz help me!
    Raghava Kumar V.S.S.

    Hi,
    For the case of raghavakumar, Is it really that I need to have LiveCycle Reader Extensions? Is there any other way that could do the same?
    Thank you

  • How to set a default value in a Value Help Drop Down List

    Hi,
    I used an age Range field in my adobe form, the control  is a Value Help Drop Down List. i am populating the drop down using following code.
    IWDAttributeInfo ageInfo = wdContext.nodePersonalData().getNodeInfo().getAttribute("CTAgeRange");
         ISimpleTypeModifiable ageType = ageInfo.getModifiableSimpleType();     
         IModifiableSimpleValueSet ageValueSet =  ageType.getSVServices().getModifiableSimpleValueSet();
         ageValueSet.put("1","21-29");
         ageValueSet.put("2","30-34");
         ageValueSet.put("3","35 or Above");
    My requirement is to set a default value e.g. 30-34 in the age range field.
    I want to give input to iform from my Implementation code only.
    Please help.
    Thanks in advance

    hi Ranjan,
    that means you have to set at design time,
    to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element) in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<default value>)
    This generally done in Initialization method of the controller.

  • Drop down list in Adobe : PCR Scenario

    Dear Experts,
    I am struggling to get the drop down list in Aobe forms.
    The values are getting populated in the internal table in BADI. But the values not coming in drop down list.
    Could you please help me on this issue?
    Should i have to write script for this?? script option is not coming in my ADLC.
    your valuable help will be definitly rewarded.
    thanks
    Yogesh.

    Hi Yogesh,
    Try using the WDP Activex dropdown in your form.
    Regards,
    Arafat

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

  • Drop down list in adobe.

    Hi,
    I have created an adobe form, in which I have to create drop down box which has to read values from simple type. for this i have created context attribute whose type is simple type, and i have draged that context attribute in adobe form, and made it to drop down list, but values r not getting populating here,
    how to poin this to simple type.

    Hi try this way
    In your view create a Value Node of cardinality 1:1 (say of name DataSource ).
    Inside DataSource Create another Value Node of cardinality 0:n say Employee .
    Create a Value Attribute of  Java_Simple_Type say EmpName.
    In Interactive Form Properties bind DataSource node under DataSource Element Properties.
    Open Interactive form to Edit.
    In adobe form designer go to left side window among three windows available.
    Go to Data View Tab.
    Here u will see your context structure.
    click on EmpName under Employee Node and drag and drop it to middle window which is adobe design time window.
    By this u will get a UI Element with drop down list and is automatically bound to context also.
    Save and Deploy.
    Mandeep Virk

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

  • Assigning Values to Drop-Down Lists

    I am populating a drop-down list with values of vendor names from my Oracle table. However, I'm assigning the vendor name as the value for each <option> record displayed in the drop-down list. The problem I'm having is that when I select a vendor name from the drop-down list and I view to see which value was selected, I only see a partial vendor name, rather than the full name. For example, If the vendor name that is selected is "Jacks Welding", when I retrieve that selection in my JSP page, the value only comes up as "Jacks" not "Jacks Welding". I want the option value to be the vendor name, not the vendor ID. How can I retrieve the full name from the drop-down list? Below is my code for populating the vendor names.
    <select name="vendor">
         <option></option>
    <%
    queryvendor = "Select Name from AJM.Vendor ORDER BY Name";
    Statement st = conn.createStatement();
         ResultSet rs = st.executeQuery(queryvendor);
         while (rs.next()) {
              out.println( "<option value=" + rs.getString("Name") + ">" + rs.getString("Name") + "</optioN>");
         st.close();
         rs.close();
    %>
    </select>

    Have a look at the HTML your code is producing. (Hint: your browser allows you to display the HTML source of a page.) You are producing this:
    <option value=Jacks Welding>Jacks Welding</optioN>
    This is sloppy HTML, but browsers will do their best with it. Try producing this instead:
    <option value="Jacks Welding">Jacks Welding</option>

Maybe you are looking for

  • My IDML file saved in Indesign CC won't open in Indesign 6

    Hello. I am on trial of Indesign CC, and exported a file to an IDML trying to open it on the school computer since they only have previous versions of Indesign. When I try to open my file that I worked on at home in Indesign CC, it won't open in Inde

  • Fire the noob responsible for usability

    And hire me. Who the hell thought it would be okay to have the focus on the link you just clicked when you alt-tab back into the chat window? The focus should ALWAYS be on the chat input box, dammit! Version 6.18.0.106

  • MD07 : vendor selection by default

    Hi expert, I'll give you points if you tell me how to select by default vendor in MD07. Thanks a lot !

  • Two Boot camp icons in task bar--fix?

    Ever since I updated to Boot Camp 2.02 and then to 2.1, I have 2 separate Boot Camp icons in my task bar (that thingie on the bottom right of your screen) under Vista-64. One of them launches the control panel for BootCamp 2.0, and the other for 2.1

  • How do I initiate WiFi Sync?

    iOS 5 installed, OS X 10.7.2 installed, iTunes 10.5 running, iPhone plugged into power, both iPhone & Mac on same WiFi network: but no Sync. What's missing to make it happen?