Drop down list in web-dynpro abap

Hi friend,
i want to drop down list in WEB-DYNPRO abap kindly give me one example .
regards
vikash

Suppose you have created a DropDownByIndex on your screen & bound its "Texts" attribute to a context attribute by name DROPDOWN then you can put the below coding into your WDDOINIT method to fill the values to be displayed:
METHOD wddoinit .
  DATA: lv_node TYPE REF TO if_wd_context_node,
        lt_texts TYPE if_main=>elements_dropdown,
        wa_texts TYPE if_main=>element_dropdown.
  lv_node = wd_context->get_child_node( name = 'DROPDOWN' ).
  wa_texts-application = ' '.
  APPEND wa_texts TO lt_texts.
  wa_texts-application = 'MS Word'.
  APPEND wa_texts TO lt_texts.
  wa_texts-application = 'MS Excel'.
  APPEND wa_texts TO lt_texts.
  wa_texts-application = 'Notepad'.
  APPEND wa_texts TO lt_texts.
  lv_node->bind_table( new_items = lt_texts ).
ENDMETHOD.
Suppose you are using a DropDownByKey & bound the "Selected Key" property to the context attribute by name TEMP then you can proceed as shown below to fill the dropdown with values:
data: lr_node_info type ref to if_wd_context_node_info,
        wa_value_set type wdr_context_attr_value,
        lt_value_set type table of wdr_context_attr_value.
  lr_node = wd_context->get_child_node( name = 'NODE' ).
  lr_node_info = lr_node->get_node_info( ).
  wa_value_set-value = '1'.
  wa_value_set-text  = 'One'.
  insert wa_value_set into table lt_value_set.
  wa_value_set-value = '2'.
  wa_value_set-text  = 'Two'.
  insert wa_value_set into table lt_value_set.
  wa_value_set-value = '3'.
  wa_value_set-text  = 'Three'.
  insert wa_value_set into table lt_value_set.
  lr_node_info->set_attribute_value_set( name      = 'TEMP'
                                         value_set = lt_value_set ).
Regards,
Uday
Go through the Web Dynpro component DEMO_UIEL_STD_SELECTION for a working example of DropDownByKey & DropDownByIndex

