Showing path of tree which is in table

Hello Everyone,
Can you examine this link?
http://www.adp-gmbh.ch/ora/sql/connect_by.html
I worked this query in this hiearchical tree table:
SELECT child, SYS_CONNECT_BY_PATH(lchild, '/') "Path"
FROM test_connect_by
START WITH parent is null
CONNECT BY PRIOR child = parent;
When you worked this query, you can see path of each child. For example child: 10
child-------------path
10--------------- /38/15/10
But, i wanna this path as seperate column. for example; level of this tree table is 4
child-------------path1----------------path2---------------path3---------------path4
10-----------------38-------------------15--------------------10-------------------(null)
Is there any way as showing seperate column??

Only if you know deepest level number upfront:
select  child,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,1) path1,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,2) path2,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,3) path3,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,4) path4
  from  test_connect_by
  start with parent is null
  connect by prior child = parent
     CHILD PATH1      PATH2      PATH3      PATH4
        18 18
         7 18         7
        11 18         11
        26 26
         1 26         1
        12 26         12
        13 26         13
        38 38
         6 38         6
        15 38         15
         5 38         15         5
     CHILD PATH1      PATH2      PATH3      PATH4
         3 38         15         5          3
        10 38         15         10
        17 38         17
         8 38         17         8
         9 38         17         9
16 rows selected.
SQL> And if you want just leafs:
     CHILD PATH1      PATH2      PATH3      PATH4
         7 18         7
        11 18         11
         1 26         1
        12 26         12
        13 26         13
         6 38         6
         3 38         15         5          3
        10 38         15         10
         8 38         17         8
         9 38         17         9
10 rows selected.
SQL> Or:
select  child,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,1) path1,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,2) path2,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,3) path3,
        regexp_substr(sys_connect_by_path(child,','),'[^,]+',1,4) path4
  from  test_connect_by
  where child = 10
  start with parent is null
  connect by prior child = parent
     CHILD PATH1      PATH2      PATH3      PATH4
        10 38         15         10
SQL> SY.

