Tree structer

Hi,
I am working on tree structer in flex.
How can i expand the tree on clicking on label(not imge triagle ie's default property i kinow),is there any way setting attrubutes.....
please advice
Thanks in Advanced..

Hi,
Please refer this tutorial,
http://blog.flexexamples.com/2008/04/05/opening-branches-by-clicking-rows-in-a-tree-contro l-in-flex/

Similar Messages

  • Arch install on Imac G5-SOLVED

    Trying to install Arch on a G5-Imac.CD boots normally but when trying to start the installer it gives an "Invalid memory access at SRR0 and SRR1 (with big numbers)"
    Any idea what is going on here?
    ARCHPPC finally running on 64-bit with 32-bit userland
    Last edited by mianka (2010-04-09 15:41:22)

    It gets the yaboot prompt,as far as I can see the kernel boots (on a white characters on black screen) then the colors invert with following messages:
    done
    found display etc; etc ...done
    copying OF device tree...
    building dt strings...
    building dt sttructure ...
    Device tree strings 0x02fcc000 -> 0x02fcd4e0
    Device tree struct  0x02fce000 -> 0x02fd8000
    Callind quiesce...
    DO-QUIESCE finishedreturning from prom-init
    Invalid memory access at   %SRR0:  00000000.0140399c  %SRR1:    10000000.00083030
    ok
    0 > _
    END OF THE MESSAGE AS SEEN ONSCREEN
    At this prompt it is impossible to give any command.
    Hope this can help you.
    So long.

  • Splitter Problem - ALV Grid not refreshed when selected another item

    Hi Experts!!
    I have a container on screen 100 which has to be split into 3 areas. Left area ->tree, Right top area -alv grid and bottom also alv grid. I created the program without splitter and it was working fine. After I added this splitter, I see that in ALV grid, the data is not being refreshed. When double clicked on an item in tree struct, ALV grid (CL_SALV_TABLE) to be shown.. Firstly it's fine but when I double click on another item, it's not refreshing the data but is showing the same previous data.
    I have searched existing posts and implemented, but no luck.
    PFB my code:
    * In PBO of screen 100
      CREATE OBJECT go_cc_area1
        EXPORTING
          container_name              = 'CC_AREA1'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
        MESSAGE e025 WITH sy-subrc.
      ENDIF.
      CREATE OBJECT go_splitter
        EXPORTING
          parent        = go_cc_area1
          orientation   = 1              "Vertical split
          sash_position = 40
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc <> 0.
      ENDIF.
      go_container_tree  = go_splitter->top_left_container.
      go_container_2 = go_splitter->bottom_right_container.
      CREATE OBJECT go_splitter_2
        EXPORTING
          parent        = go_container_2
          orientation   = 0              "Horizontal split
          sash_position = 40
        EXCEPTIONS
          OTHERS        = 1.
      IF sy-subrc <> 0.
      ENDIF.
      go_cc_area2 = go_splitter_2->top_left_container.
      go_cc_area3 = go_splitter_2->bottom_right_container.
      CREATE OBJECT go_tree
        EXPORTING
          i_parent                    = go_container_tree
          i_node_selection_mode       = cl_gui_column_tree=>node_sel_mode_single
          i_item_selection            = gc_x
          i_no_html_header            = gc_x
          i_no_toolbar                = space
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          illegal_node_selection_mode = 5
          failed                      = 6
          illegal_column_name         = 7.
        CALL METHOD go_tree->set_table_for_first_display
          EXPORTING
            i_background_id = space
            is_layout       = gs_layout
          CHANGING
            it_sort         = gt_sort
            it_outtab       = gt_tree_output
            it_fieldcatalog = gt_fieldcat_tree.
        CALL METHOD go_tree->expand_tree
          EXPORTING
            i_level = 2.
    * End - PBO 100
    *       CLASS lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS: handle_item_double_click
                   FOR EVENT item_double_click OF cl_gui_alv_tree_simple
                   IMPORTING fieldname
                             index_outtab
                             grouplevel.
    ENDCLASS.                    "lcl_tree_event_receiver DEFINITION
    *       CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
      METHOD handle_item_double_click.
          IF go_alv_area2 IS BOUND.
            go_alv_area2->refresh( ).
          ENDIF.
          cl_salv_table=>factory(
            EXPORTING
              list_display   = space
              r_container    = go_cc_area2
            IMPORTING
              r_salv_table = go_alv_area2
            CHANGING
              t_table      = gt_table ).
          go_alv_area2->display( ).
      ENDMETHOD.                    "handle_item_double_click
    ENDCLASS.                    "lcl_tree_event_receiver IMPLEMENTATION
    I am facing the same problem with area 3 as well. Can somebody please help me out.
    Thanks a lot!!
    Edited by: Srinivas Kalluri on Jan 28, 2012 1:39 PM

    Hi All,
    I am still facing this problem. Can somebody please help me out?
    I created a test program wth sflight and spfli tables. Can somebody look into this and tell me where I am going wrong?
    On screen 100 i have one cust container named CC.
    When I test it, it's showing the same refresh problem. But in this test program refresh is atleast happening once.
    REPORT ztest.
    PARAMETERS: p_carrid TYPE sflight-carrid.
    CLASS lcl_tree_event_receiver DEFINITION DEFERRED.
    CONSTANTS: gc_x VALUE 'X'.
    DATA: go_cc_area1 TYPE REF TO cl_gui_custom_container,
          go_tree TYPE REF TO cl_gui_alv_tree_simple,
          go_tree_event_receiver TYPE REF TO lcl_tree_event_receiver,
          go_cc_area2 TYPE REF TO cl_gui_container,
          go_alv_area2 TYPE REF TO cl_salv_table,
          go_cc_area3 TYPE REF TO cl_gui_container,
          go_columns TYPE REF TO cl_salv_columns_table,
          go_cc_editor TYPE REF TO cl_gui_custom_container,
          go_editor TYPE REF TO cl_gui_textedit,
          go_content TYPE REF TO cl_salv_form_element,
          go_container_tree TYPE REF TO cl_gui_container,
          go_container_2 TYPE REF TO cl_gui_container,
          go_splitter TYPE REF TO cl_gui_easy_splitter_container,
          go_splitter_2 TYPE REF TO cl_gui_easy_splitter_container,
          go_cc_comp TYPE REF TO cl_gui_custom_container,
          go_alv_comp TYPE REF TO cl_salv_table.
    DATA: gt_sflight TYPE TABLE OF sflight,
          gt_data TYPE TABLE OF spfli,
          gt_fieldcat TYPE lvc_t_fcat,
          gt_sort TYPE lvc_t_sort,
          gs_sflight TYPE sflight,
          gs_layout TYPE lvc_s_layo.
    *       CLASS lcl_tree_event_receiver DEFINITION
    CLASS lcl_tree_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS: handle_item_double_click
                   FOR EVENT item_double_click OF cl_gui_alv_tree_simple
                   IMPORTING fieldname
                             index_outtab
                             grouplevel.
    ENDCLASS.                    "lcl_tree_event_receiver DEFINITION
    *       CLASS lcl_tree_event_receiver IMPLEMENTATION
    CLASS lcl_tree_event_receiver IMPLEMENTATION.
      METHOD handle_item_double_click.
        READ TABLE gt_sflight INTO gs_sflight INDEX index_outtab.
        IF sy-subrc EQ 0.
          SELECT * FROM spfli INTO TABLE gt_data WHERE connid = gs_sflight-connid.
          IF go_alv_area2 IS BOUND.
            go_alv_area2->refresh( ).
            cl_gui_cfw=>flush( ).
          ENDIF.
          cl_salv_table=>factory(
            EXPORTING
              r_container    = go_cc_area2
            IMPORTING
              r_salv_table = go_alv_area2
            CHANGING
              t_table      = gt_data ).
          go_alv_area2->display( ).
        ENDIF.
      ENDMETHOD.                    "handle_item_double_click
    ENDCLASS.                    "lcl_tree_event_receiver IMPLEMENTATION
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MAIN'.
    *  SET TITLEBAR 'xxx'.
      CREATE OBJECT go_cc_area1
        EXPORTING
          container_name              = 'CC'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e01.
      ENDIF.
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_cc_area1
          orientation       = 1              "Vertical split
          sash_position     = 25
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e02.
      ENDIF.
      go_container_tree  = go_splitter->top_left_container.
      go_container_2 = go_splitter->bottom_right_container.
      CREATE OBJECT go_splitter_2
        EXPORTING
          parent            = go_container_2
          orientation       = 0              "Horizontal split
          sash_position     = 40
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e02.
      ENDIF.
      go_cc_area2 = go_splitter_2->top_left_container.
      CREATE OBJECT go_tree
        EXPORTING
          i_parent                    = go_container_tree
          i_node_selection_mode       = cl_gui_column_tree=>node_sel_mode_single
          i_item_selection            = gc_x
          i_no_html_header            = gc_x
          i_no_toolbar                = space
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          illegal_node_selection_mode = 5
          failed                      = 6
          illegal_column_name         = 7.
      IF sy-subrc <> 0.
    *    MESSAGE e025 WITH sy-subrc text-e03.
      ENDIF.
      SELECT * FROM sflight INTO TABLE gt_sflight WHERE carrid EQ p_carrid.
        CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
          EXPORTING
            i_structure_name       = 'SFLIGHT'
            i_bypassing_buffer     = gc_x
          CHANGING
            ct_fieldcat            = gt_fieldcat
          EXCEPTIONS
            inconsistent_interface = 1
            program_error          = 2
            OTHERS                 = 3.
        IF sy-subrc <> 0.
    *      MESSAGE e025 WITH sy-subrc text-e05.
        ENDIF.
        DATA: ls_fieldcatalog TYPE lvc_s_fcat.
        LOOP AT gt_fieldcat INTO ls_fieldcatalog.
          ls_fieldcatalog-col_opt = gc_x.
          CASE ls_fieldcatalog-fieldname.
            WHEN 'CARRID'.
              ls_fieldcatalog-no_out = gc_x.
            WHEN 'CONNID'.
              ls_fieldcatalog-no_out = gc_x.
          ENDCASE.
          MODIFY gt_fieldcat FROM ls_fieldcatalog.
          CLEAR ls_fieldcatalog.
        ENDLOOP.
        DATA: ls_sort TYPE lvc_s_sort.
        ls_sort-spos = 1.
        ls_sort-fieldname = 'CARRID'.
        ls_sort-up = gc_x.
        APPEND ls_sort TO gt_sort.
        ls_sort-spos = 2.
        ls_sort-fieldname = 'CONNID'.
        ls_sort-up = gc_x.
        APPEND ls_sort TO gt_sort.
        DATA: lt_events TYPE cntl_simple_events,
              lo_l_event TYPE cntl_simple_event.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_item_double_click.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_button_click.
        APPEND lo_l_event TO lt_events.
        lo_l_event-eventid = cl_gui_column_tree=>eventid_node_double_click.
        APPEND lo_l_event TO lt_events.
        CALL METHOD go_tree->set_registered_events
          EXPORTING
            events                    = lt_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3.
    * Set Handler
        CREATE OBJECT go_tree_event_receiver.
        SET HANDLER go_tree_event_receiver->handle_item_double_click FOR go_tree.
        CALL METHOD go_tree->set_table_for_first_display
          EXPORTING
            i_background_id = space
            is_layout       = gs_layout
          CHANGING
            it_sort         = gt_sort
            it_outtab       = gt_sflight
            it_fieldcatalog = gt_fieldcat.
        CALL METHOD go_tree->expand_tree
          EXPORTING
            i_level = 2.
        IF NOT gt_sflight[] IS INITIAL.
          CALL METHOD go_tree->set_top_node
            EXPORTING
              i_index_outtab = 0.
        ENDIF.
    * Send data to frontend.
        CALL METHOD go_tree->frontend_update.
      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 OTHERS.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Edited by: Srinivas Kalluri on Jan 31, 2012 4:49 PM

  • How is build an index ?

    Hi
    I know an index is default build as a B-Tree struct.
    I would just like to know where are rowid and values in this
    tree. Could anyone give me a sample table data, and draw the
    corresponding index ? Either can anybody tell me where i would
    find that ?
    Thanx.
    Sylvain Fauvel
    [email protected]

    Sylvain,
    Here is the information on indexes http://download-
    west.oracle.com/otndoc/oracle9i/901_doc/server.901/a88856/c11sche
    m.htm#3239. Is this what you are looking for?
    Regards,
    Geoff
    Hi
    I know an index is default build as a B-Tree struct.
    I would just like to know where are rowid and values in this
    tree. Could anyone give me a sample table data, and draw the
    corresponding index ? Either can anybody tell me where i would
    find that ?
    Thanx.
    Sylvain Fauvel
    [email protected]

  • Why not support tree/shuttle layers for Structs/JSP in jheadstart 10.1.2.0.

    Why not support tree/shuttle layers for Structs/JSP in jheadstart 10.1.2.0.
    I want make tree style and shuttle style with Structs/JSP(jheadstart 10.1.2.0) in my project.
    Can you help me.
    Thanks for your help.

    UIX provides tree and shuttle components that generate all the complex javascript required for these UI component.
    We have no plans to create similar javascript ourselves so we can generate this with JSP. The future strategy for JHeadstart will be based on JSF / ADF Faces where we leverage UI components that have this functionality built-in, like UIX has today. With the JSF standard out there, we expect lots of sophisticated new UI components to come out, built by dhtml/javascript/ajax experts (which we are not).
    Our focus (and core competency) is on generating applications by wiring together these sophisticated UI components, and not so much on building new UI components.
    If you want to build this today using JSP I suggest you do some shopping on the internet, you wll probably find some sample code for trees and shuttles.
    Steven Davelaar,
    JHeadstart Team.

  • How to display an xml file contents in jsp as tree view

    hi,
    Iam trying to read an xml file and display the structure in jsp as tree view, can any one help me

    Use a [XML or DOM parser|http://java-source.net/open-source/xml-parsers] to read a XML file into a tree structure of Java objects.
    Use the [Collections API|http://java.sun.com/docs/books/tutorial/collections/index.html] to get hold of the relevant elements in a tree structure.
    Use JSTL´s [c:forEach|http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html] tag to iterate over a Collection in JSP.
    Use HTML´s [<ul>/<li>|http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.2] or [<dl>/<dt>/<dd>|http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.3] tags to represent a tree in HTML.

  • How to print tree layout in Sun?

    We are in the process of switching from a Sun box to a Windows 2003 box. I need to know how to print the tree layout in Sun so I can properly map paths and directories.
    Thanks

    Hello.
    If you are looking for a command similar to "tree" in DOS/Windows: I do not know if there is an equivalent but I wrote a program to do this myself. The output is not very good yet.
    #include <stdio.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <dirent.h>
    void printtree(char *dname,int lvl,dev_t dev)
        struct stat st;
        struct dirent *dnt;
        static char buf[500];
        DIR *d;
        int i,l,m;
        l=strlen(dname);
        if(!dev)
            stat(dname,&st);
            dev=st.st_dev;
        d=opendir(dname);
        if(!d) return;
        dname[ l ]='/';
        while((dnt=readdir(d))!=NULL)
            if(strcmp(dnt->d_name,".") && strcmp(dnt->d_name,".."))
            m=0;
            strcpy(dname+l+1,dnt->d_name);
            lstat(dname,&st);
            if(S_ISLNK(st.st_mode))
                stat(dname,&st);
                if(S_ISDIR(st.st_mode)) m=1;
            else if(S_ISDIR(st.st_mode)) m=2;
            if(m)
                for(i=0;i<lvl;i++) printf("|   ");
                printf("+ %s",dnt->d_name);
                if(m==1)
                    i=readlink(dname,buf,sizeof(buf)-1);
                    if(i<0) printf(" <unknown symlink>");
                    else
                        buf[ i ]=0;
                        printf(" <symlink to %s>\n",buf);
                else if(st.st_dev!=dev)
                    printf(" <mount point>\n");
                else
                    printf("\n");
                    printtree(dname,lvl+1,dev);
        closedir(d);
        dname[ l ]=0;
    main(int argc,char **argv)
        static char a[500];
        strcpy(a,(argc>1)?(argv[1]):".");
        printtree(a,0,0);
        return 0;
    }I hope this helps.
    Martin

  • MSS ECM new column in Organization unit Tree structure

    Hi All
    Requirement is to add aditional column in in Selection Screen of ECM, when user selects dropdown value "Employee Selection by Organization Unit".
    Currently i get only Tree Structure of org unit.  Need to add Custom (or columns if provided by SAP ) in Org unit level.
    Thanks in advance.
    Regards,
    Chinmaya

    Employee search this is possible but not in Team  calendar
    In MSS 1.0 under employee information we have three pages:General
    Information, Compensation Information and Personnel Development .
    All these pages have different employee search iview.
    Basically employee search iview(properties) is responsible for display
    of Organization Hierarchy as table or tree.
    In employee search iview we have iview property "Organizational struct-
    ure with list display in navigation area" Sap.xss.tmv.navlistorgviews.
    This property enables you to define the navigation objects for an
    organizational structure view are to be displayed in a
    table as opposed to a tree hierarchy. In the standard system, navigation
    objects are displayed in a tree structure.
    You can enter the following organizational structure views:
    - Organizational structure views with a navigation area that belong to
    the organizational structure view group you defined with the property
    sap.xss.tmv.orgviewgroup. (Group of Organizational structure views)
    - Organizational structure view you define with the property sap.xss.tmv
    .orgview(Individual organizational structure view) provided it has
    navigation area.
    For e.g.,
    Let say, you would like to display maintain position requirements,
    navigation objects as table.
    Let say in backend you had defined following Organization structure
    views:
    MSS_TMV_EE_ORG1#Employees from Organizational Units
    MSS_TMV_EE_ORG2#Employees from Organizational Structure
    From Content administration ->Portal content ->#. Choose
    Employee Search iview (for compensation information).
    Now in the iview property "Organizational structure views with list
    display in navigation area"  maintain MSS_TMV_EE_ORG1,MSS_TMV_EE_ORG2
    Now for all cases you will get navigation objects as table display.

  • Traverse A Nested Struct

    Any thoughts on the quickest way to the last struct in a
    nested struct without knowing the keys or how deep it's nested? And
    of course it could branch much like trying to traverse a
    tree.

    I wasn't looking for an alphabetical list, just trying to get
    to the inner most nested struct the quickest. In you example, how
    would I get the value of employee.phone.office.ext without
    previousley knowing that phone.office.ext existed and I only know
    about employee. I could iterate over it with some type of iterator
    hasNext(), but was wondering if there was a quicker way.
    <cfset employee.name.first = "Mary">
    <cfset employee.name.last = "Smith">
    <cfset employee.position = "Boss">
    <cfset employee.phone.home = "111-2222-33333">
    <cfset employee.phone.office.ext = "444">
    <cfset employee.phone.office.number>

  • Array of Structs in cftree

    Hi,
    I am using an array of structs to populate the data in a cftree and cfloop query to fill the structs, this worked well initially, but as the data is increasing, it gets slower and slower, is there a solution for this ?
    <cfcomponent name="treeComp">
    <cffunction name=mytree>
    <cfargument name="path" required="Yes">
    <cfargument name="value" required="Yes">
         <cfset result = arrayNew(1)>
         <cfquery datasource="source" name="entries">
              SELECT value, name FROM data
         </cfquery>
         <cfloop query="entries">
                   <cfset item=StructNew()>
                   <cfset item.value=entries.value>
                   <cfset item.display=entries.name>
                   <cfset arrayappend(result,item)>
         </cfloop>
         <cfreturn result>
    </cffunction>
    </cfcomponent>
    tree.cfm
    <cfform>
    <cftree name="tree" format="html">
         <cftreeitem bind="cfc:treeComp.mytree({cftreeItemPath},{cftreeItemValue})">
    </cftree>
    </cfform>

    Hi Dan,
    thank you for the suggestion, but in this case, I have the value and the display fields that need to be stored, if I just loop over a query, I do not get the desired results. can you point me to the example you have seen ?
    Thanks

  • Amfphp and flex - parsing a struct

    I am using an amfphp service, which I call from Flex. The
    service is embedded in a drupal site, and it calls a function named
    getTree() which returns a php "struct"
    I can pull out vars from the struct and show them in a
    DataGrid (in columns), but since I don't know how deep the struct's
    hierarchy is, what I really need is a way to iterate through it and
    load all the items into something I can deal with (an
    ArrayCollection???)
    1. what should I use to store the data (ArrayCollection,
    Array, etc.) and why?
    2. what code will repeatedly iterate through a tree hierarchy
    until it finds all items?
    much thx,
    -p

    "LuigiL" <[email protected]> wrote in
    message
    news:[email protected]...
    > That would depend an the struct that is returned. I'm
    getting arrays
    > returned
    > containing objects, see attached dump from
    > trace(ObjectUtil.toString(event.result)); in a result
    handler on the
    > RemoteObject.
    >
    > I'm parsing the result into an Array and somewhere else
    in the program I
    > use
    > this array to create an ArrayCollection to serve as a
    dataprovider for a
    > list.
    >
    >
    > private function
    onCategoriesResult(event:ResultEvent):void
    > {
    > trace(ObjectUtil.toString(event.result));
    >
    > if(event.result.length > 0) {
    > for(var i:uint = 0; i < event.result.length; i++) {
    > var category:Category = new Category(event.result
    .product_category_id,
    > event.result.name);
    > _categories.push(category);
    > }
    > broadcastCategoriesLoaded();
    > }
    > }
    >
    > private function broadcastCategoriesLoaded():void
    > {
    > dispatchEvent(new
    Event(RemotingCall.CATEGORY_DATA_LOADED));
    > }
    That's not really recursive. I didn't have time to go into my
    code and look
    anything up earlier this morning, but here's some code that
    recurses XML and
    parses it into custom VO's, MenuContainers. Each
    MenuContainer has a
    children collection that can contain Task VO's (technically
    TaskUID's which
    are Task VO's decorated with IUID) or other MenuContainers:
    private function parseTaskXML(taskXML:XML):void{
    //recursively loads a menu container with task VO's
    //this also loads the singleton TaskManager for use
    //across the app
    _allTasks=getChildrenFromXML(taskXML.children());
    private function
    getChildrenFromXML(childXML:XMLList):ArrayCollection{
    var childObj:*;
    var dateStr:String;
    var theDate:Date;
    var splitDateStr:Array;
    var tmpID:int;
    var tmpDesc:String;
    var tmpRunMode:String
    var resultAC:ArrayCollection = new ArrayCollection();
    for each (var child:XML in childXML){
    switch (child.name().toString()){
    case 'task':
    //parse date info into a true date
    if (child.child('taskDate').length()>0){
    //temporary string with the date in it in the
    //format mm/dd/yyyy
    dateStr=child.child('taskDate')[0].text();
    splitDateStr=dateStr.split('/');
    theDate = new Date(splitDateStr[2], int(splitDateStr[0]) -
    1,
    splitDateStr[1]);
    } else {
    theDate = null;
    /* If the task has its own runmode, use that.
    Otherwise, use the container run mode */
    if (child.child('runMode').length()>0){
    tmpRunMode=child.child('runMode')[0].text();
    } else {
    tmpRunMode = child.parent().attribute('runMode');
    //Alert.show(child.toXMLString(),
    int(child.levelID[0]).toString());
    childObj = new Task(int(child.@id), child.idString,
    int(child.levelID[0]),
    child.desc,
    Task.isCompleteStringToConst(child.isComplete),
    child.isActive == 'true' ? true : false, theDate,
    child.isBookmarked == 'true' ? true : false,
    tmpRunMode);
    taskManager.tasks.addItem(childObj);
    //decorate with IUID to allow easier indexing in
    HierarchicalData
    childObj = new TaskUID(childObj);
    break;
    case 'container':
    childObj = new MenuContainer(int(child.@id), child.@desc,
    child.@runMode);
    //continue recursing until all container children have been
    accounted
    for
    if (child.children().length()>0){
    childObj.children=getChildrenFromXML(child.children());
    break;
    default:
    //default object
    tmpID=0;
    if (child.attribute('id').length()>0){
    tmpID = int(child.@id)
    } else if (child.child('id')){
    tmpID = int(child.id);
    if (child.attribute('desc').length()>0){
    tmpDesc = child.@desc
    } else if (child.child('desc')){
    tmpDesc = child.desc;
    childObj = new Object();
    childObj.id=tmpID;
    childObj.desc = tmpDesc;
    break;
    resultAC.addItem(childObj);
    return resultAC;
    I can't write recursive code off the top of my head--I find
    it takes me a
    while to get me into the mental state where it makes any
    sense at all.
    That's why I had to look it up :-).
    HTH;
    Amy

  • When one pushes the + in a tree, it automatically refreshes the page, how..

    How do you stop this? If someone browses my tree and pushes on the + (expand/contract)it shouldn't refresh the page. Where is this parameter set?
    Peter
    Message was edited by:
    Pete

    Hello,
    Thats standard HTML functionalitywhat your going to need to do if possible is provide a name to the link you just pressed so you can target it then add that name to the end of the link on the tree.
    The destination anchor of a link may be an element within an HTML document. The destination anchor must be given an anchor name and any URI addressing this anchor must include the name as its fragment identifier.
    Destination anchors in HTML documents may be specified either by the A element (naming it with the name attribute), or by any other element (naming with the id attribute).
    http://www.w3.org/TR/REC-html40/struct/links.html
    Carl

  • Problem with trees and memory handling.

    Hi there, I just want to know if, when I create a large binary tree, and I re-"pointed" the root pointer to another node somewhere below in that same tree (say, a terminal node), will the "upper" parts of the tree (starting from the new root node) be removed/deleted from memory? Please explain your answers.
    Thank you.

    f I changed the root to B, will A and its children be
    deleted from memory?If you do root = B, AND if nothing else is referring to A or C or anything else beneath them, then A, C, and all of C's children will become eligible for garbage collection.
    Whether the memory actually gets cleaned up is something you can't really predict or control, but it doesn't really matter. If it's needed, it will get cleaned up. If it's not needed, it may or may not get cleaned up, but your program won't care.
    So, in short, yes, for all intents and purposes, A's, C's, and C's descendants' memory is released when you re-root to B.

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • Follow up Tree Question

    Hey,
    Using the arrows, when I open one tree node, I want other
    tree nodes to close. I saw a sample that sepiroth had done, but I
    don't want to click on the whole bar. I just want to use the arrows
    to expand and contract. Any help would be great. I have attached
    the code

    If you just wish to make a duplicate of one hard drive to another hard drive in the same G5, then do this:
    Clone using Restore Option of Disk Utility
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the second internal drive. Source means the internal startup drive.

Maybe you are looking for

  • Key Figure value in Cube showing with extra zeros

    Loaded data into the cube. When I display the result Key figure values are showing with 2 extra zeroes and Quantity value shaowing with 3 extra zeroes. Original value Price, Quantity, Sales Rev 2     1     2 3     2     6 When display value from cube

  • HP Smart Web Printing installed but no symbol in browser

    I just downloaded HP Smart Web Printing and it apparently installed itself (if I try installing it again I am told that it is already installed). When I try to use it I cannot find any appropriate symbol anywhere on the browser. QUESTION: Is there so

  • Need advice: Arch on Asus UX32VD

    Hello everyone! I'm rather new to Arch Linux (I've been using Ubuntu for a while) and have tried some installs on VirtualBox, and I now feel ready to bring Arch onto a real computer! As I'm gonna buy a new laptop soon (an Asus UX32VD), I thought why

  • Any way to get sRGB IEC61966-2.1 as an export profile?

    Just realized that my exports, destined for Flickr, aren't in the correct color space. Everything looks great on my Mac in safari, but terrible in Firefox or other browsers. ....but, I only see sRGB, ProPhoto and 1998 as choices in LR's export option

  • Character format breaks TOC hypertext

    When I apply a character tag to part of a heading and generate a TOC, the TOC entry will be clickable up to where the character tag has been applied. Further to the right, the hypertext does not work. I have this issue both in the Frame document and