Icon in tree control displayed as @01@ not as a icon symbol

Hi everybody,
I have a field of component TV_IMAGE. During runtime I assigned 'ICON_COMPLETE'.
But only @01@ is show in the tree, not the symbol.
Does anybody know, what I am doing wrong?
Thanks
Regards
Mario

I found it.
In the fieldcat I have to --> icon = abap_true
Thanks regards
Mario

Similar Messages

  • Tree Control & Display photos

    Dear all,
                    Can some one help me with the Tree control UI,I need to display a hierarachy of products.
    Also pls share how to display photos which are stored in R/3 to appear in a view.
    Thanks in advance,
    Sethu

    Hi Sethu,
    for information related to implementation of trees check my post in the following thread
    Explorer view in WDA - Urgent
    with regards to displaying photos, u need to use image ui-element and sets its source property, check out the tutorial at the below link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2eb11b59-0a01-0010-dfa3-8292abdf9c4f
    Regards,
    Shweta
    PS: Award points if reply was helpfull

  • Object Object displaying in my tree control

    I verified that my arrarycollection is being returned from
    the database correctly but my tree control displays object Object.
    Can anyone offer any suggestions?

    "madhooper" <[email protected]> wrote in
    message
    news:ghrctr$egn$[email protected]..
    >I attached the code for the tree and below is a sample of
    the array that is
    > returned.
    > Object)#0
    > hierarchy = (Object)#1
    > 0000001 = (Object)#2
    > id = "0000001"
    > image = "0000001.png"
    > label = "ENGINE GROUP (1/2)"
    > level = "1"
    > sections = (Object)#3
    > 1101 = (Object)#4
    > id = "1101"
    > image = "1101.png"
    > label = "1101 ENGINE ASSY"
    > level = "2"
    > sections = (Object)#5
    > 1101002A = (Object)#6
    > id = "1101002A"
    > image = "1101002A.gif"
    > label = "1101002A 1101 ENGINE ASSY (9202-9704)5K [ASSY]"
    > level = "3"
    > sections = (Array)#7
    > 1101006 = (Object)#8
    > id = "1101006"
    > image = "1101006.gif"
    > label = "1101006 1101 ENGINE ASSY (9202-9704)5K [SHORT
    BLOCK
    > ASSY]"
    > level = "3"
    > sections = (Array)#9
    > 1101078B = (Object)#10
    > id = "1101078B"
    > image = "1101078B.gif"
    > label = "1101078B 1101 ENGINE ASSY (9202-9704)5K [KIT]"
    > level = "3"
    > sections = (Array)#11
    > 1101093 = (Object)#12
    > id = "1101093"
    > image = "1101093.gif"
    > label = "1101093 1101 ENGINE ASSY (8104-9704)"
    > level = "3"
    > sections = (Array)#13
    >
    >
    > <mx:Panel label="Index"
    >
    icon="@Embed(source='../assets/images/icons/Alpha_Index.png')">
    > <mx:Canvas label="Index" width="100%" height="100%"
    > backgroundColor="0xbFFFFFF"
    > borderColor="0xFFFFFF" borderThickness="5"
    > borderStyle="solid">
    > <mx:RadioButton x="8" y="3" label="Expand All"/>
    > <mx:RadioButton x="104" y="2" label="Collapse"/>
    > <mx:RadioButton x="202" y="3" label="Restore"/>
    > <mx:Label x="0" y="30" text="Filter by Section"/>
    > <mx:TextInput x="101" y="28" width="219"/>
    > <mx:Tree id="partsTree" labelField="sections" x="10"
    y="56"
    > width="354" height="239" dataProvider="{tree}">
    > </mx:Tree>
    > </mx:Canvas>
    > </mx:Panel>
    Since sections always seems to be an array in your hierarchy,
    exactly what
    label did you think you were going to see by specifying that
    field as a
    labelField?

  • Save selected node in Tree control

    I'm making this flex form for my school to add a new student
    to the DB. When the admin clicks on a button it will open a Tree
    control that displays the available courses and sections in the
    following heirarchy:
    Year>Semester>Course Name>Sections
    Now I want that when he clicks on the button Select within
    this new window showing the Tree, it will store the current
    selected node and the full path to it, so that back in the original
    form it will display the Year, Semester, Course name and section.
    I've tried using the value and selecteditem methods from the tree
    control but they are not working. Any ideas to figure out the full
    path of the selected item?

    You will need to climb back up the ancestor nodes to build
    that path yourself.
    "parent()" i believe returns the parent of the current node.
    Tracy

  • TRIAL BALANCE WITH  ALV TREE CONTROL

    Hi Friends,
    My manager wants to see trial balance with cost centers like ALV tree control display.
    Does SAP have any Std trial balance report which can show cost centers also for accounts and activities within those cost centers.
    Please help.
    Thanks

    Nelow message will appear and not possible technically
    Output option ALV Tree Control: Parameter Scaling set to 0/0
    Message no. FR098
    Diagnosis
    You selected output option ALV Tree Control. For technical reasons, only  the value 0/0 is possible for the parameter Scaling.
    System Response
    Parameter Scaling set to the value 0/0.
    Procedure
    If you want to compare the program output for output options ALV Tree Control and Classical list, you have to also set the parameter Scaling  to '0/0' when running the program with output option Classical list.

  • How to use the drop event of the tree control in LabVIEW 8.20?

    Hi,
                I am using the two tree controls in my application to provide a option for the user to drag and drop item from one tree to the other.  I have to validate the user selection. I tried to capture the user drop event  using the event structure. The problem I am facing is, I am not able to drop the item even though i have wired a constant true to the filter(Accepted?) in the event case. I have enable the property(Allow droping) in the right menu of the tree control also.
              While configuring an event case for (drop, drag entered and some thing like this) only I am getting the problem otherwise it is working fine.  
    What do i need to do to caprture the drop event ?
    Is there any way to avoid the item duplication while droping a new item in the tree control ?
    or how can i do this?
    Thanks,
    Pandiarajan R

    Hi Pandiarajan,
    I hope you are doing well today! There is a lengthy discussion on the Tree Control Drag & Drop feature at this forums post including contributions from the developer of the Drag & Drop feature:
    Tree Control Drag & Drop in LabVIEW 8
    By avoiding item duplication, do you mean that you don't want the same item to be in the old tree control or do you not want more than one item in the new tree control?
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Tree control erroneously displays nodes multiple times

    I'm attempting to use a Tree control to display some data.
    I'm using an HierarchicalCollectionView as the dataProvider. All
    the data displays, but it appears on the wrong level. For instance,
    on the root level, it displays the root node (correctly marked with
    the folder icon as having children), plus all the children (on the
    root level!) If I expand the root node, underneath it it displays
    its children as expected -- now there are 2 copys of all the
    children, one in the correct place and one at the root level. If I
    expand 2nd-level nodes, their children (and children's children,
    etc) display underneath them... the pattern continues. It looks
    like every level of the hierarchy displays ALL the nodes underneath
    it, no matter how many levels down.
    I think I know why this happens: a
    HierarchicalCollectionView's createCursor() function returns an
    IViewCursor that treats the collection as linear instead of
    hierarchical. The Tree then uses this cursor to visit every node in
    the tree, displaying it. When expanding a node, it again uses one
    of these linear-type cursors, but on the children of the node
    clicked on, so it displays all the children underneath it and their
    children, etc. This seems like a major bug in the library -- I'm
    pretty sure this isn't a problem with my code. Doesn't it seem
    natural to use a HierarchicalCollectionView with a Tree control?
    Has no one else ever experienced this issue? I'd expect it to work,
    especially since HierarchicalCollectionView extends
    ICollectionView, which is what the dataProvider wants. I've looked
    through the source of the Tree class (and List, and ListBase) and I
    think it all boils down to not using the dataDescriptor's
    getChildren() method and instead using createCursor() directly on
    the dataProvider. The dataDescriptor's getChildren() method returns
    an ICollectionView that correctly only contains the next-level
    nodes, not all of the ones all the way to the bottom of the
    hierarchy. I think the bad behavior is inherited from ListBase (and
    in that class, it actually makes sense... too bad nobody overrode
    it in Tree).
    Am I wrong? Am I making a mistake somewhere in my code? If
    not, is there a workaround? Has a bug report been filed, and should
    I file one if this is indeed a bug? Any help or insight would be
    greatly appreciated.

    OK, after banging my head against this for a day and a half,
    I finally have an answer. It seems that the problem is my root node
    (and possibly others; I didn't delve that deep) is "open". I guess
    something, somewhere is calling
    IHierarchicalCollectionView.openNode() on it. Closing the node(s)
    makes the problem disappear. I've attached a reproduction script
    that's about as simple as I can make it (I guess it could be
    simpler with less data, but oh well). Why does this happen? Should
    I open a bug report? It seems to me that the correct behavior would
    be to have the open node(s) disclosure controls start out open
    rather than incorrectly displaying their children as on the same
    level as them.

  • How to not display nodes in a tree if Oracle roles are NOT used?

    How to not display nodes in a tree if Oracle roles are NOT used?
    We don't use Oracle DB roles to grant users access to Forms from the menu. We use a template and role system of our own. Basically a few tables with templates and roles.
    We want to convert our normal Forms menu to a tree menu and one of our key requirements is that when the tree is populated ONLY nodes with programs (i.e. forms) he has been granted to execute is shown.
    Since we don't use Oracle Roles how to do this in a tree?
    I created a function to show/hide LEAF nodes, BUT problem is that there are sub-menu nodes showing even if the leaf-nodes under it has not being displayed. My function has suppressed it.
    My tree query is like this:
    SELECT
         t.status, LEVEL, t.label, t.icon, t.node VALUE
    FROM
         tma_tree_menu t
    WHERE
    tma_authenticate_sys_chk_role(USER, t.node) = 1
    CONNECT BY
         PRIOR t.node = t.master
    START WITH
         t.MASTER IS NULL
    ORDER SIBLINGS BY
    t.position
    The tma_authenticate_sys_chk_role will return 1 only if the user has access to the form under that node.
    I tried the FTree functions in Forms but even that has nothing.
    Any help would be greatly appreciated.
    Edited by: Channa on Mar 17, 2010 6:49 AM

    Would you share the source code? I guess what I need is how exactly you retreive the user credentials from the DB table and set that boolean variable.
    and then how to condition it in UIX?

  • Can I edit the data already displayed in tree control?

    I'm using a tree control to display some data in front panel. But after running the program, can I edit the data already displayed in tree control by using input control and let it change and display dynamically? In invoke nodes I can only find add or delete items in tree but can't find edit...

    There is no direct editing option available, same can be achieved in two steps by using
    --> Add Item Invoke Node
    --> Delete Item Invoke Node
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Control Framework tree control event not trigerring

    The event handle_node_double_click is not trigerring on the tree controls . I want to display the contents of the nodes on the text editor on trigerring of this event
    *& Report  ZCONTROLS_TREE_TEDIT_SPITTER
    REPORT  zcontrols_tree_tedit_spitter.
    DATA : editor TYPE REF TO cl_gui_textedit,
           tree   TYPE REF TO cl_gui_simple_tree.
    DATA : container TYPE REF TO cl_gui_custom_container,
           splitter  TYPE REF TO cl_gui_easy_splitter_container,
           right     TYPE REF TO cl_gui_container,
           left      TYPE REF TO cl_gui_container.
    DATA : node_itab LIKE node_str OCCURS 0.
          CLASS EVENT_HANDLER DEFINITION
    CLASS event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS : handle_node_double_click
                  FOR EVENT NODE_DOUBLE_CLICK OF cl_gui_simple_tree
                  IMPORTING node_key.
    ENDCLASS.                    "EVENT_HANDLER DEFINITION
          CLASS EVENT_HANDLER IMPLEMENTATION
    CLASS event_handler IMPLEMENTATION.
      METHOD handle_node_double_click.
      perform node_double_click using node_key.
      ENDMETHOD.                    "HANDLE_NODE_DOUBLE_CLICK
    ENDCLASS.                    "EVENT_HANDLER IMPLEMENTATION
    data : handler1 type ref to event_handler.
    START-OF-SELECTION.
      CALL SCREEN 9001.
    *&      Module  start  OUTPUT
          text
    MODULE start OUTPUT.
      SET PF-STATUS 'ZSTAT1'.
      IF container IS INITIAL.
        CREATE OBJECT container
          EXPORTING
             container_name              = 'CONTAINER_NAME'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT splitter
          EXPORTING
            parent            = container
            orientation       = 1
            name              = 'Mohit'
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        left  = splitter->top_left_container.
        right = splitter->bottom_right_container.
        CREATE OBJECT editor
          EXPORTING
            parent                 = right
            name                   = 'MohitEditor'
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 5
            OTHERS                 = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CREATE OBJECT tree
          EXPORTING
            parent                      = left
            node_selection_mode         = tree->node_sel_mode_single
            name                        = 'MohitTree'
          EXCEPTIONS
            lifetime_error              = 1
            cntl_system_error           = 2
            create_error                = 3
            failed                      = 4
            illegal_node_selection_mode = 5
            OTHERS                      = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        PERFORM fill_tree.
        CALL METHOD tree->add_nodes
          EXPORTING
            table_structure_name           = 'NODE_STR'
            node_table                     = node_itab
          EXCEPTIONS
            error_in_node_table            = 1
            failed                         = 2
            dp_error                       = 3
            table_structure_name_not_found = 4
            OTHERS                         = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      create object handler1.
      set handler handler1->handle_node_double_click for tree.
      ENDIF.
    ENDMODULE.                 " start  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
          text
    MODULE user_command_9001 INPUT.
      CALL METHOD cl_gui_cfw=>dispatch.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&      Form  fill_tree
          text
    -->  p1        text
    <--  p2        text
    FORM fill_tree .
      DATA : node LIKE node_str.
      CLEAR node.
      node-node_key = 'head_mohit'.
      node-isfolder = 'X'.
      node-text = 'Mohit'.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child1'.
      node-relatkey = 'head_mohit'.
      node-relatship = cl_gui_simple_tree=>relat_last_child.
      node-text = 'Mohit is the best '.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child2'.
      node-relatkey = 'head_mohit'.
      node-relatship = cl_gui_simple_tree=>relat_last_child.
      node-text = 'Mohit is the bestest '.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'head_JAIN'.
      node-isfolder = 'X'.
      node-text = 'jAIN'.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child3'.
      node-relatkey = 'head_JAIN'.
      node-relatship = cl_gui_simple_tree=>relat_next_sibling.
      node-text = 'cnh INDIA '.
      APPEND node TO node_itab.
      CLEAR node.
      node-node_key = 'Child4'.
      node-relatkey = 'head_JAIN'.
      node-relatship = cl_gui_simple_tree=>relat_last_child.
      node-text = 'SAP  '.
      APPEND node TO node_itab.
    ENDFORM.                    " fill_tree
    *&      Form  node_double_click
          text
         -->P_NODE_KEY  text
    form node_double_click  using  p_node_key type TV_NODEKEY.
    DATA : node LIKE node_str.
    DATA textline(256).
    DATA text_table LIKE STANDARD TABLE OF textline.
    READ TABLE node_itab WITH KEY node_key = p_node_key
                             INTO node.
    endform.                    " node_double_click
    *&      Module  exit  INPUT
          text
    module exit input.
    CASE sy-ucomm.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
    ENDCASE.
    endmodule.                 " exit  INPUT

    Hello Mohit
    Here is a sample routine (taken from BCALV_TREE_02) which you have to add and adapt for your report. It does two things:
    1. Register events that should be handled (required but not sufficient for event handling)
    2. Set event handler for registered events
    The first step is different from ALV grid controls because here all events are already registered with the control (not the control framework).
    Set the event handler (statement SET HANDLER) registers the event handling with the control framework.
    FORM register_events.
    *§4. Event registration: tell ALV Tree which events shall be passed
    *    from frontend to backend.
      DATA: lt_events TYPE cntl_simple_events,
            l_event TYPE cntl_simple_event,
            l_event_receiver TYPE REF TO lcl_tree_event_receiver.
    *§4a. Frontend registration(i):  get already registered tree events.
    * The following four tree events registers ALV Tree in the constructor
    * method itself.
    *    - cl_gui_column_tree=>eventid_expand_no_children
    * (needed to load data to frontend when a user expands a node)
    *    - cl_gui_column_tree=>eventid_header_context_men_req
    * (needed for header context menu)
    *    - cl_gui_column_tree=>eventid_header_click
    * (allows selection of columns (only when item selection activated))
    *   - cl_gui_column_tree=>eventid_item_keypress
    * (needed for F1-Help (only when item selection activated))
    * Nevertheless you have to provide their IDs again if you register
    * additional events with SET_REGISTERED_EVENTS (see below).
    * To do so, call first method  GET_REGISTERED_EVENTS (this way,
    * all already registered events remain registered, even your own):
    call method g_alv_tree->get_registered_events
          importing events = lt_events.
    * (If you do not these events will be deregistered!!!).
    * You do not have to register events of the toolbar again.
    *§4b. Frontend registration(ii): add additional event ids
      l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
      APPEND l_event TO lt_events.
    *§4c. Frontend registration(iii):provide new event table to alv tree
      CALL METHOD g_alv_tree->set_registered_events
        EXPORTING
          events = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3.
      IF sy-subrc <> 0.
        MESSAGE x208(00) WITH 'ERROR'.     "#EC NOTEXT
      ENDIF.
    *§4d. Register events on backend (ABAP Objects event handling)
      CREATE OBJECT l_event_receiver.
      SET HANDLER l_event_receiver->handle_node_double_click FOR g_alv_tree.
    ENDFORM.                               " register_events
    Regards
      Uwe

  • How can I display and change built-in symbols of a tree control programmatically?

    I want to set the built-in symbols of a tree control during runtime.
    I only found an example to assign custom pictures but not how to select one of the 40 built-in symbol.
    Many Thanks 
    Solved!
    Go to Solution.

    The ActiveItem.SymbolIndex will allow you to select the symbol for the active item. You can use the ListBox Symbol Ring Constant (Dialog and User Interface palette) to select a symbol (or you can just enter the number directly if you know what it is).
    Message Edited by smercurio_fc on 07-10-2008 09:36 AM
    Attachments:
    Example_VI_BD6.png ‏2 KB

  • Af:tree control expand is not working

    Hi all ,
    af:tree control expansion is not working if I click on the + sign. But it is working thru context menu "Expand All Below" option.
    Can any one help me.
    Thanks
    Kristi
    Message was edited by:
    Kristi(user576892)

    Hi,
    not with this little information
    - which technology
    - which browser version (if applicable)
    - how to reproduce
    - does it reproduce on other machines / browsers
    Frank

  • How to change the symbol not provided by LV in tree control

    AS we know ,Lv7.0 provide the new "tree" control
    ,but the symbol provided is just some black_white
    icon.if I want to chang the icon as I enjoy ,
    how to do?

    You can create your own symbols (icons) for the tree control. First, create an invoke node for your tree control and select "Custom Item Symbols -> Set Symbol Array". You must build an array of images to feed to the method. You can right-click on the item in the invoke node and select Help for it.
    Once your custom symbol array is set, you can designate an icon for each item on the tree with the property "Active Item Properties -> Symbol Index".
    Daniel L. Press
    PrimeTest Corp.
    www.primetest.com

  • HT1277 my email displays but will not open, just the spinning icon

    My email displays but will not open in my laptop or ipad.  I just keep getting the spinning icon.  I can recieve emails on my iphone.  Any suggestions?

    If Mail.app will launch on OS X and you can get to the Preferences settings and related, see the Apple Mail.app troubleshooting article for some suggestions.  From there, get that working, then compare the differences between what's working and connecting, and what's not — the Connection Doctor and the Activity window should give you a pretty good idea of where things are hanging up — if not directly what's wrong — when troubleshooting the OS X Mail.app connection.

  • Not able to get the database data into the Tree Control

    Hi Everybody,
                        I have to populate the tree control with nodes and items, which is to be populated from the database, and the tree control is <b>dynamic</b>. I mean, there is a <b>toolbar</b>, whenever a <b>pushbutton is clicked</b>, depending on that the tree contents has to be changed.
    If anybody had worked with <b>CL_GUI_COLUMN_TREE</b> control to get the data from database, depending upon the <b>pushbutton selected in Toolbar</b>, please paste the seudocode for it.
    Regards,
      Abdul,
    Intelligroup.
    P.S: Helpful answers will be rewarded.

    have you seen this demo program
    SAPCOLUMN_TREE_CONTROL_DEMO
    Regards
    Raja

Maybe you are looking for

  • Exchange 2007 Mailbox Move

    Hi Guys, I am migrating from Exchange server to another in the same domain Is ther a script to migrate multiple mailboxes using powershell? I know I can use the GUI to migrate multiple mailboxes together but surely there is a faster way ? Thanks This

  • Login Freeze HELp

    Hello guys, I've tried login in with my password and then all of a sudden it seem like the screen is frozen, It accepts the password but it doesn't log on anywhere, just freeze on the login page. all the options are grayed out. What do i do??

  • Pur org assignment error

    i am trying to assign my purchasing org T100, T200 to my company code TA00. we can assign several P.Org to one CC. However, one P.org can only belong to one CC is this true can someone explain me why? thank you

  • HT1386 i want download ios 7.1.1 for iphone 5S 16GB

    i want download ios 7.1.1 for iphone 5S 16GB

  • Are all DVDs produced in 29.97?

    I have footage encoded in 23.98 fps, but it seems that the final DVD will always be in 29.97. While I can easily produce a 23.98 Blu Ray, I don't see how to do so with a DVD. Any wisdom?