Save ADF Tree selection

Hi,
Jdev 11.1.1.5.0
I've created a tree structure from a single DB table using self-reference. I can select the required nodes from this tree and click on command button, then will display a table with the selected nodes information. Till this part, i've achieved.
Now the tricky thing is, I want to save this table as a favourate with a name (Ex: German-Business Management) in a dropdown.Another user can save his/her favourate with another name(Indian-Business Management).
Some later point of time, If user clicks on any favourate, the corresponding results should be displayed in table format.
BTW, For each node in the tree, there should be a row in the DB table. So what Iam thinking here is, create a text file with Primary Keys of the selected nodes and save that file into DB table. Read the same file to prepare the table from Primary Keys.
Ex:
Node1
     Node2
          leaf1
          leaf2
          leaf3
     Node3
          leaf4
          leaf5
Node9
     Node4
          leaf6
     Node5     
          leaf7
Let's consider, I've selected leaf1,2,3 & save it as my_fav1. Selected new items(leaf4,leaf5,leaf6) from the tree and then save it as my_fav2.So there should be a dropdown with my_fav1, my_fav2 values. If I click on my_fav1 then it should display leaf1,2,3 in a table with additional metadata(coming from DB).
Could you please suggest some pointers or suggestion on my usecase?
Thanks,
Samba.

See if it can help:
tree node selection lost after returning from called page

