Method add_function does not display icon in toolbar

Hi,
as described in the subject of this post I have a problem with the method add_function of class cl_salv_functions_list. My intend was to add several buttons in the toolbar of the ALV grid. Adding of these buttons is functional but there is no icon display although I defined the right value. Maybe there is a mistake in calling the method. Please see the attached code.
Prerequisites:
<b>eg. l_icon1 = "ICON_REFRESH" --> or should I use another value???</b>
data: lr_columns type ref to cl_salv_columns_table,
        lr_column type ref to cl_salv_column_table,
        lr_functions type ref to cl_salv_functions_list,
        lr_layout type ref to cl_salv_layout,
        ls_key type salv_s_layout_key,
        selection type ref to cl_salv_selections,
        l_icon1 type string,
        l_icon2 type string,
        l_icon3 type string,
        l_icon4 type string,
        e_text type string,
        l_oref   type ref to cx_root.
  try.
      l_icon1 = text-ic1.
      l_icon2 = text-ic2.
      l_icon3 = text-ic3.
      ls_key-report = sy-cprog.
      lr_columns = r_process_alv->get_columns( ).
      lr_functions = r_process_alv->get_functions( ).
      lr_layout = r_process_alv->get_layout( ).
      lr_functions->set_all( value = if_salv_c_bool_sap=>true ).
      try.
          lr_functions->add_function(
                        name = 'SAPDET'
                        icon = l_icon1
                        text = 'Details'
                        tooltip =' Details'
                        position = if_salv_c_function_position=>left_of_salv_functions
          lr_functions->add_function(
                              name = 'APPEND'
                              icon = l_icon2
                              tooltip = 'ADD'
                              position = if_salv_c_function_position=>left_of_salv_functions
          lr_functions->add_function(
                              name = 'DELETE'
                              icon = l_icon3
                              text = 'Del'
                              tooltip = 'Session löschen'
                              position = if_salv_c_function_position=>left_of_salv_functions
          lr_functions->add_function(
                              name = 'REFRESH'
                              icon = l_icon4
                              text = 'Refresh'
                              tooltip = 'Refresh'
                              position = if_salv_c_function_position=>left_of_salv_functions
        catch cx_salv_wrong_call cx_salv_existing into l_oref.
          e_text = l_oref->get_text( ).
          message e_text type 'E'.
      endtry.
Thanks in advance.
Regards
Maik.

Hello Maik
Rich is right. Since release 6.20 we should use
  TYPE-POOLS: icon.   " instead of include <icon>.
In sample report <b>SALV_DEMO_TREE_FUNCTIONS</b> they use the "cryptic" version of the icons which is not preferable.
    try.
      l_text1 = text-b01.
      l_text2 = text-b02.
      lr_functions->add_function(
        name     = 'MYFUNCTION'
        icon     = '@DF@'
        text     = l_text1
        tooltip  = l_text2
        position = if_salv_c_function_position=>right_of_salv_functions ).
      catch cx_salv_wrong_call cx_salv_existing.
    endtry.
Regards
  Uwe

Similar Messages

  • Finder does not display icon for word / excel in list view

    Hi,
    I got a new macbook air, with Yosemite pre installed. I copied over all my files (from my old macbook using a USB drive) and next I installed MS office for mac.
    For some reason Finder does not display the correct excel of word icon in list view (I set preview thumbnail to NO in view options), but it it displays the generic file icon.
    It appears to be very random, as some files do display the icon and others do not. It also appears to have nothing to do with the doc/docx xls/xlsx variations.
    Also some of my parallels icons do not display correctly in list view.
    When I open a INFO panel, it does show the correct icon. Example below:
    Any body know how to reset / fix this ?

    Still got no solution...
    There has to be some one that knows about this ..?
    Any professionals reading this that can point in some direction for a solution?

  • Does not display e-mail toolbar

    In internet explorer my orange e-mail page shows a toolbar complete with smiles, etc. But in Firefox this toolbar is missing and the font is rubbish.
    Also, people are telling me they are not getting my e-mails occasionally.

    Hello and welcome to the forums;
    Has the user been able to send any emails? If not, what is the error when sending? How about contacts, are they syncing? Does your server use an SSL certificate (self-signed or public)?
    Let us know for additional troubleshooting.
    TreoAide

  • Firefox 30.0 does not display the Xfinity Toolbar any longer

    I just updated to 30.0 - well, should I say, Firefox automatically updated. Usually no problem. But now the Xfinity Toolbar (Comcast) no longer shows up above my tabs. I tried to disable the add-on and reinstall, restart, lather, rinse, repeat: but nothing shows. There is a 'band' above my tabs where the toolbar should be - and the toolbar is listed as an option in the pull down View/Toolbars - but nothing shows up. Can this bug be fixed... fast??

    Okay. two possibilities.
    * 1) The toolbar is not compatible with v30.
    ==Go to the add-on web page and check. Look for support site.
    * 2) The toolbar is blocked by another add-on.
    ==Try disabling all other add-ons. Restart. If the toolbar works '''. . . .'''

  • AddThis plug-in does not display properly.

    AddThis plug-in adds "Share page" to the Safari toolbar, but does not display icons for any sharing option (Facebook, Twitter, EMail, etc.). Therefore, I can't click on anything to share the web page I am reading. Any idea why this area is left blank?

    OK, have managed to resolve this. The plugs ins are all registered in the registry, but no version is assigned.
    Adding the version number (in my case 12.1.0.883) to each of the plug ins has solved my issue.
    Under Regedit
    Local Machine, Software, Business Objects, Suite 12.0, Enterprise, Auth Plugins
    I do think this is a compatibility issue between install for CRS & SAP Business One, as we don't get the issue where SAP Business One is not installed.

  • My IPhone 4's mailing feature does not display the toolbar at the bottom for deleting, moving, or writing emails. What is wrong with it?

    My work recently decided to buy every full time employee an IPhone 4 to be used for work purposes. (I do suspect these are refurbished, but I don't think that matters) I have had no trouble with it, except for on occasion the mailing feature does not display the toolbar at the bottom for deleting, moving, or writing emails. You know what I'm talking about...that bar at the bottom of the mailbox when you open an email that you use to delete, respond, forward, move, etc. It just goes away for no reason, and then reappears for a day or two, and goes away again. It is quite annoying since I can't respond to any of my emails without getting on my work computer. If you have any suggestions, please help!

    Hi there,
    You may need to force close the Mail application when this happens. The next time this happens, use the steps in the article below to coles out of the mail application.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Hope that helps,
    - Griff W.

  • Open pdf in IE using #toolbar = 0 does not display read mode menu

    I m trying to open up a pdf document using IE 9 and Adobe Reader XI and if I have the toolbar hidden the first time the document displays the read mode menu bar does not display.  I have to refresh the browser to get the read mode menu to display.
    How do I get the read mode menu bar to display every time?
    I have been able to reproduce this issue consistently using the link : http://www.adobe.com/misc/pdfs/TM_GuideforThirdPartiesFinalPrint.pdf#toolbar=0&navpanes=0

    I mean, When I click on link which contains the PDF, The link gets open in another TAB of browser but not in proper format, please refer below mentioned screen shot.
    he attach screen shot.

  • Screen briefly flashes white but does not display the page when the Safari icon or other icons are tapped.

    A problem has just started with my IPAD Air after 3 months of use.
    If I try to open Safari by tapping on the icon the screen  briefly flashes white but does not display the page.
    Similarly if I try to open Settings page, Mail page, Calendar or Clock the screen just briefly flashes but the Apps do not run.
    Some of the Apps do work on tapping the icon e.g. Maps, iBooks, Appstore, iTunes, Newstand etc.
    I do have some website links which display when the icon is tapped e.g. John Lewis but some links do not work.
    I have ensured that the ipad is fully charged,  powered it off an on again, and cleaned the screen with a lint free cloth  but the
    same problem keeps occurring.

    I saume you used a second display at one time, otherwise the Display settings wouldn't be treating your primary display as a secondary.
    IF you open your System Preferences>Displays (-System Preferences) and click "Gather Windows" it should pull everything to the display on which you clicked it.

  • When I start my computer the safari icon jumps up and down and i get a note: 'Community Toolbar' I'm sorry, but Safari browser version you are currently using does not support the community toolbar.  How do i get rid of this

    when I start my computer the safari icon jumps up and down and i get a note: 'Community Toolbar' I'm sorry, but Safari browser version you are currently using does not support the community toolbar.  How do i get rid of this?

    Carolyn Samit has answered this question before.  I did it with this info.  Thank you Carolyn for your awesome help.

  • Video icon in buddy list does not display when iChat not running?

    I have my father-in-law's computer setup to automatically log into iChat when he turns on the computer. However, it does not say he can video chat (the icon does not display) until he actually opens iChat. Is there any way around this? The only thing I thought of was to get iChat to open at login and just not display the buddy list.
    Basically, I want him to be available to video chat with his grand daughter...but he doesn't need to see the buddy list or the app for that matter. She would initiate all chats.
    Thanks
    Brian

    I am trying to imagine what you have done here.
    It is possible to have iChat as a Login Item.
    It is possible for iChat to start Up with the Buddy Lists hidden.
    From there Chats can be started from the File menu or Apple key and N together.
    To do it this way you have to know the Screen Name of who you are calling.
    You should be able to accept incoming A/V chats.
    9:46 PM Thursday; January 10, 2008

  • Firefox does not display the basic menu line File Edit View etc. How do I get this menu to show. I have tried uninstalling and reinstalling, but that does not help

    When I ask for help finding bookmarks, the answer tells me to click on bookmarks as shown in the illustration, but there is no such line displayed on my computer.

    '''''"Firefox does not display the basic menu line File Edit View etc."''''': That is the Menu Bar; see below.
    '''<u>Menu Bar</u>''' (File, Edit, View, History, Bookmarks, Tools, Help)<br /> <u>Firefox 3.6.x versions allow the user to hide the Menu Bar.</u><br />
    *Tap the ALT key or the F10 key, Menu Bar will display, click View, click Toolbars, click Menu Bar to place a check mark next to it, '''''OR'''''
    *Press and hold the ALT key while pressing the letters VTM on your keyboard, then release the ALT key
    *See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    '''<u>Other Toolbars</u>''', see: https://support.mozilla.com/en-US/kb/Back+and+forward+or+other+toolbar+items+are+missing<br />
    '''<u>Status Bar</u>''': click View, click Status Bar to place a check mark<br />
    '''<u>Full Screen Mode</u>''': If you have no Toolbars or Tab Bar: Press F11 (F11 is an on/off toggle). See: http://kb.mozillazine.org/Netbooks#Full_screen<br />
    Also see: http://kb.mozillazine.org/Toolbar_customization_-_Firefox#Restoring_missing_menu_or_other_toolbars
    <br />
    <br />
    '''Other items that need your attention'''
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post. You can also see your plugins from the Firefox menu, Tools > Add-ons > Plugins.<br />
    <br />
    *Adobe PDF Plug-In For Firefox and Netscape
    **Current versions are 9.4.2 and 10.0.1 (aka Reader X)
    **More info about version 10 (aka Reader X)
    ***New Adobe Reader X (version 10) with Protected Mode was released 2010-11-19
    ***See: http://www.securityweek.com/adobe-releases-acrobat-reader-x-protected-mode
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #****NOTE: 10.x is the new Adobe Reader X (Windows and Mac only as of this posting)
    #***Choose your language
    #***Download the file, SAVE it to your hard drive, when complete, close Firefox, click on the installer you just downloaded and let it install.
    #***Windows: choose the .exe file; Mac: choose the .dmg file
    #*Using either of the links below will force you to install the "getPlus" Adobe Download Manager. Also be sure to uncheck the McAfee Scanner if you do not want the link forcibly installed on your desktop
    #**''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #**Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.

  • Adobe Bridge CS3 - does not display thumbnails for Canon 40D or 50D RAW files

    I wanted to use Bridge to view my Canon EOS 50D RAW files and it does not display the thumbnails, just icons. I checked my 40D cr2 files and saw same thing.
    I have purged the cache and rest the cache preferences and it has not helped. I would like to be abl eto view the thumbnails of the RAW files via Bridge if possible. Jpg files and Tif files can be viewed without any issues.
    Am using Bridge version 2.1.1.9 and Pshop CS3 10.0.1

    I have the exact same problem. I can view my RAW file thumbnails (which are .ARW files from my Sony A200 camera) in the Finder and in other applications, such as Preview, but not in Adobe Bridge CS3. I know that I did try purging the cache at one point to see if that would fix it, but then I didn't know what to do after that. Before I purged the cache, I was able to view RAW thumbnails in Bridge, but then they would not increase in size when I tried using the slider (at the bottom right of the Bridge window)

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

  • HT204291 Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Using Azul media player app on my ipad  Apple tv will only display sound but not video from movies.  Any ideas on a fix.  I set mirroring to on but it still does not display video.  It will display photos and video recorded from my iphone.

    Here are the steps for AirPlay:
    Before starting Azul from your (running iOS 5.x/6.x) home screen where have have all your apps we need to turn on mirroring
    On your iPhone 4S/5 or iPad 2 or 3, double-click the Home  Button to view your recently-used apps.
    Swipe all the way to the right to until you see the  icon.
    Note: If the icon does not appear, go to the "If AirPlay Mirroring is not visible or available on your mobile iOS device" section.
    Tap the  icon to see the list of available AirPlay devices.
    Enable AirPlay Mirroring in this menu by tapping on an available Apple TV, then sliding the Mirroring slider to ON.
    Now you should be seeing your iPad/iPhone on your TV.
    Start up Azul now and using the settings icon on the top right corner go to the option that say "TV out" ON.
    When you do that you will see an Orange screen
    Now click "Done" and play the video you want to watch and it will AirPlay

  • I installed the latest version of iTunes (10.6.3.25) on a new Windows 7 PC.  I can see ahred libraries on Shared but can't import as the line containing the Settings and Import buttons does not display.   Any suggestions?

    To move the iTunes library to this new computer I switched on Home Sharing and can see the other libraries on my home network.  If I select tracks from a Shared library I can't import them as the strip containing "Show: All Items" and the "Settings" and "Import" buttons, does not display at the bottom of the screen.  Goes straight from the list of tracks to the strip with Playlist icons and xxxx items, tttttt total time, yyyy GB. 
    Any suggestions for making the Import button appear?

    I hvae the EXACT same issue
    I built a new computer which is EXTREMELY fast overclocked i7 ect and.. ITUNES DOESNT WORK
    I click on itunes which ive uninstalled and reinstalled and reset the winsock AND seen if there were any errors AAAAAAND ive check the Hkey to make sure bonjur was the only one in there which it is and all that happens is my cpu goes to 25% and i cant do anything except go into the task manager and close it! ANYTHING with itunes (everything else is premium speed).
    what do i do
    windows 7 64 bit

Maybe you are looking for