Similar Messages

  • Af:tree With Multiple Child Table

    Hi,
    I have a requirement where i have to show a af:tree with child records from two different view Iterators, I created one tree but facing a issue. It shows the name of the Child view iterators and then the record inside it.
    Like :-
    ---> DummyRecord1 *(Record from Parent Iterator)*
    ------------>viewIterator1 *(Name of the First Child Iterator)*
    -------------------->DummyRecord2 *(Record from First Child Iterator)*
    ------------>viewIterator2 *(Name of the Sec Child Iterator)*
    -------------------->DummyRecord2 *(Record from Sec Child Iterator)*
    But i don't want to show the Name of the Child iterators in the tree.I want the tree something like:-
    ---> DummyRecord1 *(Record from Parent Iterator)*
    -------------------->DummyRecord2*(Record from First Child Iterator)*
    -------------------->DummyRecord3 *(Record from Sec Child Iterator)*
    My .Jspx code:-
    <af:tree value="#{bindings.*someViewIterator*.treeModel}"
    var="node"
    selectionListener="#{bindings.*someViewIterator*.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    </af:tree>
    My Page Def code:-
    ><variableIterator id="variables"/>
    > <iterator Binds="*someView*" RangeSize="25"
    > DataControl="AppModuleDataControl"
    id="*someViewIterator*"/>
    </executables>
    <bindings>
    <tree IterBinding="*someViewIterator*"
    id="*someView1*">
    <nodeDefinition DefName="*someView*"
    Name="*someView12*">
    <AttrNames>
    <Item Value="nodeValue"/>
    </AttrNames>
    <Accessors>
    <Item Value="viewIterator2"/>
    <Item Value="viewIterator3"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="viewIterator2"
    Name="viewIterator123">
    <AttrNames>
    <Item Value="nodeValue"/>
    </AttrNames>
    </nodeDefinition>
    <nodeDefinition DefName="viewIterator3"
    Name="viewIterator345">
    <AttrNames>
    <Item Value="nodeValue"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    I am using JDev  11.1.1.6.0
    Why is Tree component creating an extra level showing the iterator name, is there any way to remove that level and show the tree with the actual records only...Thanks in advance..

    Hi,
    trees show hierarchical dependencies of a single path. While it is possible to hack the tree binding configuration to show two root nodes, you can't show two child iterators unless you warp the ADF binding model in a custom tree model (in which case its your code that retrieves and manages the user selection)
    Frank

  • Problem in Tree with in a table

    Hi Experts,
    I have created a WDC which contains the tree with in a table.
    I have created a table in the view and a Master column in it.
    Initially i loaded the tree with some values in my WDDOINIT of my view.
    I have also created the event handler for that Master column i.e., OnLoadChildren event handler.
    I have written some code in it, so that this event handler method will be called when i try to expand a node in the table.
    Unfortunately, the debugger is not getting in to that method, and that event is not being called when i Expand the tree node in the table.
    Please suggest me so that i can complete the assignment.
    Thanks in advance and for all the help given till now.

    Hi
    You can join a hierarchical query as you suggest; you can also use SYS_CONNECT_BY_PATH() to identify the subproduct. Here's the kind of query you need - I've used the HR sample data, but you should be able to transform this into products, subproducts etc
    select subproduct.first_name, subproduct.last_name, part.job_id, sum(part.salary), count(distinct part.employee_id)
    from employees subproduct
    left join (
    select level lev
         , sys_connect_by_path(last_name,'/') reportsto
         , sys_connect_by_path(to_char(employee_id,'fm0000'),'/') ancestors
         , substr(sys_connect_by_path(to_char(employee_id,'fm0000'),'/'),7,4) subprodid
         , emp.*
    from employees emp
    start with employee_id = 100 -- like identifying the product
    connect by prior employee_id = manager_id
    ) part
    on part.subprodid = to_char(subproduct.employee_id,'fm0000')
    where subproduct.manager_id=100
    group by subproduct.first_name, subproduct.last_name, part.job_idYou'll see I've used a fixed format connect_by_path (with 4 digits per level) which makes it easy to pull out the second level.
    HTH
    Regards Nigel

  • Impact Analysis: How to trace which objects and tables used in a report?

    Impact Analysis: How to trace which Webi objects and tables used in a report?
    Currently, our company have been using BO Webi as our ad-hoc and reporting tool for over a year now.  Past several months, we've been pushing our power users to develop their own report, and started to notice that we loss track off which data (tables, columns, ... , BO objects) being used where and by whom.   The BI team now spend more time tracing through reports manually, instead of designing Universe.
    After consulted with our local  SAP  technical sale, they said the only solution is to buy BO's ETL (Data Integration) and
    Metadata Management tool, which price starting from $300K per CPU.  I suppose that is NOT the right solution; however, we have not found one yet.  Some executives believe Cognos (now by IBM) would provide a better BI solution as we scale.
    If anyone know, please provide (1) Impact Analysis method: How to trace which Webi objects and tables used in a report? and (2) Does Cognos provide better impact analysis method without a heavy spending?
    Thank you very much,
    Ed
    Edited by: EdPC-SCB on Sep 8, 2009 3:56 PM

    EdPC-SCB,
    have you tried enabling auditing?
    - Yes, audit log only shows user's activities which isn't useful for us. Please let us know any audit log that might be helpful .
    For most of the servers listed in the CMC there is an "Audit" tab.  I'd say if you have the disk space in your database for Auditor available, then if in doubt turn it on (at least for a while) to see if it exposes what you are seeking to find out --that'd be the quickest way.  The documentation (xir2_bip_auditor_en.pdf) doesn't offer much in helping you to see a correlation between ticking on an Audit option in a Server and how it will populate in the Auditor DB -- most of us just hunt and peck until we get what we want.  Once you have the good stuff in each of the Servers ticked on you'll be able to track down which report recieves which object.  To help youself out initially, you should run every report that you can find so Auditor will get seeded.
    thanks,
    John

  • Direct Path Loading Issues with Global Temporary Tables - OCI & OCILib

    I am writing some code to import data into a warehouse from a CPU grid which computes risk data. Due to the fact a computing grid is used there will be many clients which can load the data concurrently and at any point in time.
    Currently the import uses Binding in OCCI and chunking with a prepared statement to import the data into a global temporary table in a staging area after which a stored procedure is called within the same session which will process the data and load the data into a star schema.
    The GTT has the advantage that if any clients have issues no dirty data will be left and each client only sees their own instance of the data.
    I have been looking at using direct path loading to increase the performance of the load and have written some OCI code to perform the same task. I have manged to import the data into a regular heap based table using the OCI direct path apis. However when I try and use the same code to import against a Global Temporary Table I get an OCI Error (ORA-00600: internal error code, arguments: [6979], [16], [1], [1318528], [], [], [], [], [], [], [], [])
    I get error when the function OCIDirPathPrepare is executed. The same issue occurs in both OCI and OCILib.
    Is it not possible to use Direct Path Loading against a Global Temporry Table ? Because you can use the /*+ APPEND */ hint and load global temporary tables this way from tools like SQL Devloper / toad which is surely informing the SQL Engine to use Direct Path ?
    Looking at the table USER_OBJECTS I can see that for a Global Temporary Table the DATA_OBJECT_ID is null. Does this mean that it is impossible to us a direct path load into Global Temporary Tables ?
    Any ideas / suggestions would be really appreciated. If this means redesigning the application then I would appreciate suggestions which would allow many client to quick write processes in a parallel fashion. If this means creating a new parition in a Heap Table for each writer and direct path loading into this table then so be it.
    Thanks
    H
    Edited by: 813640 on 19-Nov-2010 11:08

    Replying to my own message in case anyone else is interested.
    I have now managed to successfully load data using direct path into a global temporary table with OCI. There appears to be no reason why this approach will not work.
    I loaded data into the temporary table and then issued a select count(*) on the table from within the session and from a new session. The results were as expected.
    The resaon for the ORA-006000 error was due to the fact that I had enabled table level parallel loading
    ie
    OCIAttrSet((dvoid *) context, (ub4) OCI_HTYPE_DIRPATH_CTX, *(ub1) 1*, (ub4)0, (ub4) OCI_ATTR_DIRPATH_PARALLEL, errhp)
    When loading a Global Temporary Table the OCI_ATTR_DIRPATH_PARALLEL attribute needs to be zero
    This makes sense, since the temp table does not have any partitions so it would not be possible to write in parallel to multiple paritions.
    Edited by: 813640 on 22-Nov-2010 08:42

  • WD ABAP: Recursion Nodes that Repeat Tree Nodes with Embedded Tables ???

    At Rich H's suggestion, I'm posting this here as well as in the blogs.
    Suppose you've got a tree context with a node that has a table embedded under it. (For example, the TREE_WITH_TABLE view of WDR_TEST_EVNT has this kind of context substructure.) Call this node "NODE_WITH_TABLE."
    You now define a recursion node underneath "NODE_WITH_TABLE" and specify "NODE_WITH_TABLE" as the repeated node for this recursion node. Call this recurion node "RECURSION_NODE".
    Lo and behold - the table fills properly when you're on any instance of "NODE_WITH_TABLE", but not when you're on an instance of "RECURSION_NODE".
    I'm hoping that:
    a) I'm doing something wrong;
    OR
    b) There's an easy work-around/alternative I'm not seeing
    OR
    c) SAP will give recursion nodes enough memory to carry any table(s) embedded in the nodes they're repeating.
    'Cause I sure don't want to have to define "n" levels of tree-nodes that have different copies of the same table(s) embedded in them.
    Message was edited by: Armin Reichert

    /people/david.halitsky/blog/2006/08/16/recursion-nodes-that-repeat-tree-nodes-with-embedded-tables-in-wd-abap-not
    Maybe you might want to back out your weblog as it is not really a place to ask these types of questions.  Think of it this way,  if you are allowed to do this type of weblog,  what is stopping any other weblogger.  Hence the weblogs would just be another forum, which I don't think anyone wants. 
    Regards,
    Rich Heilman

  • Flex 4, is it possible to populate a tree component with sqlite table data?

    is it possible to populate a tree component with sqlite table data?
    If it is, how would I go about doing this?
    Thanks
    Kristin

    Hi Mustafa,
    it is true, the function can return component as type. This is more for the scenario, when you want to recognize some component based on some checks, eg.
    if(something)
    return CHECKBOX_1;
    else
    return CHECKBOX_2;
    so, the use case exists for sure. But of course the application itself is static.
    where do you see a scenario for dynamic creation of components?
    The only one component which can instantiate new components is the SplitCellContainer, and this is restricted to the drag&drop action from Fragment Bookmark Gallery. And this is again restricted to containers, as Fragment can hold containers as parent component. Of course the container content will be created/instantiated as well (I have coded example with ComponentManager in the Community SDK: Second Functional Application with SDK Components (Online Composition v.2) blog).
    As far I know there is no function in SplitCellContainer which would "simulate" the drop of a Fragment today (perhaps worth an Idea on this?). Having that - the scenario would be possible. Today, this can be made partly - but the user would need to drag&drop a prepared fragment with the component.
    Anyway, the problems will start after the creation - then it would be require to have also functions to re-position the new created component in some other container - this would be complex probably.
    Karol

  • Which iVie wpoint to which view in table V_TWPC_V?

    Hi Gurus,
    Am changing the eval paths. But question is how  do we know which iVie wpoint to which view in table V_TWPC_V?
    Any inputs are highly appreciated
    sammer

    Suresh
    is this something specific to mysap erp2004. or is this property avialable even with previous BPs of MSS
    am not able to find this property.
    I think it should be avialable even with previous versions. Am looking into MSS BP60.1 I could find something called "Viewgroup used for Attendance Overview" for the attendance iView and did not find any with the name VIEWID.
    Please assist.
    regards
    Sam

  • Which cisco command on router can show me specific hosts which have dhcp reserved IPs

    how can i get that which hosts of the network have reserved dhcp IPs as i know that dhcp reservation to be created when mac address will be assigned.
    so, which cisco command on router can show me specific hosts which have dhcp reserved IPs.thanks

    As said by Leo, the DHCP bindings will show the corresponding MAC addresses.
    Unless you have a list of all MAC addresses somewhere (which most people tend not to) then you can use the ARP cache combined with the CAM tables to trace which ports relate to which MAC address to get more information on the host if you need it.

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • My iPad Mini iOS7 is showing only Apple Logo which happened during software update. I tried to restore using iTunes but it asking me to response from iPad. But my ipad only shows apple logo. How can i response? How to solve this problem?

    My iPad Mini iOS7 is showing only Apple Logo which happened during software update. I tried to restore using iTunes but it asking me to response from iPad. But my ipad only shows apple logo. How can i response? How to solve this problem?

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • How to find the absolute path of file  which store in KM foler ?

    Hello everyone:
         We want to develop an ABAP program which can write files into KM folder directly.
         So I need to find the absolute path of file which store in KM folder first, then we can consider the develop solution.
         Is this issue possbile that an ABAP  program write files into KM folder  directly ?
         Is there anybody had done this job ?
    Best Regards,
    Jianguo Chen

    Hi,
    http://forum.java.sun.com/thread.jsp?forum=34&thread=36
    612The methods in the above topic seem to be available when use a DOM parser..

  • AS: InDesign CS4: Missing links do not show path anymore?

    Hiya! Preparing to move to InDesign CS4, and opened a document where the links were missing. In CS2 with AS you could still get the old path to where the link was pointed to, but now if the link is missing AS returns "". ?? I can still get the file name, but that is fairly useless..
    I know the path is still retained somewhere, because the link pallet UI in InDesign shows path, and the path is there...
    Anyone have any ideas?
    >>
    id:25785,
    size:298164,
    asset URL:"",
    link xmp:link xmp of link id 25785 of image id 21318 of rectangle id 20575 of page id 20565 of spread id 6605 of document "AR09_1_006_006v4.indd" of application "Adobe InDesign CS4",
    asset ID:"",
    asset etag:"",
    edited:false,
    needed:true,
    link type:"JPEG",
    parent:image id 21318 of rectangle id 20575 of page id 20565 of spread id 6605 of document "AR09_1_006_006v4.indd" of application "Adobe InDesign CS4",
    file path:"", --in cs2, the path would still be here...
    index:1,
    name:"01_77509_TR_927.jpg",
    object reference:link id 25785 of image id 21318 of rectangle id 20575 of page id 20565 of spread id 6605 of document "AR09_1_006_006v4.indd" of application "Adobe InDesign CS4",
    label:"",
    editing state:editing unknown,
    version state:version unknown,
    date:date "Saturday, March 14, 2009 5:12:37 PM",
    status:link missing

    CS2:
    id:11759,
    size:260181,
    asset URL:"",
    link xmp:link xmp of link id 11759 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS2",
    asset ID:"",
    asset etag:"",
    edited:false,
    needed:true,
    link type:"JPEG",
    stock state:link is not stock,
    parent:image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS2",
    file path:"Graphics1:Cat Apparel:AR09_FallPrev:All Images:JPG SELECTS:3_12-3_13:77508:77508_DG_297.jpg",
    index:1,
    name:"77508_DG_297.jpg",
    object reference:link id 11759 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS2",
    label:"",
    editing state:editing nowhere,
    version state:no resource,
    date:date "Friday, March 13, 2009 5:16:21 PM",
    status:link missing
    CS4:
    id:12636,
    size:260181,
    asset URL:"",
    link xmp:link xmp of link id 12636 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS4",
    asset ID:"",
    asset etag:"",
    edited:false,
    needed:true,
    link type:"JPEG",
    parent:image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS4",
    file path:"",
    index:1,
    name:"77508_DG_297.jpg",
    object reference:link id 12636 of image id 11755 of rectangle id 9610 of page id 9604 of spread id 9593 of document "ack.indd" of application "Adobe InDesign CS4",
    label:"",
    editing state:editing unknown,
    version state:version unknown,
    date:date "Friday, March 13, 2009 5:16:21 PM",
    status:link missing
    So - to summarize....
    CS4: file path:"", status:link missing
    CS2: file path:"Graphics1:Cat Apparel:AR09_FallPrev:All Images:JPG SELECTS:3_12-3_13:77508:77508_DG_297.jpg", status:link missing
    Ack.....

  • My macbook air won't turn on.. last night it was still working properly... when i woke up this morning, i went to turn it on but it didn't respond..i tried plugging the charger and the lightning cord showed a green light which is normal when charging..

    my macbook air won't turn on.. last night it was still working properly... when i woke up this morning, i went to turn it on but it didn't respond..i tried plugging the charger and the lightning cord showed a green light which is normal when charging..i tried to open the macbook air again but nothing happened.. no fans, no chimes, no light in the laptop showed..what should i do? please help..thank you

    Welcome to Apple Support Communities
    A green light means that your battery is full or that it can't be detected. If you can't start up the Mac, probably your logic board or battery aren't working.
    Take the MacBook to an Apple Store or reseller to get your battery or logic board replaced. If the MacBook is in warranty, this repair will be free

  • Af:tree column in af:table

    I have af:tree as a column in an af:table and the expand/collapse functionality of af:tree behaves in a way that it works only on the last row added to the table and moreover while working on the last row it expands/collapses all trees in all other rows. All the other rows won't work at all.
    All rows have their own instance of TreeModel. Any clue why this happens ? Does anybody use af:tree as a column in a table ?
    JDev/ADF 10.1.3.3.0.4157
    Thanks for any help
    <af:table binding="#{bean.table}"
    value="#{bean.listTree}"
    banding="row" bandingInterval="1"
    var="row">
    <f:facet name="selection">
    <af:tableSelectMany binding="#{editor.component}"
    text=""
    shortDesc="Select">
    </af:tableSelectMany>
    </f:facet>
    <af:column id="treeLogCol" headerText="Tree" sortable="false">
    <af:tree id="treeLog"
    var="sel" value="#{row.testModel.model}"
    disclosureListener="#{bean.testDisclosureListener}"
    focusRowKey="#{row.testModel.model.focusRowKey}">
    <f:facet name="nodeStamp">
    <af:commandLink text="#{sel.label}" action="#{sel.getOutcome}"/>
    </f:facet>
    </af:tree>
    </af:column>
    </af:table>

    A workaround that seems to work fine is to define a disclosureListener as following -
    public void testDisclosureListener(DisclosureEvent disclosureEvent)
    CoreTree tree = (CoreTree)disclosureEvent.getComponent();
    TableRowWrapper row =
    (TableRowWrapper) ((UIXTable) _table).getRowData();
    PathSet set = tree.getTreeState();
    try
    set.setTreeModel(row.getTreeModel());
    catch(Exception e)
    if (disclosureEvent.isExpanded())
    set.add();
    else
    set.remove();
    // comment the following row since it will expand/collapse all trees in the column
    // AdfFacesContext.getCurrentInstance().addPartialTarget(_table);
    }

Maybe you are looking for