Similar Messages

  • How to clear/delete drop down list of web pages visited?

    When I type "www." in the address block, a drop down menu with a long alphabetized list of previously visited websites appears, going back for months. This list is not erased by Clear History or by quitting Safari. Is there any way to clear or delete this list for the sake of privacy? Thanks
    iMac G5   Mac OS X (10.3.8)   Safari 1.3.1 (v312.3.3)

    I use OnyX and have it open at the moment so I can inspect the various panes while I make this reply. It will let you empty browser caches, including the ones for downloads, searches, form values, cookies, bookmark icons as well as the regular cache that holds urls.
    In the Safari section, you can adjust the number of history items and the number of history items in the History menu. Unlike Safari Enhancer, there is no toggle to disable the cache. Most importantly for this topic, there is no toggle for Safari's url autocomplete.
    Just clearing caches and history will not get rid of url autocomplete because autocomplete also uses your bookmarks, plus, the cache and history will refill as you use Safari.

  • F4 drop down button in Web Dynpro application

    Hi All,
    I just started learning Web Dypro application, and I created one for displaying the invoice details when the user enters the document number and Fiscal Year using BAPI "BAPI_INCOMINGINVOICE_GETDETAIL" and it's running fine. But at the selection screen where user enters the invoice number i need to add F4 functionality, so while entering the invoice number user can just clicl on that button and it should behave like a F4 help.
    Can you please help me in this.
    Thanks,
    Rajat

    Hi Rajatg,
       You can check following links --
       [http://help.sap.com/saphelp_nwce711/helpdata/en/47/f8738ffdb84aa8e10000000a421937/frameset.htm]
       [http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8c99b5e3c5ce10000000a421937/content.htm]
    Thanks.
    Kumar Saurav.

  • 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 population - Abap dynpro adobe form - type ZCI

    Hi ,
    How to create drop down list on a field. I am using ZCI type of form. (Abap dynpro adobe form - type ZCI)
    Most of the post i have seen only refers to the setting in forms but not about the settings in interface in se80 or SFP. please give me the detail steps to create drop down field and how to populate it.
    In other words is how to populate the drop down fields, where does the values come from to these fields.
    Thanks,
    Nikhil
    Edited by: NIKHILKUMAR POOJARI on Apr 3, 2009 7:28 PM

    HI Pradeep,
    Can you please tel me what i am doing worng here :
    types : begin of ty_nameid,
                  ZCARRIAGERESTRIC type ZCARRIAGERESTRICT,
                  DESCRIPTION type ZDESCRIPTION,
                END OF ty_nameid,
                tyt_nameid TYPE TABLE OF ty_nameid.
        data  : it_nameid type tyt_nameid,
                wa_nameid TYPE ty_nameid.
        DATA lo_nd_name TYPE REF TO if_wd_context_node.
        DATA lo_nd_nameid TYPE REF TO if_wd_context_node.
        DATA lo_el_nameid TYPE REF TO if_wd_context_element.
        DATA ls_nameid TYPE wd_this->element_nameid.
      navigate from <CONTEXT> to <NAME> via lead selection
        lo_nd_name = wd_context->get_child_node( name = wd_this->wdctx_name ).
      navigate from <NAME> to <NAMEID> via lead selection
        lo_nd_nameid = lo_nd_name->get_child_node( name = wd_this->wdctx_nameid ).
      @TODO handle not set lead selection
        IF lo_nd_nameid IS INITIAL.
        ENDIF.
      get element via lead selection
        lo_el_nameid = lo_nd_nameid->create_element(  ).
      @TODO handle not set lead selection
        IF lo_el_nameid IS INITIAL.
        ENDIF.
      alternative access  via index
      lo_el_nameid = lo_nd_nameid->get_element( index = 1 ).
      @TODO handle non existant child
      IF lo_el_nameid IS INITIAL.
      ENDIF.
    select * from ZCARRIAGERESTRIC INTO CORRESPONDING FIELDS OF TABLE it_nameid.
      get all declared attributes
       lo_el_nameid->set_attribute(
         EXPORTING
           Value = it_nameid
           name  = 'NAMEID' ).
    lo_nd_nameid->bind_table( it_nameid ).
    but its giving dump WebDynpro Exception: The ADS call has failed.
    i have created the Node as under
    CONTEXT
    NAME (NODE)
    NAMEID (NODE)
    ZCARR (ATTRIBUTE)
    DESCR  (ATTRIBUTE)
    DESC (ATTRIBUTE)
    I tried the second method, but that too failed. while entering the INSERT WEB DYNPRO SCRIPT it gave an error 'Error while entering script'.
    Edited by: NIKHILKUMAR POOJARI on Apr 6, 2009 11:04 AM

  • Event handling to the drop down list in the WEB DYNPRO ALV.

    Hi Experts,
    I posted same thing in the UI programing in the morning
    For better Visiblity(as i didnt get any replies) of my issue i am posting the same thing in the ABAP General as well.
    In my dynpro ALV i have 5 fields. in that 2ed field has the drop down list.
    if i select any of from the list, based on the particular selected value, some value should be reflect in the 3rd field of the ALV.
    Ex:
    dropdown list of  2ed fields inclued like below
    AUXILIARY CONTROLLER
    AXLE ASSEMBLY, NON-OSCILLATING
    ACTUATOR, LINEAR
    AIR CONDITIONER
    BLADE, EARTHMOVING
    if i select ACTUATOR, LINEAR the value ( ACT - first three letters ) should automaticaly reflects in the 3rd field of the ALV like below
    Filed 2                Field 3
    ACTUATOR, LINEAR       ACT
    I thnk we have to do the some Event handling for that dropdown.
    I checkd in the SCN but i didnt find any solution to my issue.
    Any solutions/sample code is appriciated.
    Regards!

    Make sure that the Location Bar is not set to "Nothing": Tools > Options > Privacy > Location Bar: When using the location bar, suggest: History, Bookmarks, History and Bookmarks
    See [[Smart Location Bar]]

  • Drop Downs in adobe forms using Web dynpro ABAP

    Hi all,
    Im new to this adobe forms using webdynpro abap.
    In my requirement i have two drop downs on the form.
    by selecting value in one drop down i have to fill corresponding values in the other drop down.
    Using only WDA i know how to do this but with adobe i dnt know how and where i have
    to catch the drop down value and write my code. please let me know how i can achieve this.
    one more thing whatever action or events we are performing on the form where we have to place our code for this?
    Thanks,
    santosh

    hope this helps -
    [Thread: Populating one Drop-Down list from the selection of another Drop-down list |Populating one Drop-Down list from the selection of another Drop-down list;

  • Webdynpro for ABAP - interactive Adobe form - drop down lists not working

    Hi all,
    I'm trying to create an interactive form for a client using webdynpro for ABAP and I've viewed the demo "Create SAP Interactive Forms by Adobe with Web Dynpro for ABAP" by Thomas Jung, but when I implement it the form following similar steps the form is not interactive.
    In the properties of the "InterativeForm", I've tried clicking the "enabled" flag both on and off.  I've also tried setting the "displayType" property to both "ActiveX" and "Native".  But none of this worked.
    I though my problem might be with Adobe reader so I switched from 8.0 back to 7.0 but this didn't make any difference either.
    The system we are using is NW04s WAS 700.  Any hints would be greatly appreciated!
    Thanks,
    -tom

    Thanks for the suggestion Dezso.  I've downloaded a newer version of ACF as indicated by the OSS note and installed it.  I'm still having the same issue.
    My basic question is what options should I be using in the form and on the InteractiveForm component?  It looks like because of the evolution of the product there are multiple options available.  I recall reading somewhere that as of a certain SP level we should have ZCI (zero client install) available.  The would be our preference.  It will be a support nightmare if each user needed a manual download of ACF.exe installed.
    Should I click the "enabled" flag on the InteractiveForm object?  When I create the form should I use the "Native" drop down list or the one from the "Active X" tab?  I would like to use the "List Box" control on the form as well but it is only available in the "Standard" tab.  So does that mean I can't get the selections from a "List Box"?
    Thanks,-tom

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

  • Drop down list button in the WDP Abap interactive form

    Hi Gurus,
    I wanted to implement the drop down list button in the WDP Abap interactive form. Once the users clicks on the drop down button, an RFC should be called and display the details under the drop down button. Please give me the logic with code. Its very urgent...please help me. Please note that it is in WDP Abap interactive forms. We are using NW2004S, ECC6.0.

    hi david,
    all the UI elements in the adobe form are generally connected to your web-dynpro Context.
    whatever you type in the online adobe form is reflected in the respective context attributes of the dynpro Context of the view where "ur Interactive form UI element is".
    that means you can yourself fill the contents of ur interactive form by working on the get/set methods of the context attributes.
    Likewise you can clear the form by setting all context attributes to blank eg ""
    with regards,
    -Amol Gupta

  • Refreshing drop down list in a web template based on a query view

    Refreshing drop down list in a web template based on a query view  
    I have just developed my first set of portal pages displaying the results of Bex queries and query views in the SAP Netweaver portal. I developed the pages using web application designer. Each web template created with W.A.D is using a query or query view. In one template I have that is using a query view I am using a variable in my Bex query. This variable is of type customer exit, is set to variable is ready for input and calls some ABAP code which returns the current fiscal week number and year. When I run the query or query view in isolation through Bex analyzer the variables gets populated correctly. In my web template I have associated my variable from my query view to a drop down list box. However when I run the Iview created from this template the query results get refreshed but my drop down list box does not, it still shows last weeks week number. How do I get the drop down list box to refresh with the latest result from my customer exit variable?
    Regards
    Collin

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Event handling to the drop down list in the web dypro ALV.

    Hi Experts,
    In my dynpro ALV i have 5 fields. in that 2ed field has the drop down list.
    if i select any of from the list, based on the particular selected value, some value should be reflect in the 3rd field of the ALV.
    Ex:
    dropdown list of  2ed fields inclued like below
    AUXILIARY CONTROLLER
    AXLE ASSEMBLY, NON-OSCILLATING
    ACTUATOR, LINEAR
    AIR CONDITIONER
    BLADE, EARTHMOVING
    if i select ACTUATOR, LINEAR the value ( ACT - first three letters ) should automaticaly reflects in the 3rd field of the ALV like below
    Filed 2                Field 3
    ACTUATOR, LINEAR       ACT
    I thnk we have to do the some Event handling for that dropdown.
    I checkd in the SCN but i didnt find any solution to my issue.
    Any solutions/sample code is appriciated.
    For better visiblity( as i didn't get any replies ) I posted same thing in the ABAP Programing
    Regards!
    Edited by: Prasanth M on Feb 20, 2009 2:54 PM

    Make sure that the Location Bar is not set to "Nothing": Tools > Options > Privacy > Location Bar: When using the location bar, suggest: History, Bookmarks, History and Bookmarks
    See [[Smart Location Bar]]

  • Dropdown List Web dynpro Abap

    Hi All
    I am new to adobe forms.  I am having a problem with populating drop down list box on an adobe interactive form.  I have gone through this forum and I have tried a number of different things but nothing seems to work.
    When I run my web dynpro application the drop down looks like an input box.  There is no down arrow icon on the side.
    I check note 981638.  It states it can't be implemented.
    I am on CRM 2007 NW7 platform.
    I created an interface with an importing value called it_dropdown.  this is a table.
    I created a form that uses this interface.
    i placed a drop down list on the form layout.  In the dynamic options i click list items.  I get a popup.
    In the bindings I bind to the table... $record.IT_DROPDOWN.DATA[*]
    The text and value are bound to corresponding fields on the internal table.
    I created a webdynpro
    I created a view.
    I poped an interactive form ui elemnt on the view.
    I generated the context.
    I checked the cardinality of the node for the internal table and it is 0..n
    In my doinit method I have the following code.
      data: lr_form_node type REF TO if_wd_context_node.
      data: lr_dd  type REF TO if_wd_context_node.
      data: lt_dropdown  type WDR_CONTEXT_ATTR_VALUE_LIST,
               wa like line of lt_dropdown.
      do 20 times.
        wa-value = sy-index.
        concatenate 'Test' wa-value into wa-text SEPARATED BY space.
        insert wa into table lt_dropdown.
      enddo.
    lr_form_node = wd_context->get_child_node( wd_this->wdctx_zfp_example_01 ).
    lr_dd = lr_form_node->get_child_node( wd_this->wdctx_it_dropdown ).
      lr_imp->bind_table( lt_dropdown ).
    The adobe form displays but the drop down is not populated.
    I have tried a normal drop down and webdynpro enumerated drop downs.
    Can someone please point out what I am doing wrong.
    Thanks
    Darren

    Hi Sachin
    Here is exactly what I did.
    1. Create a web dynpro application.
    2. Crate a view
    3. On the context create a node called data_source or whatever you want.  The cardinality is 1.1.
    4. Create an attriubute on the data_source note.  I called mine 'DDOWN' and created it as a string.
    5. Pop an interactive form element on your view.
    6. In the Template Source, give the name of your adobe form.  This part was the vital bit for me as I was using a database interface originally and I think that this was my problem.  If you already have a form created that does not use xml, I would advise you to create a new temporary adobe form by putting the name in the template source and double clicking it.
    7. You will get a popup stating asking you to create an interface.  You will see a button called "context" click this and follow the steps.
    8. When you get to your form you will see the drop down context node in the data hierarchy.  Drop a drop down list on your form and then drag and drop your context node onto it.  Make sure your forms layout is ZCI. Save the form.
    9 Return to your web dynpro app.  You will see that the datasource has been updated. 
    10.  I used the following code in the doinit method of the web dynpro.
      data: lr_context_node type ref to if_wd_context_node.
      data: lt_dd type wdr_context_attr_value_list.
      DATA: node_info TYPE REF TO if_wd_context_node_info.
      data: wa like line of lt_dd.
      do 20 times.
        wa-value = sy-index.
        concatenate 'Test' wa-value into wa-text SEPARATED BY space.
        insert wa into table lt_dd.
      enddo.
      lr_context_node = wd_context->get_child_node( name = 'ZDARREN1' ). "Template Source
      node_info = lr_context_node->get_node_info( ).
      node_info->set_attribute_value_set(
         name      = 'DDOWN'                                      "DDOWN is a node on the context
         value_set = lt_dd ).
    Activate and test.
    You should see a dropdown.
    I hope this helps as this is the approach that worked for me.

  • Display look up column as drop down list in a web part in SharePoint 2013

    Hi,
    I have a look up column in SharePoint 2013 calendar list.I want to show that field with values in the page as drop down list to filter the data based in selected value.
    Is it possible through OOB or javascript.
    Please help .
    Thank you.

    Hi  ,
    According to your description, my understanding is that you want to  filter a calendar based a look up column in SharePoint 2013.
    Calendar View not support OOTB filters connection. it is disabled for calendar view, you need to change view(not calendar view) so OOTB filters works and get connected to your view.
    You can achieve this using combination of jQuery and SharePoint OOB techniques.
    For jQuery filters refer to the  blog: enter SharePoint List Filters using jQuery
    Also you can filter Calendar View Web Part using JQuery and SPServices:
    http://blogs.visigo.com/chriscoulson/filter-a-sharepoint-calendar-list-with-a-date-picker/
    http://joshmccarty.com/2011/11/sharepoint-jquery-and-fullcalendar%E2%80%94now-with-spservices/
    http://spservices.codeplex.com/discussions/258846
    Another  way, you can have a look at the SPFilterCalendar :
    http://www.aasoftech.com/SitePages/How%20to%20Filter%20SharePoint%20Calendar%20Dynamically.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How do I select a item from a drop down list on a web in Safari On An. IPad 2.  The list apears and disapears só QuickClips I cannot TAP anything On The list Quickly enough.

    I tried to select an item from a drop down list on a web page in safari and discovered that the list disapeared to quickly for me to make a selection.  Has anyone else found this and solved the problem.  Many thanks.

    Demo wrote:
    I tried it on my iPad and I see what you mean. From what I can see when I go to the site on my Mac, it is Flash based and that will not work anyway.
    Actually, it is Javascript and uses the 'onmouseover' event.

Maybe you are looking for

  • How easy would it be to do something like this in FB4

    I was looking at a cool aniumation http://www.hbosdeal.com/Demos/bos-treasury-options-demo.swf Would it be easier to do the animations in flash and use Flex4 (importing the flash stuff using the flash component in flex 4) for the interface stuff like

  • I have a ipad

    I have a ipad & iphone and a PC. I want to get a apple computer. I'm running Microsoft office, Quicken, Autocad 14 on my pc, and have hundreds of drawing, spreadsheets,and doc. On PC. Is there a apple computer that I can run these programs on? Someon

  • Adding a same component in each tab of super tab navigator creates problem

    When a UI component is created once and added to each tab using super tab navigator in AS 3.0, the component is adding only to the last index of the tab. The component is missing in the previous tab. I have given the code below. Please help me why th

  • Copying of Update Rules

    Hi, I need to copy the update rules. Let me explain the requirement: The standard business content in SD provides the update rules from InfoSource 2LIS_12_VCHDR to InfoCube 0SD_C03. We have created an ODS (ZSD_O01) on the InfoSource 2LIS_12_VCHDR, wi

  • I installed an airport card in my powermac g4, how do I connect to my router (not an airport base.) How can I connect to my router?

    I have a powermac g4 quicksilver in which I have installed a normal airport wireless card in the dedicated slot. How can I connect to my router? It is not an apple airbase station but does it need to be? How can I connect to my router?