Expand/Contract Tree Issue

Hi all,
I have a tree, which is a collection of all the pages in my application. I am using 2 level tabs as well. I want my tree to expand only that node page which is currently being clicked from the tab i.e when i click the tab in two level tabs, the page with the current node should open and rest all gets collapsed. Pls help.
With Regards,
Sunil Bhatia

Hi all,
Strange that noone has replied to this forum, anyways can anyone just let me know, is it possible or impossible to do this?
I just want that when a tab gets clicked, then there should be 2 request set in my code i.e CONTRACT, CONTRACT_ALL and EXPAND, TAB_NAME which will open my tree. These are working fine individually, but when i try to set 2 requests simultaneously, it doesnt renders. Pls do help me.
Thanks,
Sunil Bhatia

Similar Messages

  • Tree expand / contract not working when region copied...

    Hi
    I have a tree view region which I want to appear on each relevant page. Simple, thinks I, I'll copy the region from page to page... but when I do this then the expand / contract buttons don't work. If I create a new tree region then paste in the code from the tree region I want to copy all works well...
    Using Apex version 4.0.0.00.46.
    Anybody else seen this?
    Steve

    >
    The existing page zero appears at the top of other pages, containing specific data. This Tree element only appears on the config pages and is on the left hand side of the page.
    >
    You've just caused me to make a discovery that I hadn't noticed in nearly 6 years of APEX use: Page Zero is assigned a page template! I've no idea why this is: I don't think it should; this template will have absolutely no effect on how the application is actually rendered so I therefore think we should ignore it and maybe it will go away...
    Has the presence of a page template on Page Zero influenced your thinking on its use?
    Understand that regions on Page Zero will not be rendered according to the Page Zero template, but according to the page template for the page they are included on. The region Display Points remain constant: if you assign the Tree element to region position 2 on Page Zero, and it's included on pages 6, 7 and 8, then it will appear in region position 2 on pages 6, 7 and 8. However, using page templates and CSS, region position 2 can be in completely different places on the screen on pages 6, 7 and 8 (and even be in different positions on the screen and on a printout from the same page...).
    The other main thing about Page Zero is that the rendering of regions can be controlled conditionally, often using the Current page in Expression 1 condition, where a list of page numbers specifies which pages a region should be included on. So to make your Tree region only appear on Config pages 6, 7 and 8, set its Display Position to Region Position 2, and give it a Current page in Expression 1 condition with Expression 1 set to <tt>6,7,8</tt>. If the "existing page zero" elements appear on every page except 6, 7 and 8 then use the opposite Current Page not in Expression 1 condition...
    Only very simple apps would tend to include all Page Zero regions on other pages in their entirety: most of the time there will be mix'n'match using conditional rendering.
    >
    Which raises yet another question (getting my 2 cents worth here!) - can we conditionally change the position of a region? eg if on app pages 1 thru 5 then page zero is at top. if on pages 6 thru 8 then appears on left side?
    >
    Hope I've managed to explain why that's not how it works?
    (And reflecting on the mysterious presence of a template on Page Zero, I can only think that it has something to do with the Display Point preview pop-up, even though it's entirely useless as a safe guide to where the region will ultimately appear...)

  • Sub-Contracting material Issued to Vendor and balance to be Issud

    Hi,
    Sub-Contracting material Issued to Vendor and balance to be issued against the Sub-contracting Purchase Order.
    Please suggest T.Code for the same.  (Same Like ME2O, but PO number should be an input parameter)
    For example I have Created PO with header Material for 1 quantity which having one child item and qty say 20 numbers, and issued child material to vendor 10 numbers (541) and balance is to be issued to vendor is 10 numbers, now I want a report which gives PO number, Header item with qty, total requirement of qty for the child item with line item number, issued child item with qty and balance to be issued child item with qty.
    Thanks
    Ramesh.G

    Report MB51 is there. Here you have to input your Purchase order number and execute but, it will show only material issued to subcontractor through 541. It will not show the balance quantities.
    And there is no such standard report which will show information how much issued to subcontractor and how much is balance based on Purchase order.
    You can develop a z report with the help of abaper.

  • Expanding/contracting timeline shortcuts. "-" and "+" do not work.

    I have purchased Adobe Premiere Elements 13. One thing I need to do a lot during my project is expand/contract the timeline in Expert view. Everywhere I look online I am directed to using "+" or "-" to do this.
    However, these buttons do not appear to do anything - even in combination with CTRL or ALT. What am I missing?
    thanks
    Ed

    edwardsyvester
    What are your expectations - expand the Timeline or to increase the Track size?
    With your focus on the -+ Zoom Out Zoom In above the Timeline, check out the slider.
    When you first open the project and import to the Expert workspace - default position
    When you move the slider all the way to the right (max)
    And, to the immediate right of the Render button is an icon "Fit to Visible Timeline" (shortcut \) if you need to use that.
    Are you saying that none of that happens when you move the slider to max (Zoom In) to min (Zoom Out)?
    Or are you looking for the Large track size which can be obtained by right clicking near the track name and selecting from the drop
    down menu Track Size...Large? The following is screenshot 1 with the default location for the zoom slider and with Track Size = Large.
    Please review and consider. If the above does not address your situation, then we will go for the deletion of
    the Adobe Premiere Elements Prefs file.
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    13.0
    and in the 13.0 Folder is the Adobe Premiere Elements Prefs file that you delete. If that does not work, then you delete the whole 13.0
    Folder in which the Adobe Premiere Elements Prefs file exists. Make sure that you are not working with hidden folders enabled.
    Looking forward to your results.
    ATR

  • 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

  • 2950 spanning tree issue

    Here is the problem we are having , we have a 2950 hooked to a 6509 hybrid dist box with approx 90 vlans on it . We hook up a new 2950 and we get the following message, Dec 21 19:47:45.116: %SPANTREE_VLAN_SW-2-MAX_INSTANCE: Platform limit of 64 STP instances exceeded. No instance created. Ok , I know about the spanning tree issues with the 2950 only having limited PVST instances . But up at the dist side we have "manually pruned off all but 5 vlans on the trunk feeding this 2950 with the "clear trunk" command . I thought manually pruning off the vlans from the trunk would eliminate this problem , maybe i have a misunderstanding of how this works. Also the message on the 2950 complains about it only having 64 instances of spanning tree yet when you do a "show vtp status it says it supports 250 instances locally so whats up with that , 2950 running 12.1.22EA4 . So I guess I'm asking is there any way around this for the 2950 . Also in client/server mode do you have to manually prune off the vlans on both the server side and the client side ??

    Hello Glen,
    I guess instead of manually pruning the VLANs off the trunk, you could also try and enable VTP pruning globally on the 6509 (set vtp pruning enable). I assume you have the 6509 configured as the VTP server (set vtp mode server) ?
    I am not sure if CatOS and IOS defaults to the same VTP version, can you check this (with 'show vtp domain' for CatOS and 'show vtp status' for the IOS switch) ?
    Also, in a purely IOS environment, manually pruning VLANs off a trunk requires doing that only on the server side, but with a mix of CatOS and IOS, it might have to be done on both sides, you might want to give it a try and use the 'switchport trunk allowed' command on the 2950 as well...
    Regards,
    GP

  • Cs5 actions panel ... single-click it to expand/contract it

    hello;
    I just got cs5 and my actions panel ( as well as all others I think ) require a double-click to expand/contract the panel ... I would prefer a simple single-click ... can I change this behavior somehow??
    thanks.
    Shannon

    I meant there is only solution to contract/expand using the double click. You not able to tackle this to a single click. No feature is there for this.
    Instead use f9 to toggle the visibility

  • Photoshop script for Expand/Contract of Selection

    Hi!
    I need script that will make Expand or Contract Selection for example 1px each time I hit keyboard shortcut. I mean I would like to use this options because I use it very often but I would like without dialog box when PS ask for value of expand/contract. When I will have script for those I could make it by wheel in my Intuos Pro. Now I can't because every time I have dialog box. Thanks in advance for help!
    Regards
    Arek

    cool, thanks, the script works great!
    #target photoshop
    app.bringToFront();
    try {
            // test for active selection
            if (hasSelection(app.activeDocument)) {
                // expand selection
                //app.activeDocument.selection.expand(new UnitValue (100, "px"))   
                // contract selection
                app.activeDocument.selection.contract(new UnitValue (100, "px"))
            else {
                alert ("ERROR: no active selection \n USAGE: the script requires an active selection")
    catch (e) {
            alert ("ERROR: the script did not execute")
    //////////// FUNCTIONS ////////////
    function hasSelection(doc) {
      var res = false;
      var as = doc.activeHistoryState;
      doc.selection.deselect();
      if (as != doc.activeHistoryState) {
        res = true;
        doc.activeHistoryState = as;
        return res;

  • Expand the tree like I want

    A JTree like this:
    0:model
    0.1:jsp1
    0.2:jsp2
    I want to add jsp1's child node-jspchild1,so the tree will turn into:
    0:model
    0.1:jsp1
    0.1.1:jspchild1
    0.2:jsp2
    But when I finished adding,the jsp1 is collapsed,how can I expand the tree to the level of my new node?Thank you.

    tree.expandPath(new TreePath(((DefaultMutableTreeNode)jspchild1.getParent()).getPath()));Denis

  • Tree expand/contract refreshes page

    Hi I'm using APEX version 3.1. I have a question regarding a tree. When I expand or contract the tree, the page will refresh. When that happens all my fields which
    contain freshly entered data will lose that data.
    Is there a simple method to avoid this kind behavior? I can think of a java script which builds the url but I'm hoping for something less complex.
    Kind regards,
    Patrick

    Instead of reloading the page, try submitting it (and not clearing its cache). That should save the item values.

  • Change image on expand/contract of tree table node.

    I have a tree table. If the branch node is expanded show an image of open folder. If the branch node is closed, then show an image of closed folder.
    How can we know whether the node is expanded or collapsed ?
    Any help appreciated !!

    Thanks Umesh for the reply.
    The implementation works well with non-recursive tree.
    My Tree Table is a recursive tree.
    When I try to implement the functionality, the problem I am facing is as follows:
    Only the top level node is refreshed to display the new image. whereas the the child nodes do not get refreshed.
    When i provide with a sysout in the managed bean, the child nodes, transient attribute displays updated value .
    Could you please provide help regarding dis ?

  • Tree Issue Expanding and Collapsing On Same Ids

    Hi All
    This is another problem i am facing in tree.
    Here Last two levels (L,V) are repeated in Org. If there is U1 ....U10 the same L,V level will repeat.
    The problem is if I expand L2 under U2,the L2 Under U3 also Expanding.This happening because of L2 repeating.
    I need to expand only L2 under U2,Dont want expand L2 under U3.
    How can i hold a value if click + sign in tree hirarcy.
    +Org
      +A1
      +A2
        +U1
        +U2
          +L1
          -L2
            -V1
            -V2
        +U3
         -L2
           -V1
           -V2Thanks in advance.
    Edited by: pnr on Dec 1, 2009 1:52 AM
    Edited by: pnr on Dec 8, 2009 10:39 AM

    I think you want mousePressed, not mouseClicked. Here's from the JTree API page:
    final JTree tree = ...;
    MouseListener ml = new MouseAdapter() {
         public void mousePressed(MouseEvent e) {
             int selRow = tree.getRowForLocation(e.getX(), e.getY());
             TreePath selPath = tree.getPathForLocation(e.getX(), e.getY());
             if(selRow != -1) {
                 if(e.getClickCount() == 1) {
                     mySingleClick(selRow, selPath);
                 else if(e.getClickCount() == 2) {
                     myDoubleClick(selRow, selPath);
    tree.addMouseListener(ml);

  • Tree Issue--Data out of order?

    All,
    I suspect this is more of a generic SQL question, but, anyhow, I'm trying to create a tree report of the items in our bills of materials. When I run the page, the tree is empty (not even a root). Trying to figure out what the problem is, I've copied the SQL into Toad and run it; the results seem to be scrambled, which I suspect is why the tree is failing. Here's the query:
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           comp_item_number as title,
           null as icon,
           comp_inventory_item_id as value,
           null as tooltip,
           null as link
    from apex.bom_tree_v
    where organization_id = 126
    start with comp_item_number = 'C70-1039'
    connect by prior comp_inventory_item_id = parent_item_id
    order siblings by comp_item_numberThe query returns 64 rows for my test item, which is correct, but the top-level item (level = 1) is returned as the 10th row (consistently), rather than the first. All of the documentation I've been able to find indicates that the rows should be returned in hierarchical order.
    Anyone have any idea what I'm missing?
    -David

    Good afternoon David,
    Trees in APEX are not even closely populated the same as in Forms. What I did was this:
    <li>Query the top of your tree...
    <li>Do a UNION ALL SELECT for the next level of your tree
    <li> and repeat the UNION ALL SELECT for each indented level of your tree.
    Mine looks something like this:
    select 'A' id,
            null as pid,
            'Table Of Contents' name,
            NULL link,
            'f?p=&APP_ID.:1:&APP_SESSION.:CONTRACT,A' A1,
            'f?p=&APP_ID.:1:&APP_SESSION.:EXPAND,A' A2
       from dual
      union all
    select ltrim(rtrim(to_char(toc_seq_id))) id,
            'A' pid,
            toc_description name,
            'f?p=&APP_ID.:1:&APP_SESSION.:::RP:TOCP:' || toc_seq_id link,
            'f?p=&APP_ID.:1:&APP_SESSION.:CONTRACT,' || TO_CHAR(toc_seq_id) ||'::RP:TOCP:' || TO_CHAR(toc_seq_id) A1,
            'f?p=&APP_ID.:1:&APP_SESSION.:EXPAND,' || TO_CHAR(toc_seq_id) ||'::RP:TOCP:' || TO_CHAR(toc_seq_id) A2
       from my_toc
      where state_id = :P1_STATE
        and toc_level = 1
        and (toc_seq_id < 9
          or  (toc_seq_id < 10 and :P1_User_Type = 2)
          or  (toc_seq_id < 10 and :P1_CUSTOM_USER = 'Y')
          or  (toc_seq_id < 15 and :P1_User_Type > 2 and :P1_CUSTOM_USER != 'Y'))
    union all
    select ltrim(rtrim(toc_seq_id)) id,
            ltrim(rtrim(toc_parent)) pid,
            toc_description name,
            'f?p=&APP_ID.:' || ltrim(rtrim(to_char((toc_parent+2)))) || ':&APP_SESSION.:::RP:P1_ENTRY_ID:' || toc_entry_id link,
            null a1,
            null a2
       from my_toc
      where state_id = :P1_STATE
        and toc_level = 2
        and (toc_parent < 9
          or (toc_parent = 9 and :P1_User_Type = 2)
          or  (toc_seq_id < 10 and :P1_CUSTOM_USER = 'Y')
          or  (toc_seq_id < 15 and :P1_User_Type > 2 and :P1_CUSTOM_USER != 'Y'))
    order by 3,1The code that looks like this:
    'f?p=&APP_ID.:' || ltrim(rtrim(to_char((toc_parent+2)))) || ':&APP_SESSION.:::RP:P1_ENTRY_ID:' || toc_entry_id link,is building a link to a page based on the value of the entry (:P1_ENTRY_ID) so the user can click on an entry and jump to that item.
    My tree looks like this: (I can't paste an image, so I'll wing it with text - notice my tree started out with
    entry zero [0] because I had to add it after the tree was built)
    - Table of Contents
      + 0. First branch of my tree
      + 1. Second branch of my tree
      -  2. Third branch - expanded
         +  Entry 1 for third level
         +  Entry 2 for third level
      + 3. Fourth branch of my tree
      + 4. Fifth branch of my treeIt took me awhile to figure all of this out, but once I did, it began to make sense.
    The whole idea is that each SELECT will select the next indented level in the tree. Then in the end, use ORDER BY 3,1 to order your tree properly by the parent and then the child within the parent.
    I hope this makes sense and that it helps.
    Good luck,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • VScroll Bar and Tree Issue

    I have a tree component and am using a custom DataDescriptor,
    when I dynamically add data to the DataProvider, I have a set that
    does not show in the tree. When those items get added, the
    VScrollBar will show. But since the items are 'hidden' and do not
    show in the tree view, the VScrollBar should not be showing. If I
    expand an item in the tree, then the VScrollBar will disappear and
    the tree will look like it is supposed to be.
    I tried using (individually and in combination)
    invalidateSize(), invalidateDisplayList(), invalidateProperties(),
    and invalidateList() on the tree but it doesnt update the
    VScrollBar like it should.
    Any help would be greatly appreciated, thanks.
    Art

    Arty,
    My issue is i'm not getting Vscrollbar on dynamic
    loading(lazy loading). I'm using flex 3 with cairngorm framework.
    Loading all children(dynamically) in getchildren method of
    datadescriptor. Here is my descriptors file
    package com.primavera.flex.admin.calendar.ui
    import com.adobe.cairngorm.control.CairngormEventDispatcher;
    import
    com.primavera.flex.admin.calendar.events.GetProjectEvent;
    import com.primavera.flex.admin.calendar.vo.ProjwbsVO;
    import mx.collections.ArrayCollection;
    import mx.collections.ICollectionView;
    import mx.controls.treeClasses.DefaultDataDescriptor;
    import mx.events.CollectionEvent;
    import mx.events.CollectionEventKind;
    public class PickListTreeDescriptor extends
    DefaultDataDescriptor
    public function PickListTreeDescriptor()
    super();
    override public function getData(node:Object,
    model:Object=null):Object
    return node;
    override public function hasChildren(node:Object,
    model:Object=null):Boolean
    return ProjwbsVO(node).isEPS();
    override public function isBranch(node:Object,
    model:Object=null):Boolean
    return ProjwbsVO(node).isEPS();
    //return false;
    override public function getChildren(node:Object,
    model:Object=null):ICollectionView
    var epsVO : ProjwbsVO = ProjwbsVO(node);
    if (epsVO.isEPS())
    // this check for delay loading once the data is loaded it
    should not make a remote call again
    if(epsVO.isProjectsLoaded == false)
    epsVO.isProjectsLoaded = true;
    var projectEvent : GetProjectEvent = new
    GetProjectEvent(null);
    projectEvent.projwbsVO = epsVO;
    CairngormEventDispatcher.getInstance().dispatchEvent(projectEvent);
    var collection:ICollectionView = ICollectionView(model);
    var event:CollectionEvent = new
    CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
    event.kind = CollectionEventKind.ADD;
    event.items = ArrayCollection(epsVO.children).toArray();
    collection.dispatchEvent(new
    CollectionEvent(CollectionEvent.COLLECTION_CHANGE));
    return epsVO.children;
    Projwbs is my object in Arraycollection. Hierachy is like EPS
    can have projects(leafnode) and child Eps(branch node). EPS is
    determined if projwbs.isEps returns true.
    On UI it gives a single root node in a collapsed state. When
    i expand it furthur it gives child EPS and projects in it. On
    expanding root node i get childrens but in screen Vscrollbar is not
    visible.
    Please let me know if you have any thougts on this.

  • How to expand a tree at a specific node/item?

    Hi,
    we have a tree and the nodes/items were binded to context with this code
    lo_nd_nvccmp = wd_context->get_child_node( name = wd_this->wdctx_nvccmp ).
    lo_nd_tree = lo_nd_nvccmp->get_child_node( name = wd_this->wdctx_tree ).
    lo_el_tree = lo_nd_tree->bind_structure( new_item = ls_tree set_initial_elements = abap_false ).
    We want that the tree is expanded at a specific node/item?
    The structure has the field is_expanded of type WDY_BOOLEAN. I think that if the field of the right structure is 'X' then the tree should expanded. How can we find the right structure in the context and change this field to 'X'?
    Code is appreciated.
    Thanks, regards
    Susanne

    Oh, apparently if you try that call right after you create
    the Tree, it will throw a null reference exception. That might
    count as a bug in the flex api...
    If you create a Tree, and give it's dataProvider some xml
    data, and then add it to the stage (addChild), and then you call
    expandItem or expandChildrenOf() right after, you will get a null
    object exception. You have to wait... for something. I don't know
    what.
    I even tried calling _tree.invalidateList() before the
    expandItem, but it will still throw the error...
    I wonder what the Tree needs to wait for? Is this a bug for
    Adobe to fix?

Maybe you are looking for

  • New DVD Drive reads some DVD's not all, why?

    Hi, I recently replaced my old dvd/cd drive in my notebook pavillion 2945se.  It seems to work well except it only reads some store bought dvd's.   It can read Star Trek: voyager, dc movies, disney,  star wars discs, and most other store bought dvds

  • Can you change the permissions on a single html file in the root of a MOSS 2007 site?

    I know what the right answer is, the correct way to implement this is to create a library off the root and place the file that needs to have unique permissions into this library and either change the permissions of the library or of the individual fi

  • Using VersaMail with Juno E-Mail Account

    I can receive e-mail using my paid Juno e-mail account but I cannot send out mail using it.   I keep getting this error message:  450 smtp01.nyc.untd.com authenication required.  My setup for outgoing mail is correct.  Could someone provide some info

  • IBooks shutting down since 8.0.2 update

    IBooks keeps going back to the home page since updating to iOS 8.0.2

  • SEGURIDAD EN SWF GENERADO CON FLASH PAPER

    Hola foro, he generado un swf de un documento de word con Flash Paper. Hasta aquí todo va bien, cuando lo llamo desde Flash me funciona sin problema, sin embargo las opciones de seguridad como no permitir impresión, no permitir copiado y demás no apl