Dynamic dropdown list in adobe forms.

Hi All,
I need to have a dynamic drop down list in the adobe forms.The values for the drop down list are selected from a standard table at runtime.This is the online scenario.
I have been using Enumerated drop down list.How do i pass the value or bind the values to this element.
I have enable Dynamic binding in the Properties of designer. but i am not able to enter the values into the specify item values.(OBJECT-BINDING-SPECIFY ITEM VALUE).Actually in my case it is coming disable.
I have also set the preview format to "ACROBAT 8 (Dynamic) XML FORMAT" which is in the form properties.
please let me know if i am missing any step?
Thanks
Gaurav

Hello,
1) I am sure you didn´t search because I have answered this question many times around here. Next time seacrh first, ask later, please. That is how we do it here.
2) you must, in your options menu in LCD, allow yourself to use dynamic binding. Check the menus for the checkbox, that should help you get what you need.
Regards Otto

Similar Messages

  • Closing a Enumerated DropDown List in Adobe form

    I have an adobe form where we used Enumerated Drop down Lists for search helps. The problem is right now we dont have option to close the Enumerated DropDown List. It closes when we select a value or sometimes if we try "ESC" key. But we want to have a "Close"/"X" button like in normal search help.
    Letme know if there is any solution or an Alternate way to close the Enumerated Drop Down List from Adobe Form by just hitting a close/X button. Each value help has over 500 values, so we cannot use normal dropdowns, letme know if any other suggestions.
    Edited by: Phani Rajesh Mullapudi on Jun 21, 2010 8:14 PM

    Hello Arafat,
    I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
    The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
    I have included the following code in WDDOINIT method of the view:
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zsttxecr.
    handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
    select ktokd from kna1 into corresponding fields of zstruct.
    append zstruct to zitab.
    endselect.
    handle1->bind_table( new_items = zitab ).
    In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
    Please let me know what is missing.
    Thanks and Regards.

  • How to fill dropdown list in Adobe form

    Hi Experts,
                  I am new to adobe form.Please tell me ,how to fill drop down list in adobe form?
    Thanks,
    Hans

    Hello Arafat,
    I am using a drop down list in Adobe Interactive Form for Web Dynpro ABAP.
    The form is of ZCI type layout and the form interface is of XML schema-based interface type and the XML schema source is set to "Generated".
    I have included the following code in WDDOINIT method of the view:
    data: handle1 type ref to if_wd_context_node,
    begin of zstruct,
    zktokd type kna1-ktokd,
    end of zstruct,
    zitab type table of zsttxecr.
    handle1 = wd_context->get_child_node( name = 'DATA.NODE1' ).
    select ktokd from kna1 into corresponding fields of zstruct.
    append zstruct to zitab.
    endselect.
    handle1->bind_table( new_items = zitab ).
    In the Adobe Form Designer, i have binded the node NODE1 to the enumerated drop down list from native web dynpro library. Still the drop down box is not getting populated.
    Please let me know what is missing.
    Thanks and Regards.

  • Fill Dropdown list in Adobe forms

    Hi friends,
               I am using SFP transaction.I have two requirements.
                   1. How to fill dropdown list without java script or formcalc.
                   2. I have 2 dropdowns .If i select first dropdown,it will be populate another dropdown based on first drop down selection in the same form.
    Can you please help me?
    Thanks.
    Hans

    Which technology are you using Web Dynpro Java / ABAP? In both cases you can do the stuff in your backend i.e. the BAPI which you may be calling to dipslay just the material numbers, ask the ABAPer to change it so that it returns "Mat No  - Mat Desc" and not just Material No for e.g. 01000000001 - Material 1, 010000002 - Material 2 and so on.
    Bind it to the drop-down in your Adobe form and it should display the description in your Interactive form drop-down list only. So you do not need an additional field and trigger seperate events.
    Chintan

  • DropDown List in Adobe forms

    Hi All,
    I'm New to Adobe forms, I got a requirement on Dropdown list.
    In Layout Dropdown List contains Material Numbers . And placed one more Inputfield or text field next to the Dropdown list. 
    Once Material is selected from the dropdown list, auomtically  material desc of it should displayed in Inputfield.
    Could any please help me out in this.
    Thanks,
    Archana.

    Which technology are you using Web Dynpro Java / ABAP? In both cases you can do the stuff in your backend i.e. the BAPI which you may be calling to dipslay just the material numbers, ask the ABAPer to change it so that it returns "Mat No  - Mat Desc" and not just Material No for e.g. 01000000001 - Material 1, 010000002 - Material 2 and so on.
    Bind it to the drop-down in your Adobe form and it should display the description in your Interactive form drop-down list only. So you do not need an additional field and trigger seperate events.
    Chintan

  • Blank value added to dropdown list in Adobe Interactive forms

    Hi,
    I see blank value being added to the value list by default to dropdown lists in adobe interactive forms. The real issue is it's being added sometimes as the first value or last value in the drop down list of values which is inconsistent and resulting in Errors sometimes.
    Is there a way by which we can control the position of the blank value added by default(SAP or Adobe) to the drop down lists in adobe interactive forms .? Secondly , Is this a SAP or Adobe upgrade issue since we observed this issue only after recent upgrades ...?
    I am using HCM processes and forms and I am not adding blank value (space) explicitly in my coding of dropdown list values .
    Thanks for your time .
    Sankeerth
    Edited by: SANKEERTH D on Aug 22, 2011 1:46 PM

    Hi Sankeerth,
    The Web Dynpro framework generates a blank entry to the value set of the dropdown listbox if the Context attribute bound to the dropdown listbox is "nullable" (see properties of the Context attribute).
    The dropdown listboxes of interactive forms will be populated with exactly the same data (value sets) as the "native" Web Dynpro dropdown lisboxes.
    For SAP NetWeaver 7 EhP2, there's a Web Dynpro test application (WDR_TEST_ADOBE_ZCI) available, which demonstrates this: Start it and see the dropdown listboxes labeled "Datatype" and "Datatype (nullable)": Both are bound to Context attributes which are of type DATATYPE_D. The only difference is that one of the attributes is "nullable". The dropdown listbox bound to the nullable attribute contains the additional blank entry.
    Watch the native Web Dynpro dropdown listboxes below the interactive form: They are bound to the same Context attributes and contain the same value sets as the dropdown listboxes of the interactive form!
    Regards,
    Ralf

  • 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

  • Murray Please - Re: dynamic dropdown list DWMX

    Hello Murray,
    The dynamic dropdown list works fine now!
    I have now a little other problem, the ORDER BY for my
    dropdown list.
    I selected "ASC" but he shows me from Z -->>A and a
    want from A-->>Z
    Can you explain this? My code ...
    Thanks in advanced,
    www.SamDesing.be
    <%
    Dim groepenrecordset
    Dim groepenrecordset_numRows
    Set groepenrecordset = Server.CreateObject("ADODB.Recordset")
    groepenrecordset.ActiveConnection = MM_con_dbwaterloo_STRING
    groepenrecordset.Source = "SELECT * FROM tbl_hoofdgroep ORDER
    BY
    hoofdgroep_fr ASC"
    groepenrecordset.CursorType = 0
    groepenrecordset.CursorLocation = 2
    groepenrecordset.LockType = 1
    groepenrecordset.Open()
    groepenrecordset_numRows = 0
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Untitled Document</title>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    //-->
    </script>
    </head>
    <body>
    <form action="resultdropdown.asp" method="post"
    name="dropdown"
    id="dropdown">
    <p>Select category</p>
    <select name="hoofdgroep" id="hoofdgroep"
    onChange="MM_jumpMenu('parent',this,1)">
    <%
    While (NOT groepenrecordset.EOF)
    %>
    <option
    value="resultdropdown.asp?ID_hoofdgroep=<%=(groepenrecordset.Fields.Item("ID_hoofdgroep") .Value)%>"
    <%If (Not
    isNull((groepenrecordset.Fields.Item("ID_hoofdgroep").Value)))
    Then If
    (CStr(groepenrecordset.Fields.Item("ID_hoofdgroep").Value) =
    CStr((groepenrecordset.Fields.Item("ID_hoofdgroep").Value)))
    Then
    Response.Write("SELECTED") : Response.Write("")%>
    ><%=(groepenrecordset.Fields.Item("hoofdgroep_fr").Value)%></option>
    <%
    groepenrecordset.MoveNext()
    Wend
    If (groepenrecordset.CursorType > 0) Then
    groepenrecordset.MoveFirst
    Else
    groepenrecordset.Requery
    End If
    %>
    </select>
    </p>
    </form>
    </body>
    </html>
    <%
    groepenrecordset.Close()
    Set groepenrecordset = Nothing
    %>
    "Murray *ACE*" <[email protected]> a
    �crit dans le message de
    news: [email protected]...
    You're welcome.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Sam" <[email protected]> wrote in message
    news:[email protected]...
    > Thank you Murray
    >
    > "Murray *ACE*" <[email protected]> a
    �crit dans le message
    > de news: [email protected]...
    >> You could use either, but with a jump menu, all you
    would have to do is
    >> to make sure that the category is carried to the
    results page as a URL
    >> parameter.
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Sam" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Hello friends,
    >>>
    >>> I know that this is possible, but I can't find
    the solution!
    >>>
    >>> I use ASP VB
    >>>
    >>> I have a dynamic dropdown list from a table
    "categories" (access), when
    >>> I select a category I want to display the
    results from that category on
    >>> the result page.
    >>>
    >>> Do I have to use a dropdown or jump menu?
    >>>
    >>> Somebody can help me or give me a good step by
    step tutorial
    >>>
    >>> Thanks in advance,
    >>>
    >>> www.SamDesign.be

    Sorry, Sam, I have no idea.....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Sam" <[email protected]> wrote in message
    news:[email protected]...
    >I found it, but the last category is always selected. Is
    it possible to
    >have always the first selected with the A and not the Z?
    > Thanks,
    >
    > "Murray *ACE*" <[email protected]> a
    �crit dans le message
    > de news: [email protected]...
    >> Try DESC....
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Sam" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Hello Murray,
    >>> The dynamic dropdown list works fine now!
    >>> I have now a little other problem, the ORDER BY
    for my dropdown list.
    >>> I selected "ASC" but he shows me from Z
    -->>A and a want from A-->>Z
    >>> Can you explain this? My code ...
    >>> Thanks in advanced,
    >>> www.SamDesing.be
    >>> <%
    >>> Dim groepenrecordset
    >>> Dim groepenrecordset_numRows
    >>>
    >>> Set groepenrecordset =
    Server.CreateObject("ADODB.Recordset")
    >>> groepenrecordset.ActiveConnection =
    MM_con_dbwaterloo_STRING
    >>> groepenrecordset.Source = "SELECT * FROM
    tbl_hoofdgroep ORDER BY
    >>> hoofdgroep_fr ASC"
    >>> groepenrecordset.CursorType = 0
    >>> groepenrecordset.CursorLocation = 2
    >>> groepenrecordset.LockType = 1
    >>> groepenrecordset.Open()
    >>>
    >>> groepenrecordset_numRows = 0
    >>> %>
    >>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    >>> "
    http://www.w3.org/TR/html4/loose.dtd">
    >>> <html>
    >>> <head>
    >>> <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    >>> <title>Untitled Document</title>
    >>> <script language="JavaScript"
    type="text/JavaScript">
    >>> <!--
    >>> function MM_jumpMenu(targ,selObj,restore){
    //v3.0
    >>>
    >>>
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    >>> if (restore) selObj.selectedIndex=0;
    >>> }
    >>> //-->
    >>> </script>
    >>> </head>
    >>>
    >>> <body>
    >>> <form action="resultdropdown.asp"
    method="post" name="dropdown"
    >>> id="dropdown">
    >>> <p>Select category</p>
    >>> <select name="hoofdgroep" id="hoofdgroep"
    >>> onChange="MM_jumpMenu('parent',this,1)">
    >>> <%
    >>> While (NOT groepenrecordset.EOF)
    >>> %>
    >>> <option
    >>>
    value="resultdropdown.asp?ID_hoofdgroep=<%=(groepenrecordset.Fields.Item("ID_hoofdgroep") .Value)%>"
    >>> <%If (Not
    isNull((groepenrecordset.Fields.Item("ID_hoofdgroep").Value)))
    >>> Then If
    (CStr(groepenrecordset.Fields.Item("ID_hoofdgroep").Value) =
    >>>
    CStr((groepenrecordset.Fields.Item("ID_hoofdgroep").Value))) Then
    >>> Response.Write("SELECTED") :
    Response.Write("")%>
    >>>
    ><%=(groepenrecordset.Fields.Item("hoofdgroep_fr").Value)%></option>
    >>> <%
    >>> groepenrecordset.MoveNext()
    >>> Wend
    >>> If (groepenrecordset.CursorType > 0) Then
    >>> groepenrecordset.MoveFirst
    >>> Else
    >>> groepenrecordset.Requery
    >>> End If
    >>> %>
    >>> </select>
    >>> </p>
    >>> </form>
    >>> </body>
    >>> </html>
    >>> <%
    >>> groepenrecordset.Close()
    >>> Set groepenrecordset = Nothing
    >>> %>
    >>>
    >>> "Murray *ACE*"
    <[email protected]> a �crit dans le
    message
    >>> de news: [email protected]...
    >>> You're welcome.
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>> ==================
    >>>
    >>>
    >>> "Sam" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> Thank you Murray
    >>>>
    >>>> "Murray *ACE*"
    <[email protected]> a �crit dans le
    >>>> message
    >>>> de news:
    [email protected]...
    >>>>> You could use either, but with a jump
    menu, all you would have to do
    >>>>> is
    >>>>> to make sure that the category is
    carried to the results page as a URL
    >>>>> parameter.
    >>>>>
    >>>>> --
    >>>>> Murray --- ICQ 71997575
    >>>>> Adobe Community Expert
    >>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>> ==================
    >>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>>> ==================
    >>>>>
    >>>>>
    >>>>> "Sam" <[email protected]> wrote in
    message
    >>>>>
    news:[email protected]...
    >>>>>> Hello friends,
    >>>>>>
    >>>>>> I know that this is possible, but I
    can't find the solution!
    >>>>>>
    >>>>>> I use ASP VB
    >>>>>>
    >>>>>> I have a dynamic dropdown list from
    a table "categories" (access),
    >>>>>> when
    >>>>>> I select a category I want to
    display the results from that category
    >>>>>> on
    >>>>>> the result page.
    >>>>>>
    >>>>>> Do I have to use a dropdown or jump
    menu?
    >>>>>>
    >>>>>> Somebody can help me or give me a
    good step by step tutorial
    >>>>>>
    >>>>>> Thanks in advance,
    >>>>>>
    >>>>>> www.SamDesign.be
    >>>
    >>>
    >>>
    >>
    >>
    >
    >

  • 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

  • Dropdown List in Adobe Interactive Form Using Webdynpro ABAP

    Hi Pals,
    In my scenarion I need to list the Rating Code in the Dropdown list box of the Interactive Form.
    Form Created by using SFP transaction
    Not XML Schema interface
    Passing the values to the Form by using the default function module that which created automatically while creating the Form
    Am binding the Field and also binding for the list Item. Even though the values are not listing.
    $record.sap-vhlist.<Field name>\.DATA\.FIELD.item[*]
    I have followed the above format , but no use ...
    Field Name : rating_code
    $record.sap-vhlist.RATING_CODE\.DATA\.FIELD.item[*]
    Field Name : value
    $record.sap-vhlist.VALUE\.DATA\.FIELD.item[*]
    but it is not working for me, will appreciate if some one really help me to fix this.!!!!
    Thanks & Regards
    Andy.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

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

  • Only one value shown in dropdown list of ISR form using pure ABAP

    Hi all,
      We are trying to create a Adobe form using ISR library controls. We want to populate a dropdown list with all the values from  the table T001 dynamically. We have implemented the BAdi QISR1 & populated the ADDITIONAL_DATA. The BAdi is executing & populating the value correctly.
      In the we have created a control using the ISR Dropdown & mapped to the Context BUKRS from the interface created. When we execute the form, only the first value is getting filled.
      Can anyone help us in this ??? Its very urgent....
    Thanx,
    Sivagami.R

    Hi,
    I am just giving the solution what I have done in my project. Hope this will help:
         DATA: BEGIN OF it_ccode OCCURS 0,
                   bukrs TYPE t001-bukrs,
                   butxt TYPE t001-butxt,
                     END OF it_ccode.
    DATA: wa_ccode like line of it_ccode.
    Select Company Code (bukrs) and Text (butxt) from table T001.
    SELECT bukrs butxt
    from t001
    into table it_ccode.
    LOOP AT it_t001.
        ADD 1 TO lv_index.
        ls_additional_data-fieldindex = lv_index.
        ls_additional_data-fieldname  = 'FIELDNAME_KEY'.
        ls_additional_data-fieldvalue = it_t001-bukrs.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname  = 'FIELDNAME_LABEL'.
        CONCATENATE it_t001-bukrs '-' it_t001-butxt
        INTO ls_additional_data-fieldvalue.
        APPEND ls_additional_data TO additional_data.
      ENDLOOP.
    And the form my fields binding is:
    $record.FIELDNAME.DATA[*].FIELD
    Try this out. Hope this will help.
    Regards,
    Amit

  • Create a dynamic dropdown field in Adobe Acrobat Pro XI

    Hello all. I am trying to create a field in one of my forms using Adobe Acrobat Pro XI. I have a dropdown list of "main" items, and based on what is selected in that list, I want a second dropdown list to give different choices. I have searched and searched and have javascript that I thought might work, but maybe I am have a mistake or I am placing the javascript in the wrong place, becasue it is not working. I know very, very little about javascript, so any help would be so much appreciated.
    I am using Adobe Acrobat Pro XI. I added a "new field", and selected "dropdown". The field name is ProvType. The dropdown options are:
         Inpatient
         Outpatient
         Physician
    I have the "Commit selected value immediately" selected.The field is not validated. The format is "none." There are no actions or calculations associated with it.
    I then created another dropbox, and named it SubProvType. Under Actions, I selected the trigger as Mouse Up, and then selected the Action "Run a JavaScript." I selected the add button, and typed this in the JavaScript editor:
    switch (ProvType.rawValue)
        case "Inpatient":
            this.setItems("Hospice,Hospital,Nursing Facility");
            break;
        case "Outpatient":
            this.setItems("Adult Day Center,Home,Other");
            break;    
        case "Physician":
            this.setItems("Surgeon,Family Practice,Neurologist");
            break;    
    What I want to happen is:
    If "Inpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Hospice
         Hospital
         Nursing Facility
    If "Outpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Adult Day Center
         Home
         Other
    If "Physician" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Surgeon
         Family Practice
         Neurologist
    However.... when I close the form editing and try to select a different option in the ProvType field, the SubProvType field remains blank and there are no options available. There are also no errors.
    I must be missing something, but I have no idea where to start. Thank you in advance for any help anyone can provide.

    dbettis2.... Please understand that everything I am about to tell you is ONLY thanks to the help I received from Gilad D. I don't know if this will help you or not, but I want to try and pass it forward.
    If what you are looking to do is have two dropdown fields, and the second one (concentration) be a list determined by what was chosen in the first one (newMajor) then this will work, if you are using Adobe Acrobat Pro.
    Create a dropdown field and name it newMajor. In the "options" tab. Make sure that you enter all of the items that you want in that list AND that they match the javascript (or this will not work.)
    In this case, I believe you want the initial list to be:
    - Select One -
    BA - Communication (BACOMM)
    BA - History (BAHIST)
    BBA - Business Administration (BBA-BADM)
    After you create the dropdown field and enter all of the options, go to the Validate tab, chose "run custom validation script", then copy and paste the following:
    switch (event.value) {
        case "- Select One -":
            this.getField("Concentration").setItems(["-----"]);
            break;
        case "BA - Communication (BACOMM)":
            this.getField("Concentration").setItems(["- Select One -","None","Mass Communication (MCO1)","Theatre (THEA)","Communication Studies (MC02)"]);
            break;
        case "BA - History (BAHIST)":
            this.getField("Concentration").setItems(["- Select One -","None","Teacher Certification (HIS1)"]);
            break;
        case "BBA - Business Administration (BBA-BADM)":
            this.getField("Concentration").setItems(["- Select One -","None","Supply Chain Management (SCM)","Hospitality Management (HSMG)"]);
            break;
    Then create a second dropdown field, and name it Concentration. Nothing further needs to be done with the second dropdown field (as far as entering options or any javascript.)
    It should work. I have created a form using this code and field structure, and it is working. I hope this helps you, if in fact this is what you were trying to do. (I do not know how to attach a file to this post or I would send you the PDF that I made so you could see the fields. If you message me, I can send it to you.)

  • Dropdown list in interactive form

    Hello All,
    I want to get a drop down list in adobe interactive form. I did the following.
    1. created a simple dictionary data type and populated it with values
    2. created a context and bound it to the simple dictionary type.
    3. when I drag the element to the pdf page, it shows it as a drop down list.
    4. when I run the application also, the drop down list comes but the values are not populated. I am not able to use the dropdown also.
    What should I be doing now to get a dropdownlist that works?
    Regards,
    Chander

    Hello Chander,
    what you want to create is a drop down list populated by the Web Dynpro context values. When you use drag-and-drop it just creates a regular drop down list (where you need to specify the values in the Designer).
    However if you select in your tools palette the Web Dynpro tab you will find special drop down lists. So here is what you do:
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    Cheers
    Matthias

  • 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

Maybe you are looking for

  • Go to my documents doesn't work

    Hi! Sorry for my english, i'm not good in it, but i'll try to explain my problem i'm workin in Pages for iCloud. And when i try to go to my documents by pushing the "Go to my documents" button, it doesn't work. it opens in new window, but in doesn't

  • Not user friendly

    I have had my Blackberry Curve since last spring and still do not find it user friendly.  The online guide states how to make categories for the memo pad but stops there and does not explain how to save new memos within those categories.  I go back a

  • Jdev3.2,BC4J, ERROR STACK OVER FLOW

    HI I created a BC4J project based on 10 tables. when testing the module an error stack overflow is thrown when trying to open some views. these same views are accessed successfully when the BC4J project is created whith less tables or with only these

  • Automate PDF creation

    Hi All, I was wondering if there is a possibility to create a kind of droplet for InDesign CS3 (Windows), were you can drop an InDesign Interchange (.inx) that creates a PDF with a certain preset? After translation I want a possibility for translator

  • Second and further reader instances forces "smooth text" on ?

    Hello, Runing Adobe Reader v9.3 on Windows 7 64bit. I allways use "smooth text" off ("Edit->Preferences...->Page Display->Rendering->Smooth Text"  none) because content looks best to me - and this is the way I like it. I noticed following problem (bu