Editable Drop down in ALV

Hi,
I am working on the ALV report using objects (custom container
and cl_gui_alv_grid).
I have a drop down editable field in the alv. How can i capture the
selected values in the dropdowns for all rows when a button is clicked on appln tool bar.
Thanks,
Prasad

Hi,
Refer demo programs:-
BCALV_EDIT_06 --                 Dropdown Listbox at Column Level
BCALV_EDIT_07 --                 Dropdown Listbox at Cell Level
Also you can refer:-
Alv Drop down filling
Hope this helps you.
Regards,
Tarun

Similar Messages

  • How do I get Watermark to show in the Edit drop down in LR 3.4?

    There is no Watermark function under the Edit drop down box in my Lightroom v 3.4  How do I get it to appear so I can use it?

    Yes my  system is Mac based, and I did locate a Watermark check box in the Print where I was able to install a watermark.  However when I open the  Edit drop box at the top, does not show a Watermark Edit selection.

  • Editable drop down do not show national characters

    Hi
    I'm using DW CS3 with Developer toolbox, PHP MySql.
    Problem is that Editable drop down show national characters wrongly.
    actually its inserts data in to database with wrong encoding.
    I use encoding "charset=utf-8", all other forms working fine.
    Only Editable drop down show [squares] instead Ä Ö Ü ...
    How i can do that Editable drop down will inserts data in utf-8 encoding?
    (like other forms and fields in my page)
    Thanks!

    Does it help if you disable hardware acceleration ?
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/

  • Editing Drop Down Menus in Contribute

    I have a client who is using contribute and wants to edit
    drop down menus. These drop down menus link to individual pdfs and
    she changes the names of the pdfs on a regular basis and wants to
    update these links in the drop down menus. The site was created in
    Dreamweaver. In role preferences of Contribute I turned on the
    allow unrestricted editiing which allows form elements to be
    edited. However I cannot figure out how to change the drop down
    menus. Is there any way to edit the drop down menus fields in
    Contribute?

    Create a SSI (with PHP f.i.), best in de root of the site,
    considering the way Contribute is handling linking.
    Call the file something like menu.inc.php.
    Provide your client with the url to menu.inc.php in the
    Bookmarks or explain the Choose-button in Contribute to open the
    file menu.inc.php.
    Keep the file simple (ul/li or p) .

  • How to modify the size of the editable drop down

    I have used the editable drop down list which works perfectly. The only problem i find is that it has a static width, unlike a regular select/option list that adjust according to the lengh of the data that is in it. Is there any way i can adjust the width of the editable drop down list. Thank you.

    try removing the width completely...leave that field blank

  • How does one come to know this..drop down in ALV in WD

    Hello Friends,
                          I had a requirement of adding a drop down in ALV, i eventually got it but I have some questions about it
    I used the following code and got the drop down
    lr_column = lr_column_settings->get_column( 'BWART' ).
      CREATE OBJECT lr_input_field
        EXPORTING
          value_fieldname = 'BWART'.
      lr_column->set_cell_editor( lr_input_field ).
    DATA : LR_DROPDOWN TYPE REF TO CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
    CREATE OBJECT LR_DROPDOWN EXPORTING SELECTED_KEY_FIELDNAME = 'BWART'.
    LR_COLUMN->SET_CELL_EDITOR( LR_DROPDOWN ).
    DATA: LT_VALUESET TYPE TABLE OF WDR_CONTEXT_ATTR_VALUE,
    LS_VALUESET TYPE WDR_CONTEXT_ATTR_VALUE,
    LR_NODE TYPE REF TO IF_WD_CONTEXT_NODE,
    LR_NODEINFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
    LR_NODE = WD_CONTEXT->GET_CHILD_NODE( 'RETURN_NODE' ).
    LR_NODEINFO = LR_NODE->GET_NODE_INFO( ).
    LS_VALUESET-VALUE = '973'.
    LS_VALUESET-TEXT = '973'.
    APPEND LS_VALUESET TO LT_VALUESET.
    LS_VALUESET-VALUE = '222'.
    LS_VALUESET-TEXT = '222'.
    APPEND LS_VALUESET TO LT_VALUESET.
    LR_NODEINFO->SET_ATTRIBUTE_VALUE_SET( EXPORTING NAME = 'BWART' VALUE_SET = LT_VALUESET ).
    My question is ... how does 1 know which class to use? how to use that class... most of concepts about OOPS are clear.. but i still cant figure out how does 1 find out which class to use.. is it all by expericence..

    In short: Yes, by experience. Then again, for WD4A there is a class for each UI-Element available. Once you know this, you can easily search se24 for CLWD<UI-NAME>* or the like.

  • Put a editable drop down box on Adobe forms

    Hi All,
        I have created an Adobe form in that  I have to create an editable  drop down box for each line item in the table data.
    If anybody knows pls send those to me ASAP, it's an urgent requirement.
    Waiting for reply.
    Thanks.

    Hi
    Go through the link given below:
    Re: How to handle Drop Down Box on Interactive Adobe Form
    Do the following in your form Designer:
    1. Open the form.
    2. Select the Drop down list.
    3. Select Object Palette>Field.
    4. Their will be option list item.
    5. Click on the icon.
    6. Give the text below in the text area.
    7. Add as many items as you want.
    With Regards
    Nikunj Shah

  • Developer toolbox, Editable drop down encoding problem

    Hi
    I'm using DW CS3 with Developer toolbox, PHP MySql.
    Problem is that Editable drop down show national characters
    wrongly.
    actually its inserts data in to database with wrong encoding.
    I use encoding "charset=utf-8", all other forms working fine.
    Only Editable drop down show [squares] instead Ä Ö
    Ü ...
    How i can do that Editable drop down will inserts data in
    utf-8 encoding?
    (like other forms and fields in my page)
    Thanks!

    I already read that one (and a few others) but it never
    solved my
    problem, but perhaps it will help Markokiz
    Dooza skrev:
    > Maybe this will help:
    >
    http://dev.mysql.com/doc/refman/5.0/en/charset-server.html
    >
    > Steve
    >
    > kim wrote:
    >> Hi,
    >>
    >> I had a similar problem recently (not with tool box
    though) and I gave
    >> up using UTF-8 and went with charset=iso-8859-1
    instead. It seemed (in
    >> my case) that whenever data was being submitted from
    a page to the DB
    >> and then pulled back out I got the problem. I guess
    it's some setting
    >> in the MySQL but I just couldn't figure out where.
    This is only the
    >> case when I'm working with Danish characters. Maybe
    it could help you
    >> with your problem... maybe not.
    >>
    >> Markokiz skrev:
    >>> Hi
    >>> I'm using DW CS3 with Developer toolbox, PHP
    MySql.
    >>> Problem is that Editable drop down show national
    characters wrongly.
    >>> actually its inserts data in to database with
    wrong encoding.
    >>> I use encoding "charset=utf-8", all other forms
    working fine. Only
    >>> Editable drop down show [squares] instead ? ? ?
    >>> How i can do that Editable drop down will
    inserts data in utf-8
    >>> encoding? (like other forms and fields in my
    page)
    >>> Thanks!
    >>>
    >>>
    >>
    >
    Kim
    http://www.geekministry.com

  • Editable drop-down problem.

    Hello all,
    Here's the issue. I have an editable dropdown list/menu in a table. The table is hidden upon page load. When the user clicks the link to open the table, the editable drop down is only 1 or 2 pixels wide. How do I get the editable drop down to open at the prescribed 300px?
    Here's the code:
    <select name="CGSector1" id="CGSector1" wdg:subtype="DynamicInput" wdg:type="widget" wdg:recordset="rsCGSectors" wdg:displayfield="CGSectors" wdg:valuefield="CGSectors" wdg:norec="150" wdg:singleclickselect="yes" wdg:defaultoptiontext="no" wdg:restrict="No" wdg:ext="php" style="width:300px" wdg:fakeattribute="<?php WDG_registerRecordInsert("connStr_xxxxxx", "rsCGSectors", "CGSectors", "CGSectors");?>"></select>
    Thank you.
    Brian

    As this issue is not directly related to ADDT, but assumingly rather to e.g. aspects like the defined (if any) width of the initially hidden table, please give a link to the complete page code (or a live page) to help others with spotting the possible reason for this.
    However it should be mentioned that ADDT´s "editable dropdown" is generated on-the-fly using some proprietary AJAX functionality as well (including the style rendering), so maybe the style setting you defined here just gets ignored when the surrounding "container" (aka the table) gets hidden by - for instance - using features from another AJAX library like JQuery which is certainly incompatible with than ADDT´s own AJAX implementation.
    Cheers,
    Günter

  • Editable Drop-Down List

    Hello!
    I am using Dreamweaver's Editable Drop-Down List
    Application panel, Server Behaviors > + > Developer Toolbox > Form Controls > Editable Drop-down
    Which has been a GREAT option, but I need to add on 1 option, when I am about to ADD an item to the list, all you can do is add 1 item to 1 column in a database.
    Database Struture:
    listid   userid   listItem    listitemValue
    But all I can get it to update is listItem I need to be able to when the button, "ADD THIS" is pushed, that I can add a value to USERID also, is this possible? I tried diving deap into it, but some certains things I just didn't understand that far down.
    Any help would be greatly appreciated!
    Cheers, and thank you in advance.
    Justin

    Ok I completely misunderstood. Sorry for the confusion. I'm afraid I may not be much help on this particular function. Some functions I've really torn apart and modified, this is not one of them.
    This does not look like one of the more simple functions to change unlike some others,
    Before trying to go into lengthy info on how to break it down, is there any chance the info you are trying to update is some type of default name or incremental name, something than can be hard coded? ..or is it unique like a visitor, so you are pulling down each time? Ex:  User1, user2    vs.   sally101, david2009, etc.
    IF not, there are a several lines of variable setting and function modification to change at first glance.
    I can look into later, but the variables are not even in the same insert function page.
    Here is the Key line in WDG_recordsetInsert.php,
    $sql = 'INSERT INTO ' . $vars['table'] . ' (' . KT_escapeFieldName($vars['updatefield']) . ') VALUES (' . KT_escapeForSql($text, 'STRING_TYPE') . ')';
    but the vars appear to come out of an array in  'WDG_functions.inc.php : here is the function variables being set for the insert function above
    $WDG_sessInsTest = &$_SESSION['WDG_sessInsTest'];
         $WDG_sessInsTest[] = array(
              'conn' => $connectionName,
              'rsName' => $rsName,
              'table' => $sqlTable,
              'idfield' => $idField,
              'updatefield' => $updateField     );
    This array (at first glance) could be modified, but I can't promise that the vars will carry through because I don't see exactly where this array is being used again.
    As I mentioned, if the values you need are something you could hard code and increment, you could easily modify the 'insert to' function above.
    I would also toy around with some $_POST data and Session data vars and see if you can drop those straight into the sql statement above.
    Sorry I can't be more help on this one.

  • Editable drop-down control???

    hi,
    How can i get editable drop-down control in my JSP page.
    is it possible thr' java script or swings or something else???
    plz help.
    sam

    This should do the trick. Just pass the value and the text as parameters to the function.
    <html>
    <body>
    <form name="dropDownForm">
    Value: <input type="text" name="optionText">
    Text: <input type="text" name="optionValue">
    <input type="button" value="Add option" onclick="addOption(document.dropDownForm.optionValue.value, document.dropDownForm.optionText.value)">
    <br><br>
    <select name="dropList"></select>
    <script>
    function addOption(value, text)
    var position=document.dropDownForm.dropList.length;
    document.dropDownForm.dropList.options[position]=new Option(value,text);
    </script>
    </form>
    </body>
    </html>

  • Editable drop downs and safari

    Editable drop downs don't seem to show the "Add This" button in Safari on the Mac. It works in Firefox on the Mac and all Windows browsers. Does anyone have a fix for this?
    Thanks

    LMatts,
    This may be a CSS issue. You may have to edit the ADDT CSS. For testing purposes, try removing the CSS formatting from the HTML and see what displays. Remove the class="KT_tngtable" and class="KT_th from the table code that ADDT forms create and see what it looks like.
    Shane

  • Editable drop downs in sharepoint?

    Is there any way to create "editable" drop downs for a list in sharepoint? Meaning that if the value is not listed, the user can add it right away.
    Thanks,
    Carlos Roberto Vargas

    You mean a SharePoint list forms right?  In the settings for the choice column in the list settings there is an option that lets you specify whether your users can add their own choices.  Enabling this will allow users to add their own
    terms.
    Or you can set the choice column as a look-up list and let them add additional options to the look-up column.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Issue in value set Drop down for ALV in Webdynpro with Index

    Hi Experts,
    We are unable to get the Drop down values in the ALV Table as shown below.
    Code:
       DATA lo_nd_table TYPE REF TO if_wd_context_node.
        DATA lt_table TYPE wd_this->elements_table.
       DATA ls_table TYPE wd_this->element_table.
       DATA: lr_input TYPE REF TO cl_salv_wd_uie_input_field,
             lr_column TYPE REF TO cl_salv_wd_column,
             lt_node_info TYPE wdr_context_attr_info_map,
             ls_node_info TYPE wdr_context_attribute_info,
             lr_dropdown TYPE REF TO cl_salv_wd_uie_dropdown_by_idx,
             lr_info TYPE REF TO if_wd_context_node_info.
       DATA:lt_columns TYPE salv_wd_t_column_ref,
             ls_columns TYPE salv_wd_s_column_ref,
             lv_tabix TYPE sy-tabix,
             lv_count TYPE c.
       DATA: ls_valueset TYPE wdr_context_attr_value,
             lt_valueset TYPE wdr_context_attr_value_list.
       TYPES:BEGIN OF ty_name,
       name TYPE string,
       END OF ty_name.
       DATA: lt_name TYPE TABLE OF ty_name,
       ls_name TYPE ty_name.
    *   navigate from <CONTEXT> to <TABLE> via lead selection
       lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_table ).
       SELECT * FROM zemp_table INTO CORRESPONDING FIELDS OF TABLE lt_table UP TO 10 ROWS.
       LOOP AT lt_table INTO ls_table.
         lv_tabix = sy-tabix.
         CLEAR: ls_table-leave_values.
         DO 1 TIMES.
           lv_count = lv_count + 1.
           CONCATENATE 'Open' lv_count INTO ls_valueset-value.
           CONCATENATE 'Open' lv_count INTO ls_valueset-text.
           APPEND ls_valueset TO ls_table-leave_values.
           CLEAR ls_valueset.
           CONCATENATE 'Approved' lv_count INTO ls_valueset-value.
           CONCATENATE 'Approved' lv_count INTO ls_valueset-text.
           APPEND ls_valueset TO ls_table-leave_values.
           CLEAR ls_valueset.
           CONCATENATE 'Rejected' lv_count INTO ls_valueset-value.
           CONCATENATE 'Rejected' lv_count INTO ls_valueset-text.
           APPEND ls_valueset TO ls_table-leave_values.
           CLEAR ls_valueset.
         ENDDO.
         MODIFY lt_table FROM ls_table INDEX lv_tabix TRANSPORTING leave_status leave_values.
       ENDLOOP.
       DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
       lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
       IF lo_cmp_usage->has_active_component( ) IS INITIAL.
         lo_cmp_usage->create_component( ).
       ENDIF.
       DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
       lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
       DATA lo_value TYPE REF TO cl_salv_wd_config_table.
       lo_value = lo_interfacecontroller->get_model(
    *  lo_interfacecontroller->set_data( r_node_data = lo_nd_value_set ).
    **Get the context node information
       lr_info = lo_nd_table->get_node_info( ).
       lt_node_info = lr_info->get_attributes( ).
       LOOP AT lt_node_info INTO ls_node_info.
         ls_name-name = ls_node_info-name.
         APPEND ls_name TO lt_name.
       ENDLOOP.
    *Get all the columns to make row editable
       CALL METHOD lo_value->if_salv_wd_column_settings~get_columns
         RECEIVING
           value = lt_columns.
    * Make the field dropdown
       CALL METHOD lo_value->if_salv_wd_column_settings~get_column
         EXPORTING
           id    = 'LEAVE_STATUS'
         RECEIVING
           value = lr_column.
    * Create Object for dropdown
       CREATE OBJECT lr_dropdown
         EXPORTING
           selected_key_fieldname = 'LEAVE_STATUS'.
       CALL METHOD lr_dropdown->set_valueset_fieldname
         EXPORTING
           value = 'LEAVE_VALUES'.
       CALL METHOD lr_dropdown->set_type
         EXPORTING
           value = if_salv_wd_c_uie_drdn_by_index=>type_key_convert_to_value.
       CALL METHOD lr_column->set_cell_editor
         EXPORTING
           value = lr_dropdown.
    *Set the table Editable
       lo_value->if_salv_wd_table_settings~set_read_only( value = abap_false ).
       lo_nd_table->bind_table( new_items = lt_table ).
    Please suggest me where we are going wrong.
    Thanks in advance...!!!
    Best Regard's,
    Shashi Kanth

    Hi Shashi,
    Your code looks okay.  Debug & check if everything goes fine and all the required list of values getting bound to node.
    Is any code after this logic, which sets data to table ? if so, that logic is wiping out the drop down list values from context node.
    Final check point:
    Read the context node 'TABLE' and fetch records into internal table in WDDOMODIFYVIEW( ) method to make sure that, every row of your table contains the drop down list entries in "LEAVE_VALUES" attribute
    Hope this helps you.
    Regards,
    Rama

  • Drop Down in ALV  ABAP and NOT in OO - ABAP

    Hello Everyone....
    I m workin on an ALV which is in simple ABAP and not in OO-ABAP. There is some selection criteria on the first screen , as soon as the user fulfills the requirement an ALV GRID is displayed in which the last column is editable.
      But the Problem is that i wanna make that editable field in ALV as drop down which would contain values from the database table.
      Suggest me some method , so that i dont have to do much changes in my code .
      A Sample code will be very benificial .
    Thanx n Regards,
    Harpreet.

    Hi Harpreet,
    [compiled from sap online help - always a good chice]
    To make an input/output field into a list box, you must set the value L or LISTBOX in the Dropdown attribute in the Screen Painter. The visLg attribute determines the output width of the list box and the field. You can assign a function code to a list box field. In this case, the PAI event is triggered as soon as the user chooses a value from the list, and the function code is placed in the SY-UCOMM and OK_CODE fields. If you do not assign a function code, the PAI event must be triggered in the usual way – that is, when the user chooses a pushbutton or an element from the GUI status.
    If you have assigned a list box to an input/output field, you can use the Value list attribute of the screen element to determine how the value list should be compiled. There are two options:
    Value list from input help (recommended)
    If you do not enter anything in the value list attribute, the text field uses the first column displayed in the input help assigned to the screen field. The input help can be defined in the ABAP Dictionary, the screen, or a POV dialog module. It should be laid out in two columns. The key is automatically filled.
    Value list from PBO modules (not recommended).
    If you enter A in the value list attribute, you must fill the value list yourself before the screen is sent (for example, in the PBO event) using the function module VRM_SET_VALUES. When you do this, you must pass an internal table with the type VRM_VALUES to the import parameter VALUES of the function module. VRM_VALUES belongs to the type group VRM. The line type is a structure consisting of the two text fields KEY (length 40) and TEXT (length 80). In the table, you can combine possible user entries from the KEY field with any texts from the TEXT component. You specify the corresponding input/output field in the import parameter ID.
    Examples
    Example
    Dropdown box with a value list from input help (recommended)
    *& Report DEMO_DROPDOWN_LIST_BOX                                 *
    REPORT demo_dropdown_list_box.
    *& Global Declarations                                           *
    * Screen Interfaces
    TABLES sdyn_conn.
    DATA   ok_code TYPE sy-ucomm.
    * Global data
    TYPES: BEGIN OF type_carrid,
             carrid type spfli-carrid,
             carrname type scarr-carrname,
           END OF type_carrid.
    DATA itab_carrid TYPE STANDARD TABLE
         OF type_carrid WITH HEADER LINE.
    *& Processing Blocks called by the Runtime Environment           *
    * Event Block START-OF-SELECTION
    START-OF-SELECTION.
    CALL SCREEN 100.
    * Dialog Module PBO
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    * Dialog Modules PAI
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
    ENDCASE.
    ENDMODULE.
    * Dialog Module POV
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
    ENDIF.
    ENDMODULE.
    The next screen (statically defined) for screen 100 is 100. The only input field on the screen is the component SDYN_CONN-CARRID. Its Dropdown attribute is set to L, and it has the output length 20. The Value list attribute is empty, and it has the function code SELECTED. The function codes of the buttons EXECUTE and CANCEL. CANCEL are defined in the GUI status as having the function type E.
    The screen flow logic is as follows:
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
    PROCESS AFTER INPUT.
      MODULE cancel AT EXIT-COMMAND.
      MODULE user_command_0100.
    PROCESS ON VALUE-REQUEST.
      FIELD sdyn_conn-carrid MODULE create_dropdown_box.
    Users cannot enter any values into the screen fields. When they choose the input field on screen 100, the system displays a list box. The Value list attribute is empty, so the system launches the input mechanism. In this case, the event block PROCESS ON VALUE-REQUEST is created in the screen flow logic. This event block controls all other mechanisms. A two-column internal table is filled in the appropriate dialog module and passed to the input help using the F4IF_INT_TABLE_VALUE_REQUEST function module. The system inserts the two columns of the table into the list box.
    When the user chooses a line in the list box, the PAI event is triggered using the function code SELECTED and the value in the first column of the internal table is copied to the input field.
    Regards,
    Clemens

Maybe you are looking for

  • Save and Save As options are greyed out

    I have an install of Adobe X Standard. An external source is sending in PDFs which are marked as Secured. However, according to the creator of these documents, only editing has been locked down, not Save or Save As functionality. When I open the docu

  • How do I change the password on my IPhone?

    How do I change the password on my IPhone?  I am using a card that belonged to my former daughter in law and I cannot get the original password.  I need it to change the Restrictions setting because all of a sudden my ITunes apps won't download when

  • To add column in an alv of FITV_POWL_TRIPS component

    Hi all I have a requirement to add column to an alv which is in FITV_POWL_TRIPS.Now the prob is that in that component we r using another  compent SALV_WD_TABLE from which alv is taken.This what I understood fitv_powl_trip powl_ui_comp- <-getting tab

  • How can a get a full function distiller dialog box for saving PDF files in Illustrator?

    I would like to know if there is some type of plug-in, etc. out there that would allow me to have all the functionality of a Distiller dialog box when I save a PDF out of Illustrator CS5. Right now, I just have what comes installed with Illustrator.

  • MDT 2010 Deleted task still running

    Hi Guys, I have been using MDT 2010 with Litetouch for deploying Windows 7 x64 clents for the last month. I have a main task sequence which does the deployment and a test task sequence for me to try new things out. On the test task sequence I created