Drop down menu in alv toolbar?
Hi,
is it possible to add a drop down menu to the toolbar in my alv?
I wanna assign 3 values to the toolbar, similar to a drop down menu in html?
Thanx
Hi,
Check the below code .......
* CLASS lcl_event_handler DEFINITION
CLASS lcl_event_handler DEFINITION.
PUBLIC SECTION.
DATA: wa_toolbar TYPE stb_button,
utilities TYPE REF TO cl_gui_frontend_services.
METHODS : toolbar_handle FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
menu_bt_handle FOR EVENT menu_button OF cl_gui_alv_grid
IMPORTING e_object
e_ucomm,
ucomm_handle FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS lcl_event_handler IMPLEMENTATION.
METHOD toolbar_handle.
MOVE 3 TO wa_toolbar-butn_type.
APPEND wa_toolbar TO e_object->mt_toolbar.
MOVE : 2 TO wa_toolbar-butn_type,
'$MENU' TO wa_toolbar-function,
'@6C@' TO wa_toolbar-icon,
'User menu' TO wa_toolbar-quickinfo.
APPEND wa_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "toolbar_handle
METHOD menu_bt_handle .
IF e_ucomm = '$MENU'.
CALL METHOD e_object->add_function
EXPORTING
fcode = 'CALC'
text = 'Calculator'.
CALL METHOD e_object->add_function
EXPORTING
fcode = 'INT'
text = 'Internet Explorer'.
ENDIF.
ENDMETHOD. "menu_bt_handle
METHOD ucomm_handle.
CASE e_ucomm.
WHEN 'CALC'.
IF utilities IS INITIAL.
CREATE OBJECT utilities.
ENDIF.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'CALC'.
WHEN 'INT'.
IF utilities IS INITIAL.
CREATE OBJECT utilities.
ENDIF.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
application = 'IEXPLORE'.
ENDCASE.
ENDMETHOD. "ucomm_handle
ENDCLASS. "lcl_event_handler IMPLEMENTATION
DATA : container TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid,
event TYPE REF TO lcl_event_handler,
it_display TYPE TABLE OF mara,
wa_display TYPE mara.
START-OF-SELECTION.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'BASIC'.
PERFORM build_it_display.
PERFORM create_objects.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
WHEN 'CANC'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form build_it_display
* text
* --> p1 text
* <-- p2 text
FORM build_it_display .
SELECT * FROM mara UP TO 15 ROWS INTO TABLE it_display.
ENDFORM. " build_it_display
*& Form create_objects
* text
* --> p1 text
* <-- p2 text
FORM create_objects .
IF container IS INITIAL.
CREATE OBJECT container
EXPORTING
container_name = 'CUSTOM'.
CREATE OBJECT event.
CREATE OBJECT grid
EXPORTING
i_parent = container.
SET HANDLER event->toolbar_handle FOR grid.
SET HANDLER event->menu_bt_handle FOR grid.
SET HANDLER event->ucomm_handle FOR grid.
CALL METHOD grid->set_table_for_first_display
EXPORTING
i_structure_name = 'MARA'
CHANGING
it_outtab = it_display.
ENDIF.
ENDFORM. " create_objects
Cheers,
Jose
Similar Messages
-
I still have all my bookmarks so they are not lost (I can find them under 'bookmarks'>'Edit bookmarks' and also when I put them in the left side windowframe by clicking 'View'>'Sidebar'>'Bookmarks'
I saw them appear once again in the dropdown menu but now they're gone again.
The Firefox help page suggest to go to the 'add ons window' and select 'Extentions'>'Torbutten' but I don't even have that. They say that if you don't find the button, that means the torbutton is not installed. And then they leave you without another possibility. But I think that's only for when your bookmarks are totally lost anyway.
I always use the drop down menu and the bookmarks toolbar so would love to get it back. Adding, erasing and moving the bookmarks in the 'edit bookmarks' window all works just fine.This issue can also be caused by a missing "Bookmarks Toolbar items" on the Bookmarks Toolbar.
* Make sure that you have the "Bookmarks Toolbar" visible: "View > Toolbars"
* Check in "View > Toolbars > Customize" that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
* If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize window onto the Bookmarks Toolbar
* If you do not see the "Bookmarks Toolbar items" then click the "Restore Default Set" button -
Drop down menu in Navigation Toolbar that lists frequently visited websites does not work.
When I click on the down arrow, the address already in the address box is highlighted. A list of up to 10 often visited websites would open up before. I have disabled Hardware acceleration and reinstalled Firefox 21.0.0 with no luck from either. I can go to Bookmarks/bookmarks toolbar/Most visited and see a list there, but would prefer to use the drop down arrow that I used to be able to use. Thanks
Do you want to see a list of recently used URLs? See
[[Awesome Bar - Find your bookmarks, history and tabs when you type in the address bar]]
this can come handy too:
[[Settings for privacy, browsing history and do-not-track]]
Let us know if it helped. -
I just updated to Firefox 4.0.1. Some changes I don't like, especially that the Bookmarks toolbar opens to the left of the drop-down menu instead of the right. How can I change it?
You may have bookmarks that have long title. Firefox 4 shows the full text of the bookmark name, so if it doesn't fit with opening to the right side the Firefox will open to the left side. You can scroll through the list and make the bookmarks with a long name shorter.
* [[How do I use bookmarks?]] -
I want to remove alexa toolbar. I did not have it installed as a program, so I cannot remove it there. i need to know where to find firefox to double click it and and click on drop down menu to remove alexa. I do not know how to do this step by step.
archhe, do you see a bar at the top of your Firefox window containing items like '''File''', '''Edit''', '''View''' etc? The '''Tools''' item is on the same bar towards the right side.
In case you are not able to view this bar, do the following: press the '''Alt''' key on your keyboard. Keeping this pressed, type the following keys in this order: V T M.
I hope you should be able to view the '''Tools''' item now on the top bar of Firefox. -
I don't understand why Firefox would take me to a link UNDERNEATH the link I clicked on in the drop-down menu. Items in the drop-down menu are supposed to be clickable. I'm tired of clicking on a BBC news story link only to be sent to the beanie babies page of Amazon.com.
== This happened ==
Not sure how often
== I installed my third-to-latest upgrade, about 3.5To add a Pinterest icon to your Home Screen do the followiing:
In Safari:
Go to the Pinterest Website - http://pinterest.com
Touch the Share icon at the top (looks like a box with an arrow coming out)
Touch Add to Home Screen -
I have a Mac G5 desktop with OX 10.5.8. My Safari browser was hacked by TH malware, and so I deleted it because it is too old to update to Mavericks.
I am now using Firefox. I see now that the trojan is embedded in my Bookmarks bar, on the drop down menu items. I'm am having trouble resetting Firefox, nor can I get the Malwarebytes that I downloaded to open and run. I have cleared the history, cookies, cache on my computer. I have also deleted Java, MSN, and the old email Mail and its settings from the hard drive.
I'm a low-tech techie. Thank you for your ideas,
svidorAre you able to give screenshots or other information so we know more about your problem.
*[[How to make screenshots]]
*[[How do I create a screenshot of my problem?]]
I have no idea what the trojan is / was but there have been quite a few reports of pseudo ransomware. This demands money and makes it appear that Firefox is locked up. If you are lucky and have that sort of problem it is easy to get out of.
* see for example this thread [/questions/981475]
If you have book marked sites with malware Firefox provdes you an option to forget about sites that may resolve the issue.
* see [[Remove websites from the Awesome Bar suggestions#w_clearing-all-items-for-a-single-site]]'''_clearing-all-items-for-a-single-site''' -
I want to alphabatize all my bookmarks that are in the drop down menu, the menu with the star icon, on the right side of the screen. I do not want to put them in folders or view them in the box from the menu bar and all the answers pertain to that box, and not to the one with the star. Thank you
I don't think it's possible from the toolbar button.
However, the action you take in the Bookmarks Sidebar or in the Library dialog will affect the Bookmarks Menu everywhere it is displayed, including the toolbar button, so you only need to use it for the few moments needed to use Sort By Name and then close it.
Bookmarks Sidebar (either):
* View menu > Sidebar > Bookmarks
* Command+b
Library dialog (either):
* Bookmarks menu > Show All Bookmarks
* Command+Shift+b
right-click "Bookmarks Menu" > Sort By Name -
All of the instructions seem to ask me to start with the firefox window. I cant get this to appear. As an alternate, I have opened Mozilla and clicked on the icon in the upper left corner, but no Options" appears in the drop down menu. (the only items listd are restore, size, etc). What can I do?
You most likely have the menu bar visible instead of the Firefox button, [[Display the Firefox button menu instead of the menu toolbar]]
BTW, update to Firefox 22 [[Update Firefox to the latest version]] -
Found 0 results for My browser is missing important items, the whole tool bar...., drop down menu to print, copy, work off line, file, save, book mark, history. I just installed latest foxfire on windows xp. Found some instructions but they called for using keys my computer doesn't have ( key in OSX There is no file, edit , history, help, tools, navigation, all the things your directions say to use. Also I always get hung up and the message a scrip is running. I don't know what thises scrips are but I sure don't need them.
== This happened ==
Every time Firefox opened
== I just noticed it. It probably happened when I upgraded foxfire.<u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
Turning the Menu Bar on and off is a new feature in version 3.6.
''(Linux & OSX see: [[Menu bar is missing]] )''
<u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
<u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
<u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
<u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
<u>'''Full Screen mode'''</u>
http://kb.mozillazine.org/Netbooks#Full_screen
Also see:
''' [[Back and forward or other toolbar buttons are missing]]'''
'''[[Navigation Toolbar items]]''' -
Username Drop Down Menu Not Working
I'm having an issue with the drop down menu when I'm attempting to sign on or auto fill on certain websites. I have checked and indeed Firefox has saved usernames and passwords but it will not show up in the drop down box. When I double click on the box to sign in the drop box opens but everything is blank. If I manually type in the username then the password will auto fill. I have checked all my settings and I'm not in private browsing, I'm saving cookies and I'm not auto deleting anything when I sign off.
Any ideas on what could be the problem? I have attached a link to see a screen save of the issue.
Thank you in advance for all your assistance.
http://img148.imageshack.us/img148/5686/firefoxusername.pngYes, I was using the form fill feature on the google toolbar. I have been using it for awhile with no problems but I turned it off and now my drop down menu is working properly.
Thank you for replying! -
How do I put my tabs back up beside the orange firefox drop down menu?
I have an Acer Mini. In order to optimize screen space, I closed most of the toolbars down, leaving the navigation bar and the tabs on top. They appeared in the blue space beside the orange "firefox" drop down menu. I turned away from the laptop to tend to my baby and when I turned back, my 2 yr old was mashing keys. I don't know what he did, but now I can't get the tabs back up there.
Upper-right corner of Firefox, hit the center of the 3 buttons to Maximize the browser window.
-
I am running on a Mac (Lion) with FF 25.0. I typically hide the toolbar because I like to max out my screen space without having to go into full screen mode. So I typically use a custom keyboard command to navigate forward and back during my browser session, but occasionally the keyboard command fails and the page is unresponsive. In the past all I had to do was go up to the History drop down menu and choose "Back" or "Forward". I would also use the "Home" selection to get back to my homepage. But ever since I updated to 25.0 those selection are now gone from the History menu.
Is there any way to restore them? And are they gone for all users (was this a global change) or are one of my add-ons simply not playing nice and causing this problem? TIA!On WinXP Back, Forward, and Home was last in the Firefox 3.6 versions and disappeared as of Firefox 4.0 - and hasn't been seen since.
Doesn't the Mac OSX versions of Firefox have Back and Forward in the context menu (right-click), as Windows and Linux versions do? -
Hello,
I can't seem to open additional tabs with the +, the drop down menu, or Command T? Is this a bug, or am I missing something?
I'm running Firefox 30.0 in OS 10.8.5 on a Mac Book Pro with the 2.7 GHz Intel Core i7 and 8GB 1333 MHz DDR3 memory.
Thanks in advance,
PatBOOM! You have hit the nail on the head, sir!
I disabled my Vuze Remote Community Toolbar and the problem was fixed.
Thank you, the-edmeister!!!! -
Your instructions for importing bookmarks/favorites are to click the top left Firefox button and select "import" to start the process. I don't have that option, there is not "import" in the drop down menu. How can I import bookmarks into Firefox?
You will still find it in the File menu in the Firefox 5 version that you are using.<br />
If Firefox 7 is has been moved to the Bookmarks Manager.
Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
If you managed the bookmarks via the Google toolbar on the Google server then see:
* http://www.google.com/bookmarks
Maybe you are looking for
-
How to set CORS properties for BLOB Storage using node?
Hi - I just got started with Azure using a Node-based web site and mobile services. I am following various documentation in order to provide an API for users to upload images via a time-restricted SAS for the BLOB Storage. In order to upload my image
-
I am new to the Mac world. I have been doing some video editing and DVD authoring on a PC using Easy Media Creator and Nero. I wanted to be able to create more professional looking productions so I purchased my iMac. I have used the iMovie app but it
-
My 24" iMac just died and will not power-up. What can I do?
My 24" iMac just died and will not power-up. What can I do?
-
Problem with RFC Communication in BPM
Hi, I'm again facing problem with transfer of File->RFC->File scenario.The error in sxmb_moni is given below . <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Request Message Mapping --> - <SAP:Error xmlns:SAP="http://sap.com/xi
-
How to publish infopath forms to open new and old form templates in sharepoint2007
Hi All, My requirement is , we are having a form library with the Infopath form templated(V1) published. Then we have added about 300 items using template(v1) into the sharepoint library. Then client asked for the changes in form and we deveploped i