Similar Messages

  • Issue with creation of ADF Table from ADF Tree selection

    Hi,
    Following is the usecase.
    I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. It's got created hierarchy as Parent1->Child1->Chiled2 in Data model section of AM.So Iam done with tree creation process in Model.
    As VC can't be applied for sub levels. In order to set the VCs for sublevels, followed the below approach.
    Created a bind variable for tree. I've set the VC for both parent & child VOs in managed bean before setting the tree variable in setTree method. So now Iam able to display the required tree in UI with applying VCs.
    Now , I can select the required nodes from tree and then click on command button to display the selection list as a table.
    In order to achieve this, I tried below two options.
    1) Created separate Child VO instance (Child3) from Child VO and applied same view which applied initially. and the dragged the Child3 from Datacontrol to UI(jsff) as a table. When I run the application,it's displaying all the records from the DB table without applying VCs.
    2) Dragged the Child2 as a table on UI. When I run the application, it's displaying first record from the table without applying VC.
    But no luck in getting the required functionality.
    I've Following queries.
    a) If we update any transient attribute value for an VO instance, will it effect at VO level or only for that particular instance?
    Why because, I've created new instance of same VO. But the changes are not effecting for transient attributes in the new instance of VO.
    b) Can some one suggest on my usecase to display the selected nodes from a tree in table format?
    I tried my level best to explain the usecase. But let me know,if you have any queries on my usecase.
    Thanks in advance,
    Samba.

    This is my code:
    <af:column id="c1" headerText="Sponsor Status">
    <af:selectOneChoice label="Label 2" id="soc1" value="#{row1.sponsorStatusDesc}"
    validator="#{backingBeanScope.EditSponsorDetails.OnSponsorStatusChange}"
    valuePassThru="true">
    <f:selectItems value="#{pageFlowScope.confLists.spStatus}"
    id="si1"/>
    </af:selectOneChoice>
    </af:column>
    and this i what HTML code says..
    <select id="confSponsor:r2:0:tbIEEEsp:0:soc1::content" class="x2h" name="confSponsor:r2:0:tbIEEEsp:0:soc1">
    <option _adftmpopt="t" value="" title=""></option>
    <option value="4" title="Approved">Approved</option>
    <option value="3" title="Declined">Declined</option>
    <option value="6" title="New">New</option>
    <option value="2" title="Not Valid">Not Valid</option>
    <option value="5" title="On Hold">On Hold</option>
    <option value="1" title="Pending Approval">Pending Approval</option>
    <option value="7" title="Unidentified">Unidentified</option>
    </select>
    Stll i cannot see any value populated in SelectOneChoice

  • ADF Tree: how to access root node after "Show as Top" selected on sub node

    I am currently working on a project that using ADF tree and implementing some search/filter functionality. I need to find the java API calls to get the new root node information after UI user select a sub node in the tree and clicked “show as top"(so search are done only on the current tree. Can someone help on this?

    Hi ,
    In our project we require to implement ADF menu tree inside <af:menulist>.
    We require to show 3-4 child menuitems inside 2 parent menus.
    Home
    --> Inbox
    -->Search
    Patient
    --> Information
    --> Search
    Can you please tell steps to implement <af:menutree> to have child menuitems like Inbox, Search inside parent like Home ? I searched on ADF sites but not much of help there.
    Thanks
    Suhas

  • ADF Tree with Boolean Check Box: How to find selected items

    Hi Experts,
    ADF: 11.1.1.5.0
    WLS: 10.3.6
    I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
    I am facing the below issues while trying to implement this use case:
    1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
    2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
    To summarize,
    1. Please let me know how to expand all master nodes in af:Tree by default.
    2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
    Thanks in advance,
    Rathnam

    Hi,
                Can you please elaborate the solution? I have a similar problem in
    https://forums.oracle.com/thread/2579664

  • Get selected node of an adf tree in backing class

    hi,
    i am deploying an adf web application, i use jdeveloper 11g and a weblogic webserver.
    i have a bean family this bean contains a list of families and a parrentfamily object, so it is a rekursive relationship.
    i use the adf tree component to show all the families starting with the root family. works fine. only had to create a data controle of the bean and with dragndrop i create the adf tree.
    now i want to create a subfamily of any family shown in the tree, so i need the selected tree node in my backing bean (in a methode which is the action of my buttono) of the adf page.
    but iam unable to get the data.
    so my question i searched many times for:
    What is the best and easiest way to get the selection of an adf tree in the backing bean of the page?

    Hi,
    here's how you get the object itself, assuming your model is POJO based. Assuming "tree" is a variable pointing to a RichTree instance
    CollectionModel treeModel = (CollectionModel) tree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) treeModel.getWrappedData();
    RowKeySet rks = tree.getSelectedRowKeys();
    if(!rks.isEmpty()){
      List firstSet = (List)rks.iterator().next();
    JUCtrlHierNodeBinding node = treeBinding.findNodeByKeyPath(firstSet);
      DCDataRow rw = (DCDataRow) node.getRow();
      //get the object
    Object entity = rw.getDataProvider();       
    }                         Frank

  • How to implement a go to next node button for an ADF Tree backed by ADF Bin

    Dear all,
    I have been trying for quite some time now, and I do not get it. For my ADF Tree component, I want to implement a series of little iconic buttons that my users can press to Expand and Collapse the current node - those I have got to work, sort of - and Move to the Next or Previous node. My definition of Next Node is: the next node you can see on the screen; this can either be a child, a sibling or an ancestor's sibling.
    + A
    - B
    |- C
    |+ D
    + E
    So from A, next means B, from B next means C, from C it means D and from D it should go to E.
    My main question is: how can I programmatically set the currently selected node in the tree? And I mean not just set the focusRowKey...
    My tree is bound to a ADF Tree Iterator Binding.
    My tree nodes are 'clickable through an action link; this informs a managed bean of the currently selected node, a JUCtrlHierNodeBinding instance.
    <f:facet name="DeptView1Node" >
    <h:panelGroup>
    <af:commandLink text="#{node.Dname}"
    immediate="true"
    action="StartHrmTree"
    >
    <af:setActionListener from="#{HrmTreeTree.tree.rowKey}"
    to="#{HrmTreeTree.focusRowKey}"/>
    <af:setActionListener from="#{node}"
    to="#{HrmTreeTree.selectedNode}"/>
    <af:resetActionListener/>
    </af:commandLink>
    </h:panelGroup>
    </f:facet>
    At that point, in my setSelectedNode method, I can access the Node, its children etc. Methods calls to the tree are less successful; despite their description in the JavaDoc, calls like: getTreeModel().getRowKey() or getContainerRowKey() return null.
    From the Next Node button:
    <af:commandButton immediate="true" actionListener="#{HrmTreeTree.nextNode}" text="&gt;">
    </af:commandButton>
    I invoke the nextNode() method on my bean. When I access the selectedNode that I saved on this bean when the node was clicked on, I no longer can access the children of the node. Even the childIterator property returns null.
    Using the RowSetIterator I can access the current Row, go to the next row in the RSI, access children, so that seems a reasonable approach. However, I do not know how I can make the first child the currently selected node or even how to tell the tree that the child iterator is the current one.
    Using this code:
    // find out if the current Node has a child
    DCBindingContainer container =
    (DCBindingContainer)JsfUtils.getExpressionValue("#{bindings}");
    String iterName = "HrmTreeTreeIterator";
    JUIteratorBinding ib =
    (JUIteratorBinding)container.findIteratorBinding(iterName);
    List ibs =container.getIterBindingList();
    FacesCtrlHierBinding tree = (FacesCtrlHierBinding)container.findCtrlBinding("HrmTreeTree");
    RowSetIterator rsi2 = ib.getRowSetIterator();
    I never seem to be able to get beyond the RowSet iterator of the root level nodes. How can I make a child node's row set iterator the current one? How is it that my selected node object does not know how to access its child-nodes or even its childIterator binding? What refresh operation is required here?
    Any help will be very much appreciated (and credited in the blog article I will write when it all works out).
    Lucas

    Can you try setSelectedRowKeys(RowKeySet newSelectionState) API on the tree? That should change the selection.
    You can do some thing like this to populate the RowKeySet:
    RowKeySet oldSelectionState = null;
    RowKeySet newSelectionState = null;
    oldSelectionState = table.getSelectedRowKeys(); //table is the table component
    newSelectionState = oldSelectionState.clone();
    newSelectionState.clear();
    Object oldRowKey = table.getRowKey(); //Save the orginal rowKey in the variable
    String rowKey = "XXXX" // the key of the row you want to select
    table.setRowKey(rowKey); //set the currency of the table to the row you want to select
    newSelectionState.setContained(true); //add the current row to the selection key set
    table.setRowKey(oldRowKey); //Restore the currency to the old one.
    table.setSelectedRowKeys(newSelectionState); //update the table selection
    ///Now Do some partial update here to change display

  • How to populate a adf tree programmatically

    Hi,
    I am creating a adf tree (single select) which is the menu of my application.
    Each node of my tree is a command link.
    I am reading the data from a table through a view object (adfbc).
    I want to somehow manipulate my managed bean so that I can display selected rows (permission based) in the adf tree.
    If I am using the condition in the rendered attribute then the nodestamp facet is still rendered and there is a blank row displayed for a node which should not be displayed.
    The other way I was thinking to Iterate the entire tree in my managed bean and remove the nodes which should not be displayed.
    This way the tree is manipulated before it is endered and hence it will not have any blank row in the place of nodes not to be shown.
    Please let me know a few iterating code strip and where(in which method) I should put it in my managed bean to make it work?
    As of now I was putting a tree iterator code in the getMenuTree() method of my managed bean where menuTree is the RichTree object for the tree which I have to render in my UI.
    CollectionModel model = (CollectionModel)this.menuTree.getValue;
    treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    JUCtrlHierNodeBinding root = treeBinding.getRootNodeBinding();
    checkPermission(root);
    List<JUCtrlHierNodeBinding> children = root.getChildren();
    if (children != null)
    for (JUCtrlHierNodeBinding _node : children)
    checkPermission(_node);
    checkPermission - is the method which reads few bindings from the node and decides that this node id eligible for display or not based on user permission.
    But with this code I am getting the node hierarchical structure of the selected node only.
    Thanks in advance

    I thought in this direction... but I cannot access the permission data from VO level as I have to provide this menu interface to multiple projects.
    And the menu I am creating is in a template from where I need to get permission bean of various other projects.
    any other suggestions ?

  • ADF Tree Table Repeats Elements at All Levels in nodeStamp Facet

    Fusion Middleware Version: 11.1.1.5
    WebLogic: 10.3.5.0
    JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    Project: Custom WebCenter Portal Application integrated with custom ADF task flows.
    Hi
    I have an issue with ADF Tree Table (af:treeTable) whereby if I add a component to a group under the 'nodeStamp' facet it repeats for all levels in the tree even those outside the group.
    Overview:
    - 3-level master-detail structure created using ADF Business Components (3 view objects connected by 2 view links)
    - ADF Tree Table based on master-detail
    - Requirement to show 3 levels of data in the first column as a tree
    - Tree table is rendering correctly showing values for 'node.FullName', 'node.DisplayValue' and 'node.HoursType' respectively in a 3 level tree.
    - When another component is added to the top node in the tree ('node.FullName') for example some output text ('node.TimeBuildingBlockId'), it is displayed along side components 'node.DisplayValue' and 'node.HoursType' as well.
    Code snippet:
          <af:treeTable value="#{bindings.PerPeopleFVO1.treeModel}" var="node"
                        selectionListener="#{bindings.PerPeopleFVO1.treeModel.makeCurrent}"
                        rowSelection="single" id="tt1" styleClass="AFStretchWidth"
                        horizontalGridVisible="true" verticalGridVisible="true"
                        disableColumnReordering="true" summary="Timecard Entry"
                        displayRow="selected" expandAllEnabled="false"
                        contentDelivery="immediate" autoHeightRows="24"
                        columnStretching="column:column1"
                        binding="#{pageFlowScope.TimecardMB.tree_binding}">
            <f:facet name="nodeStamp">
              <af:column id="c1" headerText="Partner Details" width="500">
                <af:group id="g4">
                  <af:outputText value="#{node.FullName}" id="ot3"/>
                  <af:outputText value="#{node.TimeBuildingBlockId}" id="ot1"/>
                </af:group>
                <af:outputText value="#{node.DisplayValue}" id="ot4"
                                inlineStyle="color:Green; font-weight:bolder;"/>
               <af:outputText value="#{node.HoursType}" id="ot5"/>
                <f:facet name="filter"/>
              </af:column>
            </f:facet>
            <f:facet name="pathStamp">
              <af:outputText value="#{node}" id="ot2"/>
            </f:facet>
       <af:column FROM HERE.........>
    Any ideas greatly appreciated.

    Hi,
    Try using a switcher to distinguish all three levels of a tree. You can have three different facets, three different af:group 's.
    When you add in one level, it will not repeat in the other level.
    Please see the below snippet.
    <af:tree value="#{bindings.RefBusinessUnitView1.treeModel}" var="node"
    selectionListener="#{bindings.RefBusinessUnitView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:switcher id="s1"
    facetName="#{node.hierTypeBinding.viewDefName}">
    <f:facet name="model.RefBusinessUnitView">
    <af:group id="g2">       
    <af:outputText value="#{node.Code}" id="ot1"/>
    </af:group>
    </f:facet>
    <f:facet name="model.RefProductFamilyView">
    <af:group id="g3">
    <af:outputText value="#{node.ProductFamilyName}" id="outputText1"/>
    <af:outputText value="#{node.PName}" id="outputText2"/>
    </af:group>
    </f:facet>
    </af:switcher>
    </af:group>
    </f:facet>
    </af:tree>
    Nitish

  • Check/Uncheck issue in ADF Tree

    Hi,
    I am using JDev 11.1.1.5.0. Iam trying to create a ADF Tree from Single VO object with self-reference with check box option. Iam able to create required ADF tree with checkbox option. Some how, unable to provide select-deselect functionality. I mean, if we select any node from the tree, all the sub nodes (till leaf node) should be in select state. Only one node in select state. Rest are not updating.
    Tried to find in JDev forum. Could not able to find suitable topic.
    Tried to implement the process given in the below URL..But no use !!!
    http://andrejusb.blogspot.in/2011/12/adf-tree-how-to-autoselectdeselect.html
    Created two transient attributes at VO level
    checkboxConfirmed - Boolean..It's value will dependent on checkboxConfirmedStatus attribute, which is of type String.
    Finally I am trying to provide technical details what I did so far. It might be lengthy :)
    Following is the JSPX page code
    ===============================
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:tree value="#{bindings.HierLinks1.treeModel}" var="node"
    id="t1"
    binding="#{pageFlowScope.mBean.treeProp}">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:selectBooleanCheckbox
    label="Label 1"
    id="sbc1"
    value="#{node.checkboxConfirmed}"
    autoSubmit="true"
    valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"
    />
    <af:outputText value="#{node.ChildItemId}" id="ot1"/>
    </af:group>
    </f:facet>
    </af:tree>
    </af:form>
    </af:document>
    </f:view>
    mBean code goes as follows:
    public void checkBoxChange(ValueChangeEvent valueChangeEvent) {
    System.out.println("Start checkBoxChange ");
    System.out.println("OLD VALUE:"+valueChangeEvent.getOldValue());
    System.out.println("NEW VALUE:"+valueChangeEvent.getNewValue());
    DCIteratorBinding dcIb = ADFUtils.findIterator("HierLinks1Iterator");
    HierLinksVORowImpl parent = (HierLinksVORowImpl)dcIb.getCurrentRow();
    RowIterator ri = parent.getLeafHierLinks();
    // parent.setAttribute("checkboxConfirmedStatus", "Y");
    //RowSetIterator ri = parent.getRowSet();
    Boolean check = (Boolean)valueChangeEvent.getNewValue();
    while(ri.hasNext()){
    LeafHierLinksVORowImpl leaf = (LeafHierLinksVORowImpl)ri.next();
    System.out.println("Leaf ChildItemId"+leaf.getAttribute("ChildItemId"));
    if (check == true) {
    parent.setAttribute("checkboxConfirmedStatus", "Y");
    leaf.setAttribute("checkboxConfirmedStatus", "Y");
    else{
    parent.setAttribute("checkboxConfirmedStatus", "Y");
    leaf.setAttribute("checkboxConfirmedStatus", "N");
    System.out.println("Leaf checkboxFlag 222"+leaf.getAttribute("checkboxConfirmed"));
         Tried to iterate the tree in another approach.
    if( (Boolean)(valueChangeEvent.getOldValue()) != null) {
    Boolean check = (Boolean) valueChangeEvent.getNewValue();
    RichTree navTree = this.getTreeProp();
    CollectionModel model = (CollectionModel)navTree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    JUCtrlHierNodeBinding currentSelectedNode = (JUCtrlHierNodeBinding)navTree.getRowData();
    List<JUCtrlHierNodeBinding> children = currentSelectedNode.getChildren();
    if (children != null) {
    for (JUCtrlHierNodeBinding _node : children) {
    //Each child search returns node check status
    Row nodeRow = _node.getRow();
    if (nodeRow != null) {
    //_node.setAttribute("checkboxConfirmedStatus",true);
    String childId = (String)_node.getAttribute("ChildItemId");
    System.out.println("CHILDID"+childId);
    String[] atts = (String[]) _node.getAttributeNames();
    System.out.println(Arrays.asList(atts));
    System.out.println("CHECK"+check );
    if(check == true){
    _node.setAttribute("checkboxConfirmedStatus","Y");
    else{
    _node.setAttribute("checkboxConfirmedStatus","N");
    System.out.println("Check Status"+_node.getAttribute("checkboxConfirmed") );
    }else{
    System.out.println("NODE ROW NULL");
    } //End of for loop
    else{
    System.out.println("children NULL");
    else{
    System.out.println("OLD VALUE NULL");
    //refreshSelectedRows();
    System.out.println("End checkBoxChange ");
    Iam suspecting, in JSPX page value="#{node.checkboxConfirmed}" is updating the checkbox status.
    Could please help me on this?
    Thanks in advance,
    Samba.

    Finally able to achieve by enabling 'Retain View Link Accessor Rowset'.
    Thanks,
    Samba

  • Duplicate nodes in ADF Tree

    Duplicate Entries in ADF Tree
    Hi,
    Iam facing issue with ADF Tree representation. Getting content from DB. I've a table with self reference. Iam able to provide check box for each node. Following is the usecase of issue
    a->b->c->1.xml
    a->b1->c1->2.xml
    a->b2->c2->3.xml
    Issue 1: It's dispaling 3 a's at the first level. But it should display a once within that b,b1,b2 as sub levels.
    Even though it's showing 'a' three times, if we click on second & third 'a', first 'a' is effecting. Please suggest to filter duplicate entries while displaing. Following is code snippet of jspx.
    <af:tree value="#{bindings.ParentMDTopic1.treeModel}" var="node"
    selectionListener="#{bindings.ParentMDTopic1.treeModel.makeCurrent}"
    rowSelection="multiple" id="t1"
    partialTriggers="#{pageFlowScope.mBean.checkboxFlag.addValueChangeListener}">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <!-- <af:selectBooleanCheckbox
    label="Label 1" id="sbc2"
    valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"/> -->
    <af:selectBooleanCheckbox label="Label 1" id="sbc2"
    value="#{node.checkboxFlag}"
    autoSubmit="true"
    valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"/>
    <af:outputText value="#{node}" id="ot1"/>
    </af:group>
    </f:facet>
    </af:tree>
    Issue 2: Select/Deselect functionality. If we click on any node, the child nodes & sub levels till leaf nodes should be in select state. Similarly for deselect functionality.
    In order to acheve functionality, Created two transient attributes of boolean & string type. I tired to debug the ManagedBean, seems to be it's traversing to sublevels & changing the transient attribute. But while display it's not effeting. Please suggest a hint on this. It could be great if you provide some useful pointers to refer.
    Thanks in advance,
    Samba.

    Hi,
    I've provided Parent-Child relationship(Self-reference).
    Following is the table structure with primary/foreign key constraints.
    DELIVERY_VERSION_ID (PK)(FK)
    HIERARCHY_ID (PK)(FK)
    DOC_GUID (PK)
    PARENT (FK)
    CURRENTTITLE
    LANGUAGE
    Please let me know, if you have any comments on table structure.
    Following is the sample data in table
    DELIVERY_VERSION_ID     DOC_GUID Parent HIERARCHY_ID
    3               a     null     a_b_c
    3               b     a     a_b_c
    3               c     b     a_b_c
    3               1.xml     c     a_b_c
    3               a     null     a_b1_c1
    3               b1     a     a_b1_c1
    3               c1     b1     a_b1_c1
    3               2.xml     c1     a_b1_c1
    3               a     null     a_b2_c2
    3               b2     a     a_b2_c2
    3               c2     b2     a_b2_c2
    3               3.xml     c2     a_b2_c2
    Thanks,
    Samba.

  • ADF Tree Traversal from one node to its leafs

    Hello,
    after a titanic effort I have been able to add a checkbox next to each node of an adf tree table.
    This checkbox is based on an "helper" entity attribute (not mapped to a column table on the database).
    My next huge problem is to perform an automatic selection of all the checkboxes next to the nodes under the currently selected one.
    For example, if the user checks a checkbox in the second level, then all the checkboxes next to the nodes under that, belonging to level three and four must be checked.
    If this helps, in my case there are at most four levels.
    Up until now I can get all the information from the currently checked node, but I fail to navigate the hierarchy under it for the automatic checking. I think that one problem is to navigate all the rows in the (only) VO the tree is based on. For example, since the tree is not expanded at the beginning, if I iterate on the VO retrieved from the current selected node at the top level, I can't see any rows corresponding to any children. Maybe I just miss something.
    I have followed this example from Frank Nimphius, which only gets the current selected nodes, as I said, but no more. Maybe this is a good starting point, but I need to advance somehow.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf
    Can anyone help?
    Thanks.

    Hi,
    here is a sample of how to search in trees, which actually shows how to traverse trees from a specific node
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
    Given you have a transient attribute defined, each node (and instance of JUCtrHierNode --> getRow will give you access to the attribute for read/access). Note that because the checkbox is stamped in the context of the tree, upon selecting a parent node, you need to refresh the tree to show the selection state change
    Frank

  • Best approach -Tabs based ADF Tree left side navigation with Dynamic Regions with out UI Shell

    Hi,
    Somebody can help for the best approach to implement the following requirement.
    Req: When the user select the ADF Tree left side navigation menu, each menu will open as multiple tabs(Dynamic Tabs) in right side content area with out UI Shell Template.
    I completed the
    Step-1: From the Model project, I can able to render ADF Tree in the using view and view links. I can get the adf tree which is having 3 menu items. Each menu item having 2 sub menu's.
    I took each menu item as one(1) taskflow, each taskflow will have two(2) fragments.
    Total I have 3 task flows as Menu Items and 6 fragments for sub menu's.
    Step-2:  My question is How do I implement Tab based the ADF tree navigation (left side area to dynamic regions in content area) through dynamic regions? Please provide the steps in view layers.

    Than ks for your response.
    This is working fine for ADF Tree navigation with dynamic regions if the taskflow having only one fragment. if the taskflow having more than one fragments, this will not work. The following conditions are always satisfies one page fragment of either "employees" or "departments" task flow.  If the "employees" task flow have 2 page fragments, it's not work even you pass parameters through routers.
    public TaskFlowId getDynamicTaskFlowId() {
    if (currentTaskFlowID == null ||
    currentTaskFlowID.equalsIgnoreCase(“employees”)) {
    return TaskFlowId.parse(employeetaskFlowId);
    if (currentTaskFlowID != null &&
    currentTaskFlowID.equalsIgnoreCase(“departments”)) {
    return TaskFlowId.parse(departmetaskFlowId);
    return TaskFlowId.parse(employeetaskFlowId);
    My question is "Same use case with Dynamic Tabs" when the user click on any adf tree node.

  • ADF Tree table is not exapanding

    Hi all,
    I have to implement an ADF tree table along with a form. I have three Views,
    two of the views are used to populate the Tree table, And one of the view used in the Tree population is used to manipualte the form,
    And the third one is to populate a table. And I have a Popup call button in the same panelCollection where the tree table is placed
    I am facing two issues with the the tree table.
    1. The tree table is not expanding, if I click on the '+' on the node it won't expand and it will show me small circle which is trying to open the node.
    But if I click on the Popup button and cancel(RollBack) the popup and come to the node, it will exapand. I don't kow why it is....
    2. As I said I have a Form and I have to populate the form based on the selection in the tree table nodes, the form filed is same as that of the view used to populate the Tree table view.
    But when i click on the tree table nodes it is not chaning the record according to the selection in the tree nodes. But in a master Detail form it is working fine. It is always pointing to the first record.
    Please help.....

    No vinod, I am not getting any kind of exceptions..
    And mY tree table is
    <af:treeTable value="#{bindings.TestVO.treeModel}"
    var="node"
    selectionListener="#{backingBeanScope.TestBean.TreeTableSelectionListener}"
    rowSelection="single" id="tt1"
    columnStretching="column:c1" contentDelivery="immediate"
    binding="#{backingBeanScope.TestBean.tt1}">
    <f:facet name="nodeStamp">
    <af:column id="c1">
    <af:panelGroupLayout id="pgl15">
    <af:outputText value="#{node.SubtaskDesc}" id="ot1"/>
    <af:outputText value="#{node.HazardDesc}" id="ot4"/>
    </af:panelGroupLayout>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node}" id="ot2"/>
    </f:facet>
    <af:column id="c2">
    <af:outputText value="#{node.MaxRiskRating}" id="ot3"/>
    </af:column>
    </af:treeTable>
    Edited by: Ranjith C on Jul 18, 2011 6:21 AM

  • Self referencing VO in an ADF Tree

    Hi @all
    i want to create an ADF Tree and found the following helpful example:
    ADF Code Corner sample #32 show how to build a tree table from a self referencing VO:
    [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples]
    But i still have two questions:
    1. How can i concatenate two attributes in the View Instance?
    Table looks like
    ID ParentID OrderNo ShortText
    ====================
    1 (null) 10 Text1
    2 1 20 Text2
    3 2 30 Text3
    4 1 50 Text4
    The result should be 10.20.30.
    2. For the first tree-level the change of the ShortText attribut works fine:
    OrderNo: 10 -> Text1
    OrderNo: 50 -> Text4
    (Tree->SelectionListener: #{bindings.WicNodeView1.treeModel.makeCurrent}
    RichTextEditor -> partialTrigger: t1 (the Tree))
    But not for the Sub-Levels:
    The Problem is OrderNo 30 shows also Text1 (and not Text3).
    Do i have to write a method (bean) for the Selection Listener or is there another (shorter) way (i am using Oracle JDeveloper 11.1.2.1.0)?
    Thanks for your help!
    Gregor

    Hi,
    this should work the same. You create a tree from a POJO Data Control based on your POJO Model. Expose another collection pointing to the same data set and drag it as the form. Use the setting on the tree configuration dialog to set the current row in the tree as the current in the form iterator.
    Frank

  • Highlight an ADF tree node when it is clicked

    Hello every onei ,
    Does anybody has any idea how to highlight an ADF tree node when it is clicked ?
    Here is my scenario:-
    I have a popup which has a tree component on left and when we click on any node in the tree we have to display the corresponding page on right side.
    As the tree is common for all pages in the popup, i created an XHTML template with tree. All the treenode pages will use this template to display the tree.This template i am using to implement in rest of the pages.
    So when i click any link on this tree will load the corresponding JSP. But i am loosing focus. i mean selected node is not highlighting. Because we are loading the entire target page with template.
    Could any let me know how to highlight the tree node ?
    The Main problem is we are not using ADF controllers. We are using managed beans, these managed beans attached to the JSPX pages.
    Kindly guide me if any one knows solution.
    Thanks & Regards,
    Sai Sravan.P

    Hello Sai,
    I am afraid you have posted your question in the wrong forum. This forum is about Oracle On Track Communication, a next-generation social enterprise collaboration product.
    Please re-post your question in an ADF related forum and I am sure someone will be able to answer.
    Thank you,
    Ernst.

Maybe you are looking for

  • Selection condition in maintenance view

    I have one table with data related to 5 systems. MSF, RET, SER, BOB, SAV, LED. I need t o create views with related data for each system. But system BOB contains data related to MSF and RET, So instead of creating view for that i have to add MSF rela

  • Power Mac G5 wont boot past the Apple Logo

    Mac: Power Mac G5 2.7Ghz DP w/ 4gb RAM (2x1gb, 4x512mb), Leopard Last week, I formated this computer and reinstalled OS X 10.5. I updated everything, reinstalled all my applications and replaced my documents. Everything was good for a couple days. I

  • Costs to be recorded to Internal Order instead of Cost Center

    Hi, My client has created a new Personnel Area and has started hiring people for it. They did not create a cost center for this. Meanwhile, if any costs are to be recorded for the employees in this Personnel Area, the client wants them record to an I

  • For server the Node Manager associated with machine is not reachable

    Hello all, I am getting this error, when i start my Managed Server which is in shutdown state For server SAA-Dev-1, the Node Manager associated with machine vm-bea-dev is not reachable. All of the servers selected are currently in a state which is in

  • Allow user to change quiz answers

    Hi, I've made a quiz using random multiple choice questions from a question pool and have the option to allow backward movement in the quiz.  If a student selects an answer to a question and wants to go back and change it, it's not allowing the origi