Menu Buttons toolbar for CL_SALV_TABLE (Container)

I am using salv and i have a container
So i wanna add some menu buttons to container ?
How can i do this ?
Thanks...

Hi,
Look at the report SALV_DEMO_TABLE_SELECTIONS.
Regards,
Ashvin

Similar Messages

  • Nokia x3 help! menu button works for lock but not ...

    i have a new nokia x3, around 2 months old, after restarting the phone one time, the main button (the menu button) works for locking/unlocking and even makes the keytone sound when you press it, but i cant open up the menu, its really annoying because without the menu i cannot access the phone!
    i can still make calls/text messages, but i really want to fix this.
    thanks in advance

    just to clarify, the menu button works such as when i slide the phone closed, the 'lock' option appears, and the button works then, but when i unlock, i goes back to the usual 'menu' option which just doesnt work.
    i can use text/calls from the shortcut buttons such as left/down/right and some buttons work on in certain places, such as when the 'send' option appears for sending a text.
    i have tried to soft reset  using the code, before, and i have tried restarting it.
    none of them worked, does anyone have a solution, also does anyone know the hard reset code?
    thanks in advance.

  • Can you change the color of menu buttons dynamically?

    Post Author: DanH
    CA Forum: Xcelsius and Live Office
    Hello, Newbie Here,
    Built my first Xcelsious front end and linked to two personnel databases.  Everything works just fine.  The outputs on this particular visualization generate completion statistics for 12 divisions and a 13th for combined.  Don't know enough about the software yet to know whether I can make the menu buttons appear in red for those that have not accomplished a 100% compliance to the task being tracked?  This would make it visually easier for upper management to click directly on the division menu buttons in red, rather than have to click on all of them to see which divisions haven't achieved completion.  Also, wouldn't hurt to be able to turn the other menu buttons green for those that have completed.  Any ideas are appreciated, really scratching my head at the moment.
    Thanx,
    Dan

    Post Author: amr_foci
    CA Forum: Xcelsius and Live Office
    i dont think you can change the objects' color on runtime for the crytsal xcelsius

  • I press the swtich off and menu button together, but still can't on and sync my phone! can anyone help me? please...

    I was prepare to update the latest facebook app, but on the half way suddenly stuck... i can't press any button! i can only press the swtich off and menu button together for restart my phone, and of course turn into full black screen and the apple comes back again to the screen and for a really long time. I did try to sync to my laptop but it can't work, the apple stay there forever. Can someone help me? 

    OR RECOVERY MODE
    Recovery Mode
    1. turn off the iPhone.
    2. connect the USB cable to the iphone.
    3. press the home button (the large round), and press and hold connect the other end of the USB cable to your PC.
    4. continue to hold pemuto the home button.
    5. within about 8/10 seconds will appear on the screen of the phone USB cable + iTunes.
    6. your iphone is now in recovery mode.
    7. will open automatically iTunes you will detect an iPhone in recovery mode.
    To return to normal mode you just hold the home button + shut down: the Apple logo in about 1 minute and the iphone will reboot.

  • Translation menu/button

    Gurus,
        What is this Translation menu/button used for in Administrator workbench.
    Thanks

    Shiva Sai
    Welcome to SDN
    See if this helps
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/bf0d3dbd82fe2fe10000000a114084/frameset.htm
    Thnaks
    sat

  • Menu Button in ALV toolbar (multiple choices for a button)

    Hi abapers,
    I would like to have a button with multiple choices in the toolbar;
    at the moment I have created a menu button with just one function.
    Here is my code:
    CLASS lcl_event_receiver (Definition)
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
        handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver (Implementation)
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_toolbar.
        DATA: ls_toolbar  TYPE stb_button.
    *Separator
        CLEAR ls_toolbar.
        MOVE 3 TO ls_toolbar-butn_type.
        APPEND ls_toolbar TO e_object->mt_toolbar.
    *Button
        CLEAR ls_toolbar.
        MOVE 1 TO ls_toolbar-butn_type.
        MOVE 'EDIT' TO ls_toolbar-function.
        MOVE icon_change TO ls_toolbar-icon.
        MOVE ' Modifica'(l02) TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        MOVE 'Modifica' TO ls_toolbar-quickinfo.
        APPEND ls_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.                    "handle_toolbar
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION

    hi,
    check this code and reward me if it helps you..
    TYPE-POOLS : slis,icon.
    *Structure declaration for tcodes
    TYPES : BEGIN OF ty_table,
            tcode TYPE tcode,
            pgmna TYPE progname,
            END OF ty_table.
    *Structure for tocde text
    TYPES : BEGIN OF ty_itext,
            tcode TYPE tcode,
            ttext TYPE ttext_stct,
            sprsl TYPE sprsl,
            END OF ty_itext.
    *Structure for output display
    TYPES : BEGIN OF ty_output,
            tcode TYPE tcode,
            pgmna TYPE progname,
            ttext TYPE ttext_stct,
           END OF ty_output.
    *internal table and work area declarations
    DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
           it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
           it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
           wa_table TYPE ty_table,
           wa_output TYPE ty_output,
           wa_ittext TYPE ty_itext.
    *Class definition for ALV toolbar
    CLASS:      lcl_alv_toolbar   DEFINITION DEFERRED.
    *Declaration for toolbar buttons
    DATA : ty_toolbar TYPE stb_button.
    Data declarations for ALV
    DATA: c_ccont TYPE REF TO cl_gui_custom_container,   "Custom container object
          c_alvgd         TYPE REF TO cl_gui_alv_grid,   "ALV grid object
          it_fcat            TYPE lvc_t_fcat,            "Field catalogue
          it_layout          TYPE lvc_s_layo,            "Layout
          c_alv_toolbar    TYPE REF TO lcl_alv_toolbar,           "Alv toolbar
          c_alv_toolbarmanager TYPE REF TO cl_alv_grid_toolbar_manager.  "Toolbar manager
    *Initialization event
    INITIALIZATION.
    *Start of selection event
    START-OF-SELECTION.
    *Subroutine to get values from tstc table
      PERFORM fetch_data.
    *subroutine for alv display
      PERFORM alv_output.
          CLASS lcl_alv_toolbar DEFINITION
          ALV event handler
    CLASS lcl_alv_toolbar DEFINITION.
      PUBLIC SECTION.
    *Constructor
        METHODS: constructor
                   IMPORTING
                     io_alv_grid TYPE REF TO cl_gui_alv_grid,
    *Event for toolbar
        on_toolbar
           FOR EVENT toolbar
           OF  cl_gui_alv_grid
           IMPORTING
             e_object.
    ENDCLASS.                    "lcl_alv_toolbar DEFINITION
          CLASS lcl_alv_toolbar IMPLEMENTATION
          ALV event handler
    CLASS lcl_alv_toolbar IMPLEMENTATION.
      METHOD constructor.
      Create ALV toolbar manager instance
        CREATE OBJECT c_alv_toolbarmanager
          EXPORTING
            io_alv_grid      = io_alv_grid.
       ENDMETHOD.                    "constructor
      METHOD on_toolbar.
      Add customized toolbar buttons.
      variable for Toolbar Button
          ty_toolbar-icon      =  icon_generate.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'Button1'.
          APPEND ty_toolbar TO e_object->mt_toolbar.
          ty_toolbar-icon      =  icon_voice_output.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'Button2'.
           APPEND ty_toolbar TO e_object->mt_toolbar.
         ty_toolbar-icon      =  icon_phone.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'Button3'.
           APPEND ty_toolbar TO e_object->mt_toolbar.
         ty_toolbar-icon      =  icon_mail.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'Button4'.
           APPEND ty_toolbar TO e_object->mt_toolbar.
       ty_toolbar-icon      =  icon_voice_input.
        ty_toolbar-butn_type = 0.
        ty_toolbar-text = 'Button5'.
         APPEND ty_toolbar TO e_object->mt_toolbar.
      Call reorganize method of toolbar manager to
      display the toolbar
         CALL METHOD c_alv_toolbarmanager->reorganize
          EXPORTING
            io_alv_toolbar = e_object.
       ENDMETHOD.                    "on_toolbar
    ENDCLASS.                    "lcl_alv_toolbar IMPLEMENTATION
    *&      Form  fetch_data
          text
    -->  p1        text
    <--  p2        text
    FORM fetch_data .
    Select the tcodes upto 200 rows from TSTC
       SELECT   tcode
               pgmna
               FROM tstc
               INTO CORRESPONDING FIELDS OF TABLE it_table
               UP TO 200 ROWS
               WHERE dypno NE '0000'.
    *Select the tcode textx
       IF it_table[] IS NOT INITIAL.
         SELECT ttext
               tcode
               sprsl
               FROM tstct
               INTO CORRESPONDING FIELDS OF TABLE it_ittext
               FOR ALL ENTRIES IN it_table
               WHERE tcode = it_table-tcode
               AND sprsl = 'E'.
       ENDIF.
    Apppending the data to the internal table of ALV output
       LOOP AT it_table INTO wa_table.
        wa_output-tcode = wa_table-tcode.
        wa_output-pgmna = wa_table-pgmna.
       For texts
        READ TABLE it_ittext INTO wa_ittext WITH KEY tcode = wa_table-tcode.
        wa_output-ttext = wa_ittext-ttext.
         APPEND wa_output TO it_output.
        CLEAR wa_output.
       ENDLOOP.
       ENDFORM.                    " fetch_data
    *&      Form  alv_output
          text
    -->  p1        text
    <--  p2        text
    FORM alv_output .
    *Calling the ALV
      CALL SCREEN 0600.
      ENDFORM.                    " alv_output
    Calling the ALV screen with custom container
    On this statement double click  it takes you to the screen painter SE51.Enter the attributes
    *Create a Custom container and name it CC_CONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    Now a normal screen with number 600 is created which holds the ALV grid. PBO of the actual screen , Here we can give a title and *customized menus
    *&      Module  STATUS_0600  OUTPUT
          text
    MODULE status_0600 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0600  OUTPUT
    calling the PBO module ALV_GRID.
    *&      Module  ALV_GRID  OUTPUT
          text
    MODULE alv_grid OUTPUT.
    *create object for custom container
      CREATE OBJECT c_ccont
           EXPORTING
              container_name = 'CC_CONT'.
    *create object of alv grid
      CREATE OBJECT c_alvgd
          EXPORTING
              i_parent = c_ccont.
    create ALV event handler
      CREATE OBJECT c_alv_toolbar
        EXPORTING
          io_alv_grid = c_alvgd.
    Register event handler
      SET HANDLER c_alv_toolbar->on_toolbar FOR c_alvgd.
    Fieldcatalogue for ALV
       PERFORM alv_build_fieldcat.
    ALV attributes FOR LAYOUT
      PERFORM alv_report_layout.
       CHECK NOT c_alvgd IS INITIAL.
    Call ALV GRID
       CALL METHOD c_alvgd->set_table_for_first_display
        EXPORTING
          is_layout                     = it_layout
        CHANGING
          it_outtab                     = it_output
          it_fieldcatalog               = it_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDMODULE.                 " ALV_GRID  OUTPUT
    *&      Form  alv_build_fieldcat
          text
         <--P_IT_FCAT  text
    FORM alv_build_fieldcat.
       DATA lv_fldcat TYPE lvc_s_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '1'.
      lv_fldcat-fieldname = 'TCODE'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 8.
      lv_fldcat-scrtext_m = 'TCODE'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
       lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '2'.
      lv_fldcat-fieldname = 'PGMNA'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 15.
      lv_fldcat-scrtext_m = 'PROGNAME'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
      lv_fldcat-row_pos   = '1'.
      lv_fldcat-col_pos   = '3'.
      lv_fldcat-fieldname = 'TTEXT'.
      lv_fldcat-tabname   = 'IT_OUTPUT'.
      lv_fldcat-outputlen = 60.
      lv_fldcat-scrtext_m = 'Description'.
      APPEND lv_fldcat TO it_fcat.
      CLEAR lv_fldcat.
    ENDFORM.                    " alv_build_fieldcat
    *&      Form  alv_report_layout
          text
         <--P_IT_LAYOUT  text
    FORM alv_report_layout.
       it_layout-cwidth_opt = 'X'.
       it_layout-zebra = 'X'.
    ENDFORM.                    " alv_report_layout
    PAI module of the screen created. In case we use an interactive ALV or
    *for additional functionalities we can create OK codes
    *and based on the user command we can do the coding.
    *&      Module  USER_COMMAND_0600  INPUT
          text
    MODULE user_command_0600 INPUT.
    ENDMODULE.                 " USER_COMMAND_0600  INPUT
    thanks,
    gupta

  • How do I remove the menu button? The Customize option doesn't seem to work for that.

    How do I remove the menu button? [That IChing looking three line icon on the toolbar.]
    The toolbar Customize option doesn't seem to work, and it seems a waste to have a button that duplicates the menus. I'd like to swap it out for the NoScript icon.

    Hi, ''I can't recommend that you do it'', but If you really are determined, [http://www.tweakguides.com/Firefox_12.html this article] may help.

  • Toolbar button/hotkey for "show cover page in two page view" in Acrobat X?

    In Acrobat X, how about make a toolbar button/hotkey for "show cover page in two page view"?  I find toggling this option to be useful for changing up the order of adjacent pages in magazines/books in which a two page spread has to match for a full large picture.  Due to frequent toggling, I would like a button/hotkey for this for easier access.

    Hotkeys for existing menu items are not modifiable, but you can add a scripted button which toggles it with the following code:
    if (layout.substr(-5)=="Right") layout = layout.replace("Right","Left");
    else layout = layout.replace("Left","Right");
    For info on how to add a button with a folder-level script, see the Acrobat SDK documentation. Scripted buttons will appear in a new panel on the tools pane in Acrobat X, not on the tool bar.

  • How to get rid of new menu button on far right side of toolbar

    Honestly, I don't know why developers can't offer us new features which we can use or not use, by choice. Instead, things are forced upon us.
    Would someone please tell me how to get rid of the new menu button on the right side of the toolbar?
    There doesn't seem to be any option to remove it via the Customize toolbars window.
    Thank you very much.

    Hello brynn2,
    First of all thank you for understanding us and sorry for the delay, it has really been a busy week for all of us out here.
    The interface you see in Firefox 29 is a major re-design (first one since Firefox 4) of Firefox's user interface called "Australis."
    You can use Classic Theme Restorer to get the previous look back. https://addons.mozilla.org/hu/firefox/addon/classicthemerestorer/
    See also:
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/what-happened-to-the-add-on-bar
    *Tabs On Bottom: https://addons.mozilla.org/firefox/addon/tabs-on-bottom/
    *The Addon Bar (restored): https://addons.mozilla.org/firefox/addon/the-addon-bar/

  • After upgrading to the latest itunes, the text associated with syncing a device is gone.  The buttons are there but no text.  Also the toolbar for iTunes has disappeared.

    After upgrading to the latest editon iTunes, the text associated with syncing any device is gone.  The buttons are there but no text.  Also the toolbar for iTunes has disappeared.

    That's consistent with trouble with the Segoe UI fonts on your system.
    If you're using Windows XP or Windows Vista, try Vortical's technique from the following post:
    Re: iTunes 10.1 Missing Text
    But if you're using Windows 7, try itunesTRK's suggestion from the following post:
    menu bar invisible

  • How do I include an entire hour-long performance on a DVD and also have menu buttons for playing isolated sections of the performance?

    How do I include an entire hour-long performance on a DVD and also have menu buttons for playing isolated sections of the performance?
    So far, I've already done the individual menu buttons for sections of the performance. How do I set up some kind of "play" button that will play the video of the entire performance straight through? Will this be too much material for the DVD to hold? Does the program recognize and not replicate material to save space? If so, will it interfere with that if  I add edits to individual sections that will not be in the video of the entire performance?   

    Hi
    If You only need
    • Play movie in full
    • Start into the movie at specific places e.g. Chapters - then play to movie ends
    Then this is fairly simple - Just add Chapters in Your Video-editor (iMovie or FinalCut)
    (some quirks to keep in mind - No Chapter mark in any transition or within 2 sec from it - AND - only Lettera A to Z and 0 to 9 - no other letters/symbols at all)
    BUT
    If You want to
    • Play full movie (with or without Chapters)
    • Play an individual Chapter then return to Menu
    This function is not standard in iDVD - but has to be faked one way or another.
    Please read my notes on this and be aware of the 60 minutes / 12 minutes limit in iDVD (THIS is including the Menu and it can take 15 minutes or more from the movie time)
    Play all resp one chapter at a time
    Play All Button
    1. There are NO - Play All - button in any version of iDVD
    2. It can be faked in several ways
    • Easiest and most fault proof way is to make a doublet movie containing All and with
    Chapters set to match. It will take up x2 space but is easy to understand and produce.
    Cons: Tried this in iMovie’11 by Exporting out each part as a full Quality QT.mov then Importing back into new events and putting these into a new project (Play All project). Resulting DVD had Audio that was OK (as parts) - BUT the picture was very bad and standing photo were cut of in hight. So the Play All movie has to be created from same material and exactly in the same way as the individual parts + then Chapters has to be set to match.
    • It's said that one can put all movies into a Photo/SlideShow and this will also
    give the function of a Play All button - Tested - and ONE HAS TO un-cheque - Scale pictures to TV-Safe area else it will be a black frame all around and a small picture !
    Cons: BUT - When tested with music videos - the same video on main Menu played nicely with OK Audio. The Play All version in SlideShow had a signifcant Distortion - as on telephone or worse.
    Mike Evangelist1
    You might be able to get close to what you want by using a slideshow in iDVD. (It's not widely known, but you can put videos in a slideshow.) If you set the slide duration to manual, playback will pause after each movie/slide, and you can continue with the 'next' button.
    3. Using another program to do this e.g.. Roxio Toast™ where there is a Play All button option.
    Summary
    a. Making a Play All movie with same care as the individual Part movies - gives a very Good Result
    b. Using Roxio Toast™ - also an usable way to go
    Yours Bengt W

  • I have downloaded updates for Firefox but my browser doesn't look like it should, no single menu button etc, how do I get it to look like your demo?

    The last few times I have been prompted to update my firefox for desktop, my browser has not looked any different even though I get notification to say updates completed successfully. When I update firefox gives a demo of new features and how my browser should look, mine has not looked like the demo for the past few updates. It's annoying because I really like the look of having just one menu button. How can I change the look of my browser?

    The Firefox button displays by default only in Windows Vista and Windows 7. You '''''can''''' have it display in Windows XP
    '''Menu Bar'''<br />
    *right-click empty space at the end of the Tab Bar, click "Menu Bar" to place a checkmark
    *Menu Bar checked = Menu Bar on; Firefox button off
    *Menu Bar un-checked = Menu Bar off; Firefox button on
    *Other methods of doing the same:
    **click Firefox button > Options, click Menu Bar
    **Quick toggle Menu Bar on/off: ALT+V+T+M
    To have the Menu Bar '''''temporarily''''' display when the Firefox button is on, press the ALT key or the F10 key to make the Menu Bar appear and use your mouse to make selections from the temporarily displayed Menu Bar. Why would you want to do this? The selections available are different.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • How do I add the rotate button to the main toolbar for all users

    How do I add the rotate button to the main toolbar for all users. I have a Windows 2003 Citrix farm with Adobe Reader 8. I can add it user by user but I want to add it to all users at once. All users need this rotate button,
    Thanks in advance
    ND

    Try the Reader forum. I have no clue.

  • How do I add the rotate button to toolbar for all users.

    How do I add the rotate button to the main toolbar for all users. I have a Windows 2003 Citrix farm with Adobe Reader 8. I can add it user by user but I want to add it to all users at once. All users need this rotate button,
    Thanks in advance.

    Try the Reader forum. I have no clue.

  • Adobe premiere elements 12 - how to create menu bar action for my inserted image button

    adobe premiere elements 12 - how to create menu bar action for my inserted image button without using their movie menu theme

    forbemag
    I do not think that I am completely focused into this completely, so let us see if the following is going to help.
    You are going to need a base for your button. When you mention "image" button, I am assuming that you are using that term to differentiate between a text button and a thumbnail type button.
    The menus (main and scene) take their origin in .psd files on the hard drive and strict nomenclature and structure for Layers Palatte. And, the buttons on the menus trace back to the menu markers on the Timeline, main menu marker and order of placement of scene markers. The scene thumbnail will only appear when there is a scene marker on the Timeline to which it.
    In view of all that
    Where have you already inserted this "image (button)"...into the Layers Palette of a Photoshop document or other? Is this "image (button)" in a structured Layer Group in the Layers Palette with sublayer groups, text layers, graphic/background layer"?
    Let me give you an example
    If you have a button (with thumbnail) on the main menu and you want that to open to a specific scene in your movie, then you use a main menu marker on the Timeline at the spot that you want that button to target.
    If I am getting closer to what you seek, then please further clarify the DVD navigational envisioned scheme.
    Thanks.
    ATR
    Add On...I did not see the exchanges between us and SG until after I had posted mine. I thought that your discussions were concluded. Please excuse the interruption.

Maybe you are looking for