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?

Similar Messages

  • Numeric cell in Tree control ?

    Hi y'all !
    I'd like to have numeric input cells in my TREE CONTROL. I can see the types string, ring, combo box, etc. ... but NUMERIC is not included.
    I'm using CVI 2012.
    Is there an alternative or does anyone know at least why it is not supported ?
    Thanks!

    Hi carolynturnell,
    Indeed cell types included in a tree control are String,Ring, ComboBox, CheckBox, ColorPicker and HorizontalBar.
    Tree controls are used to view a hierarchical list of items.
    Why do you want to display Numeric/use tree control ?
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Need help for tree control

    Hi everybody,
    I am getting a display problem with tree control. The tree
    control has a fixed height and width, and has quite a few nodes
    with different level of branches. When i have the tree fully
    expanded, then I am getting both horizontal and vertical scrolls.
    If I scroll down using vertical scrollbar and scroll right using
    horizontal scrollbar, I am able to see the tree node labels
    properly. But after that if I scroll up then the nodes that had got
    hidden due to the previous down scroll appear cut off.. the label
    is half way erased.

    Hi everybody,
    I am getting a display problem with tree control. The tree
    control has a fixed height and width, and has quite a few nodes
    with different level of branches. When i have the tree fully
    expanded, then I am getting both horizontal and vertical scrolls.
    If I scroll down using vertical scrollbar and scroll right using
    horizontal scrollbar, I am able to see the tree node labels
    properly. But after that if I scroll up then the nodes that had got
    hidden due to the previous down scroll appear cut off.. the label
    is half way erased.

  • Tree control w/ custom objects...

    I have a Tree control in which i put custom objects. It works
    well, but now i want to start adding custom icons, or removing the
    icons altogether, for it's nodes. How do i do this? Do i need to
    add some property to my custom object nodes? I appreciate any
    info!

    "peteandrus" <[email protected]> wrote in
    message
    news:glsu6c$pfm$[email protected]..
    >i am mostly concerned, for now, about having no icon. I
    tried passing
    >'null' back from my iconFunction, but it blew up on me.
    Any suggestions
    >about how to go about this? thanks
    try this (pseudocode, not tested)
    //this is a 1 px transparent png
    [Embed ('images/icons/nullIcon.png')]
    private var nullIcon:Class;
    [Embed ('images/icons/yourIcon.png')]
    private var yourIcon:Class;
    private function setIcon(data:Object):Class {
    if (data.something) {
    return yourIcon;
    return nullIcon;
    HTH;
    Amy

  • Displaying icons in tree view control

    Hi all
            i am trying to display  icons in my tree view control.I am using beow code but i am not getting the ouput.Please help me.
    Type-pools : fibs,stree , ICON.
    data : t_node type snodetext.
    data : node_tab like t_node occurs 0 with header line,
           it_icon_id type icon-id.
    clear : node_tab, node_tab[].
    select single id from icon into it_icon_id
           where name = 'ICON_CUSTOMER'.
    node_tab-type = 'T'.
    node_tab-name = 'Earth'.
    node_tab-tlevel = '01'.
    node_tab-nlength = '5'.
    node_tab-color = '4'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 3.
    node_tab-NODEICON = it_icon_id.
    append node_tab.
    clear node_tab.
    node_tab-type = 'P'.
    node_tab-name = 'Europe'.
    node_tab-tlevel = '02'.
    node_tab-nlength = '6'.
    node_tab-color = '1'.
    node_tab-text = 'Hello'.
    node_tab-tlength ='5'.
    node_tab-tcolor = 4.
    node_tab-NODEICON = it_icon_id.
    append node_tab.
    clear node_tab.
    CALL FUNCTION 'RS_TREE_CONSTRUCT'
    EXPORTING
      INSERT_ID                = '000000'
      RELATIONSHIP             = ' '
      LOG                      =
      TABLES
        NODETAB                  = node_tab
    EXCEPTIONS
      TREE_FAILURE             = 1
      ID_NOT_FOUND             = 2
      WRONG_RELATIONSHIP       = 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.
      DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
      DATA: wa_type TYPE stree_ctl_type_mapping.
      CLEAR: type_mapping[].
        wa_type-type = 'A'.
        wa_type-icon = '@A0@'.
        APPEND wa_type TO type_mapping.
    CALL FUNCTION 'RS_TREE_CONTROL_PREPARE'
    EXPORTING
        CONTROL_PATTERN             = 'PH'
        MULTIPLE_SELECTION          = 'X'
         TYPE_MAPPING                = type_mapping.
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
    EXPORTING
    LAYOUT_MODE                     = ' '
      USE_CONTROL                     = STREE_USE_LIST.
    Thank you.
    Regards
    Giri.

    Here is another option using <ICON> include,
    *& Report  ZKB_TREE_EXAMPLE
    REPORT  zkb_tree_example.
    INCLUDE <icon>.
    TYPES: BEGIN OF t_sbook,
            customid TYPE sbook-customid,
            fldate TYPE sbook-fldate,
            bookid TYPE sbook-bookid,
          END OF t_sbook.
    DATA: i_sbook TYPE TABLE OF t_sbook,
          w_sbook TYPE t_sbook.
    SELECT-OPTIONS: s_custid FOR w_sbook-customid.
    DATA: o_custom_container  TYPE REF TO cl_gui_custom_container,
          o_tree              TYPE REF TO cl_gui_simple_tree.
    TYPES: t_node_table LIKE TABLE OF trstree.
    DATA: i_node TYPE t_node_table,
          w_node TYPE LINE OF t_node_table.
    START-OF-SELECTION.
      CALL SCREEN 9000.
    *&      Module  status_9000  OUTPUT
          text
    MODULE status_9000 OUTPUT.
      SET PF-STATUS '9000'.
    ENDMODULE.                 " status_9000  OUTPUT
    *&      Module  user_command_9000  INPUT
          text
    MODULE user_command_9000 INPUT.
      CASE sy-ucomm .
        WHEN 'BACK' OR 'EXIT'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " user_command_9000  INPUT
    *&      Module  init_9000  OUTPUT
          text
    MODULE init_9000 OUTPUT.
      DATA: lw_sbook TYPE t_sbook.
      SELECT customid fldate bookid FROM sbook
             INTO TABLE i_sbook WHERE customid IN s_custid.
      SORT i_sbook BY customid ASCENDING.
      CREATE OBJECT o_custom_container
           EXPORTING
                container_name              = 'TREE'
           EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Creating Container' TYPE 'E'.
      ENDIF.
      CREATE OBJECT o_tree
           EXPORTING
               parent                      = o_custom_container
               node_selection_mode         =
                                 cl_gui_simple_tree=>node_sel_mode_single
           EXCEPTIONS
               lifetime_error              = 1
               cntl_system_error           = 2
               create_error                = 3
               failed                      = 4
               illegal_node_selection_mode = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Creating Tree' TYPE 'E'.
      ENDIF.
    Add ROOT Folder
      CLEAR w_node.
      w_node-node_key  = 'ROOT'.
      w_node-text      = 'Root'.
      w_node-isfolder  = 'X'.
      APPEND w_node TO i_node.
      CLEAR lw_sbook .
      LOOP AT  i_sbook INTO w_sbook.
        IF lw_sbook-customid NE w_sbook-customid.
          lw_sbook-customid = w_sbook-customid.
          CLEAR w_node.
          w_node-node_key  = w_sbook-customid.
          w_node-text      = w_sbook-customid.
          w_node-relatkey  = 'ROOT'.
          w_node-relatship = cl_gui_simple_tree=>relat_last_child.
          w_node-isfolder  = 'X'.
          APPEND w_node TO i_node.
        ENDIF.
        CLEAR w_node.
        w_node-node_key  = w_sbook-bookid.
        w_node-relatkey  = w_sbook-customid.
        w_node-relatship = cl_gui_simple_tree=>relat_last_child.
        w_node-text      = w_sbook-bookid.
    <b>    w_node-n_image = icon_customer.</b>
        APPEND w_node TO i_node.
      ENDLOOP.
      CALL METHOD o_tree->add_nodes
        EXPORTING
          table_structure_name           = 'TRSTREE'
          node_table                     = i_node
        EXCEPTIONS
          failed                         = 1
          error_in_node_table            = 2
          dp_error                       = 3
          table_structure_name_not_found = 4
          OTHERS                         = 5.
      IF sy-subrc <> 0.
        MESSAGE 'Error Adding Node to Tree' TYPE 'E'.
      ENDIF.
    Expand tree
      CALL METHOD o_tree->expand_root_nodes
        EXPORTING
          level_count    = 2
          expand_subtree = ' '
        EXCEPTIONS
          OTHERS         = 1.
      IF sy-subrc <> 0.
        MESSAGE 'Error Expanding Tree' TYPE 'E'.
      ENDIF.
    ENDMODULE.                 " init_9000  OUTPUT
    Regards
    Kathirvel

  • 30EA1 /2.*: Double-clicking objects in the navigator tree

    Hi,
    There is an inconsistency in double-clicking objects in the navigator tree:
    When Preferences - Database - ObjectViewer - Open Objects on Single Click is checked, double-clicking e.g. a table in the navigator will still open it the same way as single-clicking it.
    However, when Preferences - Database - ObjectViewer - Open Objects on Single Click is not checked, double-clicking the table in the navigator will open it, and expand the columns. The latter is quite irritating, especially on large tables.
    Can this be bugged, so double-clicking the table in the navigator will just open it?
    Thanks,
    K.

    The node is expanded on double click irrespective of what the preferenceIs this a typo or does it really expand always for you? For me it only expands with "single click objects" disabled.
    windows explorer also does the sameYes, and I'd even say that's the desired behaviour, especially since it's the only action taken.
    Common sense and standards are against taking 2 different actions at the same time. One should override the other.
    Ideally, double click with "single click objects" disabled would just open the object, and double click with "single click objects" enabled could expand the node as in the Windows Explorer (but doesn't have to).
    So that's almost completely the other way around as we get it now.
    Thanks,
    K.

  • 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.

  • Dynamic Object for Checkbox in HTMLB control

    Hi all,
    I want to create dynamic object for Checkbox in HTMLB control.
    I have created dynamic check box in JSP using JSPDynpage. I can select multiple values in the list of checkbox.After clicking the submit button , I have to read the value of checkbox.  For this first i want to create the object for checkbox in controller.
    How can i create the dynamic object?
    Help me in this regard.
    Thanks & Regards
    Hemalatha J

    Krish
      Will this link helps you ????
      <a href="http://help.sap.com/saphelp_nw04/helpdata/en/7d/9b0e41a346ef6fe10000000a1550b0/frameset.htm">Check Box</a>
    Thanks
    Jack
    Allot points if it helps

  • 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

  • GRR3 - 6PP1-001 - Object display

    Hi,
    when runnig report with transaction GRR3, library 6P3, report 6PP1-001 the objects are displayed in internal format (f.e. PD00001539).
    Running the same report with transaction S_ALR_87013542 the objects are displayed in external format (f.e. BP/203004148).
    Is it possible to change the object display in external format when running the report with transaction GRR3?
    Thank you.
    Regards,
    Vela

    Hi
    Try creating a transaction for the report.  Go to SE93 and obtain help from the BASIS people.  At the bottom of the screen where it says:
    Name of screen field - key in the following:
    D_SREP0VARI-REPORTTYPE                    RW
    D_SREP0VARI-REPORT                          xxxx  (REPORT GROUP NAME)                  
    D_SREP0VARI-EXDREPORT                     BLANK
    D_SREP0VARI-VARIANT                        IF REQUIRED
    Hope you get what you need.
    Kind regards
    Dawn

  • Binding huge object to the jndi tree.

    Hi we are loading all the master tables in to objects at the app server startup (SUN ONE 7) and then binding the whole object to the jndi tree. All the tables data in text files comes to about 5 MB and the serilized object with data to about 8 MB. But when the app server tries to bind the object the app server process consumes over 500MB of ram and gives OutOfmemoryError as the total ram is 512MB. why is it consuming so much memory. It does bind an object of about 5 MB but when trying to lookup subsequent to the first lookup it fails. Is this a bug or what??? the same thing works perfectly with Weblogic and Websphere and also Weblogic is very efficient in memory consumption and response time is amazing. For a 5 MB object the lookup takes about 5Secs in Weblogic and about 15Mins in Sun One. We might have to drop the Sun One App Srv and go for Weblogic though we dont want. This same thing is working with about 4MB object in Sun One but takes about 45 Mins to 1 Hour to finish the serialization etc for jndi .Kindly provide some guidance.Thanks in advance.

    True. At the end I configured the value as a "server property". The cool thing about configuring the jndi tree is that it is replicated in a cluster.
    Obviously the values that I inserted affected all the applications, like the url of our SOA server.

  • Universe Objects Displayed Via Live Office

    Post Author: Natali
    CA Forum: Xcelsius and Live Office
    Universe Objects Displayed Via Live Office have different order list than these same Objects are in Webi
    Is there known resolution?
    Thank you
    Natali

    Hi Gloria,
    I had a look at this in XI release 3.0 and received the same issue. The only way I could get this to work was to use the FormatNumber() method. This returns the value as a string, which live office represents with the trailing 0.
    So if the cell value was 12345.6, then FormatNumber([my cell]; "#,##0.00") will display 12345.60. This will display correctly in Excel (except that it is justified as text) when brought in by live office.
    This more of a work around than a fix, so you may want to raise a case.
    Regards
    Alan

  • Objects Display in Timeline but not in Preview

    Heya,
    I'm trying to get a couple of colored ovals to appear over screenshots in Captivate 5.5.  If I move the Timeline bar, the objects display with the correct timing and effects.  However, when I attempt any type of preview (next 5, from this, web, project), none of the objects appear. project), none of the objects appear.  I would love to get some help.  Thanks! 

    Hi there
    Looks like you have a button pausing the slide before the ovals begin to show.
    Click image for larger view.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • 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 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

Maybe you are looking for