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

Similar Messages

  • Capture item by Dropdown list in Interactive Form

    Hi experts,
    I have a problem. I hope to get your suggestion ready. 
    I created a WebDynpro Abap that contains within it an Adobe Interactive Forms.
    With the method wddoinit by the component controller I set all values of the fields into interactive forms correctly.
    Inside the form there is a dropdown list which is bind to a table, the list of this dropdown list is filled with properly values of the table which is bind.
    When I select a value from the list dropdown I can not capture the selected item by the table corresponding of the data.
    Carryover below the code I use to recover (unsuccessfully) the values selected by list dropdown:
    DATA:
        node_adobe_data   TYPE REF TO if_wd_context_node,
        node_it0002       TYPE REF TO if_wd_context_node,
        node_stato_civile TYPE REF TO if_wd_context_node,
        elem_stato_civile TYPE REF TO if_wd_context_element,
        stru_stato_civile TYPE wd_this->element_stato_civile.
    navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      node_adobe_data = wd_context->get_child_node( name =  wd_this->wdctx_adobe_data ).
    navigate from <ADOBE_DATA> to <IT0002> via lead selection
      node_it0002 = node_adobe_data->get_child_node( name =  wd_this->wdctx_it0002 ).
    navigate from <IT0002> to <STATO_CIVILE> via lead selection
      node_stato_civile = node_it0002->get_child_node( name =  wd_this->wdctx_stato_civile ).
    get element via lead selection
      elem_stato_civile = node_stato_civile->get_lead_selection( ).
    get single attribute
      elem_stato_civile->get_static_attributes(
        IMPORTING
         static_attributes = stru_stato_civile ).
    The problem persist also if I use the method GET_LEAD_SELECTION_INDEX.
    The return value always is the first item and not what I selected.
    I wait trusting your suggestions to solve the problem.
    Regards.

    Hi Davide,
    Maybe you can try to keep your own Index parameter (Integer) to keep track of the selected index.
    Then use that parameter to select data from your node:
    node_stato_civile->get_static_attributes(
        exporting
          index             = wd_this->lv_index
        importing
          static_attributes = stru_stato_civile
    Hope this helps.
    Regards,
    Roelof Albers

  • Dropdown help on Interactive form in Web Dynpro ABAP.

    Hi all,
    we are creating an SAP Interactive forms for the Material Master Creation.
    We want the value help to be displayed in dropdown boxes for various mandatory fields to be filled up by the user.
    Please suggest how to do that??
    These helps are there when we create a material master through Transaction mm01.

    Hi Sasidhar,
    Could you please clarify.
    I had taken a value node in the Context of the view for the field for which i have to display the value help.
    I have also bound this value node to the dropdown list on the form by specifying it in the binding tab. Still i am not getting the help.
    Do we have to write some code for that in the method tab of the view??

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

  • DropDown in Online Interactive Forms Not working.

    HI:
    I am working on Online Interactive Form for Purchase Requisition.
    I have a dropdown in the dynamic table and I am trying to populate the same in DoInit().
    I am using the following code. But the drop down is displayed empty.
    DATA:
    lr_node_info type ref to if_wd_context_node_info,
    lt_value_set TYPE wdy_key_value_table,
    value_set_item TYPE wdy_key_value.
    types:  BEGIN OF TY_UOM,
            UOM TYPE T006-MSEHI,
            END OF TY_UOM.
    *Define Internal Table and work area.
    DATA: IT_UOM TYPE STANDARD TABLE OF ty_uom,
          WA_UOM type ty_uom.
    lr_node_info = pr_node2->get_node_info( ).
    data j type i.
    j = 1.
    SELECT MSEHI FROM T006 INTO wa_UOM.
    value_set_item-key = j.
    value_set_item-value = wa_uom-uom.
    insert value_set_item into table lt_value_set.
    insert wa_uom into table it_uom.
    j = j + 1.
    ENDSELECT.
    lr_node_info->set_attribute_value_set( NAME = 'UNIT'
    VALUE_SET = lt_value_set ).
    Can any one tell me what is wrong with the above code? and provide a sample code for the same.
    Actually I have a dropdown for UOM in the table and trying to populate it.
    The hierarchy is as follows
    BAPI_REQUISITION_CRE ->CHANGING -> REQUISITION_ITEM->DATA->Unit
    Thanks
    Vijai

    Hi Thomson,
    Create a context node A with cardinality 1..1 and in this create a context node A1 with cardinality 0..n and in this node create attributes TEXT and VALUE.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program
    *Declare the TYPES
    TYPES :  BEGIN OF TY_TABLE,
                   TEXT  TYPE SOMETYPE,
                   VALUE TYPE SOMETYPE,
                  END OF TY_UOM.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0,
               WA_TABLE TYPE TY_TABLE.
    SELECT TEXT VALUE FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And in the Adobe Form Layout
    Go to Menu of the Adobe LiveCycle Designer:
    Tools>Options..>DataBinding
    In that window u just check the Show Dynamic properties Check Box.
    Now for the Drop Down go the binding tab in object palette and click on the list items and there specify the text as the internal table text field and value as internal table value field and select the internal table.
    Regards
    Pradeep Goli

  • Passing values to the dropdown in Adobe Interactive form

    Hello Adobe Experts,
    Can you please provide some inputs for the below mentioned points.
    I have created a webdynpro application and placed an interactive form.
    1. I have 2 dropdown fields in the interactive form..say Country and State. How can i show the all countries available in SAP system in the Country dropdown.(like standard dropdown)
    2. How can i dynamically show the States of selected country in the dropdown of State.
    3. I need to validate the mandatory fields on the form on click of Submit button kept on the form. But, giving Value Type "User entered...required" is not working. how to validate in another way. Should we write validation script for all individual fields.
    4. How to place a web link on the interactive form. When user clicks on this link, we should navigate to that particular link.
    Thanks & Regards,
    Ram.

    Hi RAM,
         I'll try to answer your questions one by one. Any comments and feedback are welcome.
    1.- I assume that you have created a Model, a Service Controller and binded the data to your view.
    At this point, you need to bind the property datasource of your interactive form to a node in your context hierarchy.
    This data will be available at the form Data View Palette.
    Then you have to edit your form, drag a Drop Down List to the form and in the Fields Tab of the Object Palette you need
    to bind the List Items property. Just click the link and in the "Dynamic Properties" window, choose the table root node for Items, and the Text and Value atributes for Text and value properties respectively.
    After that, in the binding tab, you will have to do the "default binding", and bind the values clicking on "Specify Item Values".
    Edited by: Aldo Velazquez on Nov 29, 2010 4:32 PM

  • 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

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

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

  • 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

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

Maybe you are looking for