Network UI - JNET - Generic Tree Layout - Collapse Node

Hi,
we are using a generic tree layout in network ui component to display organizational chart.
The problem is that when a node in this organizational chart is collapsed there is empty space left which has been occupied by this node and its child nodes before.
Is there a way to prevent this from happening, for example: during node collapse the chart reorganizes itself
so that there is no unnecessary empty space?
Regards,
Ladislav

Hi,
Following link might be useful for you.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/lw/webdynpro/jnet_jgantt%20developer%20documentation/api/com/sap/jnet/package-summary.html#commands
Regards
Ayyapparaj

Similar Messages

  • ADF Faces af:tree expand/collapse node

    Any help appreciated. Is there a way to specify in the tree model if you want a node expanded or collapsed? I am using the ChildPropertyTreeModel and TreeNodeImpl as the nodes. Can I add an additional property to the Tree Node?
    Thanks

    There isn't anything in the framework that lets you specify tree expansion state in the model. The frameword tries to preserve the abstraction between the model (which should only contain data) and the UI component (which handles expansion state).
    You can build a custom renderer for the tree where you can remember which paths from your model are expanded, and then set the expansion state of the tree programmatically by calling the UIXTree.setTreeState() method. It takes a set of paths, with each path corresponding to a path you want to be expanded.

  • How to change the node's icon in a tree when the node collapse or expand?

    how to change the node's icon in a tree when the node collapse or expand?

    Hi,
    You may need to use custom skin for that.
    -Arun

  • Macking button to expand the tree and collapse tree and another to add node

    macking button to expand the tree and collapse tree and another to add node and saving the changes in the database ( this is problem)
    and finally delete node from database
    so what is proper code for those buttons
    thanks my mail is :
    [email protected]

    Hello,
    Use the ftree package's functions
    code to expand all nodes:
    PROCEDURE explose_tree IS
    node    ftree.node;
    htree   ITEM;
    state   varchar2(30);
    BEGIN
       -- search the tree ID --
       htree := Find_Item('BL_TREE.TREE_1');
        -- search the root --
           node  := Ftree.Find_Tree_Node(htree, '');
        -- expand all nodes --
       WHILE NOT Ftree.ID_NULL(node) LOOP
          state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
          IF state = Ftree.COLLAPSED_NODE THEN
            Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.EXPANDED_NODE);
          END IF;
          node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
       END LOOP;
    END;and to collapse all nodes:
    PROCEDURE Implose_tree IS
       node   ftree.node;
       htree  ITEM;
       state  varchar2(30);
    BEGIN
       -- search the root ID --
       htree := Find_Item('BL_TREE.TREE_1'); 
       -- search the root --
       node  := Ftree.Find_Tree_Node(htree, '');  
       -- Collapse all nodes --
       WHILE NOT ftree.ID_NULL(node) LOOP
         state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
         IF state = Ftree.EXPANDED_NODE THEN
          Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.COLLAPSED_NODE);
         END IF;
        node := Ftree.Find_Tree_Node(htree, '', Ftree.FIND_NEXT,Ftree.NODE_LABEL, '', node);
       END LOOP;
    END; Francois

  • Let Auto-Map in Transform work with COLLAPSED nodes/tags ?

    When I open for a "Transform" activity the mapping editor and drag one complextype from one side to another on the other side then Auto-Mapping only works if the node/tag trees on both elements/sides are full expanded.
    If they are collapsed then auto-map does (currently) not work.
    Is there a way (option) to tell JDeveloper to look INSIDE collapsed nodes/trees and to auto-map the elements anyway?
    Peter

    Hi,
    Have you checked if the "outside" ACL is getting hitcounts?
    Could also be usefull to check the logs through ASDM monitoring and see what happens when you attempt the connection.
    The NAT configurations seem correct to me.
    Have you tried to test the connections by briefly allowing all traffic from outside? (Since the only place people could connect to is the forwarded ports.) Have you tried to add the current DHCP IP of "outside" to the ACL and see if it makes any difference?
    If no configuration change makes a difference I would suggest using the ASDM monitoring to take logs of what happens.
    You could also use the "packet-tracer" command
    Format is
    packet-tracer input outside tcp
    And copy/paste the output here.
    - Jouni

  • Is it possible to create a menu structure within iWeb with a so called tree layout? iWeb only provides automatically a horizontal layout

    Is it possible to create a menu structure within iWeb with a so called tree layout? iWeb only provides automatically a horizontal layout

    Not in iWeb itself.
    You have to create these menus yourself. Start here :
         A List Apart: Articles: Suckerfish Dropdowns
    Also, see podcast episode 9 of
         CSS Tricks and Tips
    and then add them to a webpage with the HTML Snippet.
    Or add the menu to the webpage with a JavaScript.
    Here's a sample page :
         http://www.wyodor.net/mfi/roodhout/
         http://www.wyodor.net/mfi/spelling/
         http://www.wyodor.net/mfi/Maaskant/Some_Menus.html
    The how-to-do page are here and here.
    More sample pages on my Made for iPad with iWeb pages.
         http://www.wyodor.net/mfi/
    You may have to learn HTML, CSS, JavaScript, AJAX, DOM and how iWeb creates its pages.

  • 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

  • Custom generic-column layout for entire workspace

    Hi,
    Currently, I use a generic-column layout (XSL-FO) for PDF printing in one of my applications. Is it possible to publish it so that it will be available to all applications in the same workspace? I use Apex 3.2.0.00.27.
    Also, I found that the same layout didn't work in my another Apex 3.0 instance. Is there a bug in terms of PDF printing in Apex 3.0?
    Thanks.
    Andy

    hmmm... i will have to check

  • How to Formate the Font of The Tree's Parent Node ?

    Hello,
    Pls. , how to Formate the Font of The Tree's Parent Node ?
    Other Formatting Aspects..etc.
    Regards,
    Abdetu..

    In ur code is HTREE$ is of type varchar2 or ITEM?
    Give valid parameter for item_name/item_id.
    This code will be usefull to add/change the icon of the node. You can show the 16x16 image (gif, ico based on your forms_home\forms\java\oracle\forms\registry\Registry.dat file) before the tree item's node lebel.
    I tried in this way to get the "Favourites" node label as *"Favourites"* (Bold).
    I make *"Favourites"* as a gif icon (16 x 270) and added it as a node icon. but it shows 16 x 16 of my image.
    So using this code u cannot format the font of the tree's parent node.
    Balaji.

  • Tree Layout  and a Where Clause

    I have built a uix application using Jdev (10.1.2) + Jheadstart (10.1.2). I followed Jheadstart for ADF developer’s guide (10.1.2) for creating a page with a recursive tree, tree layout style and it works well. Now I need to apply a where clause, programmatically, on the view I am using for generating the tree and the problem is that the where clause 'gets lost' on the child view before the page is displayed. How do I fix this?

    rbackmann wrote:
    And the page_id_1 is a field in the table (SORRY EXAMPLE BAD NAMING CONVENTIONS) that IS VARCHAR
    and houses a comma seperated list of page numbers ie 28,29, 30Okay, I was wrong about the field name :(
    Carefully examine the query, expecially the INSTR line. Get the values in both the column and the bind variable and make sure they are what you think they are.
    The example on the other post might have failed because you were equality comparing the column value to '28' when it might have been a csv with commas unless you changed it (something worth trying).
    On 4th look I may (or may not) have something. PAGE_ID_1 is a VARCHAR2, while the 28 you compared it to was a number. Its a long shot, but maybe SQL is trying to convert the csv field to a number, failing to raise an error message where you can find it, and failing for that reason. Try using '28' on the equality test.
    Edited by: riedelme on May 8, 2009 6:03 AM

  • Tree control with Nodes in ALV

    Hi ABAP Gurus,
    I am trying to create tree control with nodes in ALV. I have referred to standard BCALV_TREE* programs but new to OO programming. Not sure as to how I can display my internal table data than the SFLIGHT information in these programs. Can you please let me know how this can be done or if I can use any ALV function modules for the node display.
    thanks,
    Chaitanya

    Maybe you could use this.  Call this VI from a Value Change event of the tree.
    Attachments:
    Check_Tree_Items.vi ‏28 KB

  • Tree Layout

    Hi. I want to make a tree layout. How can i do that?
    I tried to make it by implementing LayoutManager but i did not understand the method addLayoutComponent method
    is this method invoked by container's add method? if so when i call add method of my panel this method is not invoked
    when it is used?

    See java.awt.Container class sources. It has a method
    protected void addImpl(Component comp, Object constraints, int index)where the code is invoked
             if (layoutMgr != null) {
              if (layoutMgr instanceof LayoutManager2) {
                  ((LayoutManager2)layoutMgr).addLayoutComponent(comp, constraints);
              } else if (constraints instanceof String) {
                  layoutMgr.addLayoutComponent((String)constraints, comp);
             }

  • Forms Builder-hierarchical tree(expanding and collapsing nodes)

    hi friends,
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    for instance when_button_pressed:
    tree_control.expand_all(tree_control.v_item_name); //this is for expanding all the nodes in the tree structure
    well, i have an sql statement in my record group which in turn defines the structure of the hierarchical tree.
    Is it possible to just use the codes 'tree_control.expand_all(tree_control.v_item_name);' like that in the when-button-pressed trigger?
    Thanks for any help :)

    Hi
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    Pls have a look here ....
    Hope this helps...
    Regards,
    Amatu Allah.

  • Issue With ADF Tree Expand/Collapse

    Hi All,
    I have a customer who is having issues using the af:tree component on a deployed application. When he tries to expand or collapse a node of the tree, the icon just blinks. This is occurring not only on our application, but also the Oracle ADF Rich Client Demo on http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx. He is using Internet Explorer v7.0.5730.13. As far as I can tell, our browser settings are identical, but I can use the tree without a problem.
    Any ideas as to what the problem could be?
    Thanks,
    Brad

    Unfortunately, Internet Explorer is the only browser that is authorized to run on his computer.
    Do you know of any specific IE settings that would cause the af:tree not to work?

  • DHTML Tree Expand-Collapse ALL buttons

    Hi
    I am using at DHTML Tree (in APEX 3.0.1) as a menu. I am wondering if it is possible to add buttons (or link) to the region which a user can click to expand all or collapse all nodes in the tree.
    I don not want the tree to be expanded or collapsed all the time (as when using the Tree List template)
    Thanks

    Anyone?

Maybe you are looking for

  • Why can I not install Photoshop CS with the original CD and serial number?

    Requires activation but fails to activate even after putting in all the necessary information. Also tried phone activation.

  • My purchased audiobooks not showing in my music app on the ios 6

    I am having a small problem, I recently installed the new ios 6 and last night I sync my iphone 4s and when I unplugged it i noticed my audiobook wasn't there. I went to the imusic app at the bottom of the phone and I can['t find the audiobook tab. I

  • My iPhone pre order experience.

    So after staying up since 3:00am I finally noticed the apple store was also offering the pre order. I had no issues going through the ordering process.  I have two lines on my account only one being eligible for the upgrade. I contacted a verizion re

  • Binary/RAW to PDF

    Hello, I've a RFC returning a PDF form as a table of RAW format data from ABAP side. What is the correct way to show this form in WDJ? I tried several approaches but nothing seems to work. Looks like there is some fundamental error in my approach. Pl

  • How do we get information from an MFR reader and write it into a log file?

    We are working on a project using an MFR 4100 reader with a serial port to read data from RFID tags into an Excel or text file.  So far, when we run our VI, the data from tags shows up fine on the front panel but shows up as garbage in the Excel/text