[UIX] Tree - expanded state problem

Hi,
I'm experiencing problemswith my UIX Tree.
In my tree I expanded some nodes (so I can view its contents :))
Normally when I browse to some other pages and come back to the page containing the tree, it remembered the state in which I left it (same nodes still expanded). When I decide to insert new data (through a form page)to the database of which the tree 'feeds' itself, I get errors when browsing back to the page containing the tree, because it remembers its last state (which is nolonger valid, because of new records).
What I want is that I can go back to the page containing my tree, with the tree refreshed (containing my newly inserted data) and still leave those nodes expanded that expanded earlier.
Is this possible? (And is my problem clear? ;) )
Gr.
Philip

I'm afraid our proxy does not support mutable trees. The only way to have it work at all is to create a new proxy when you mutate the tree data, which means you will not be able to save the expanded/collapsed state.
This won't help you now, but ADF UIX is being migrated to ADF Faces which is based on JSF. In that realease mutable trees will be supported. There are early access releases of ADF Faces available here if you're interested:
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html

Similar Messages

  • UIX Tree: "Expand All" Functionality

    Hello,
    I have a question about the Tree in UIX. We are using the Tree component in a UIX Page (JDeveloper 10.1.2). With the tree we also make use of the ClientStateTreeDataProxy class.
    It is possible to expand and collapse the tree, but I want to have 1 button to be able to expand all nodes on the first level of the tree or if this isn't possible to expand all the nodes.
    I have try to simulate this using struts actions, but I'm unable to simulate the state request-parameter. I also try to look if something is possible with the ClientStateTreeDataProxy class. Which possibilities are there to manipulate the tree component?
    Thanks, Dennis

    Thanx Jeanne,
    You brought me on a idea with the UIX Developer's Guide and EXPANDABLE_EXPANDED value.
    I couldn't figure out how the expand property was filled, because it wasn't done in the ADF BC ViewObject. We have a Utility class that creates a DataObject from the ViewObject Data and here the expand property was set.
    Now it was easy to build a ExpandAll option. It is possible to access the HttpServletRequest object were the DataObject is created. By setting a attribute in the request I could react on that and give the expand property indeed the value EXPANDABLE_EXPANDED.
    Dennis

  • Tree expand link problem

    I have a tree which works a treat - in the link I have the following
    'f?p=&APP_ID.:1:&SESSION.::::P1_ID:'||id||':#'||ID LINK,
    so that when the text is clicked, the page loads with the text at the top of the tree region (my tree is several pages high if all nodes are opened).
    However, when I expand a node, using the [+] link, it appears that the link is not using the anchor bookmark above and so if I open one too far down, the region has to be scrolled. Has anyone modified the template to do this please?
    Phil

    Yeah - sorry Scott. It did not work so when I recreated this example for the forum I omitted it.
    This is what I had done for the Unexpanded Parent and the Unexpanded Parent Last respectively... (I'm passing ID to the A1 column too in the TREE query)
    (I've put it into the page for you to see. Email me if you would like the app login details)
    <pre>
    <td><"><img src="#IMAGE_PREFIX#Fndtre03.gif" width="16" height="22" border="0"></a></td>
    <td><a href="#DRILL_DOWN##<span><a name=&A1. />"><img src="#IMAGE_PREFIX#Fndtre02.gif" width="16" height="22" border="0"></a></td>
    </pre>
    Scott I used pre tags but the above seems to have been stipped out anyway :(
    Message was edited by:
    Phil UK

  • How to Obseve the change status of the tree expander.

    Hi friends,
    I need to take some action on the change of the tree expander state. All I need is to know how can we get the notification of the change in the tree expander status.

    Hi rizwan haque,
    Try posting this question in the InDesign SDK forum--someone will probably be able to help you there.
    Thanks,
    Ole

  • Open Tree control in expanded state

    I have built a small framework to display demos -- and use an
    XML-driven tree component to provide access to demo segments and
    published files.
    I would like the TOC in the Tree component to open in
    expanded state, but am having no luck with myTree.setIsOpen.
    The tree connects to the XML OK -- I can expand/collapse,
    etc... and it all looks great. But I cannlt get the tree to open
    expanded.
    The code I'm trying to open the TOC expanded:
    this.demoTOC.setIsOpen(this.demoTOC.getTreeNodeAt(0), true);
    The XML that's connected to the tree:
    <?xml version="1.0" encoding="UTF-8"?>
    <toc>
    <demosection label="MY TITLE" >
    <demo ID="00demo.flv" label="title01" isBranch="true"
    />
    <demo ID="01demo.flv" label="title02" isBranch="true"
    />
    <demo ID="02demo.flv" label="title03" isBranch="true"
    />
    <demo ID="03demo.flv" label="title04" isBranch="true"
    />
    </demosection>
    </toc>
    If anyone can point out what I'm doing wrong, I am ready to
    learn.
    Thx.

    Never mind -- figured it out.
    It was a scoping issue -- calling the setIsOpen form inside
    the XML loader function.

  • Open tree component in expanded state

    I have built a small framework to display demos -- and use an
    XML-driven tree component to provide access to demo segments and
    published files.
    I would like the TOC in the Tree component to open in
    expanded state, but am having no luck with myTree.setIsOpen.
    The tree connects to the XML OK -- I can expand/collapse,
    etc... and it all looks great. But I cannlt get the tree to open
    expanded.
    The code I'm trying to open the TOC expanded:
    this.demoTOC.setIsOpen(this.demoTOC.getTreeNodeAt(0), true);
    OR
    this.demoTOC.setIsOpen(this.demoTOC.getTreeNodeAt(0).getTreeNodeAt(0),
    true);
    The XML that's connected to the tree:
    <?xml version="1.0" encoding="UTF-8"?>
    <toc>
    <demosection label="MY TITLE" >
    <demo ID="00demo.flv" label="title01" isBranch="true"
    />
    <demo ID="01demo.flv" label="title02" isBranch="true"
    />
    <demo ID="02demo.flv" label="title03" isBranch="true"
    />
    <demo ID="03demo.flv" label="title04" isBranch="true"
    />
    </demosection>
    </toc>
    If anyone can point out what I'm doing wrong, I am ready to
    learn.
    Thx.

    Never mind -- figured it out.
    It was a scoping issue -- calling the setIsOpen form inside
    the XML loader function.

  • UIX:Tree Control

    Hi,
    Has anybody used or know to use the UIX:Tree control part of the UIX Simple JSP Components? If so can you please tell me if this helps creating a DHTML Tree component?
    Thanks
    mn

    Hello there,
    You should check out the "Data Trees" chapter of the UIX Developer's Guide. It goes into a lengthy description of the tree component and how to code it in UIX. The tree component does not use DHTML, but rather rerenders based on its state (what is expanded and collapsed).

  • 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?

  • Trying to override the default af:tree expanded and collapsed icons

    Hi,
    I initially hijacked a thread from 2010 that was vaguely similar to what I need to ask, but a kind forum moderator split my post out to stand on its own merits.
    I am trying to override the default af:tree expanded and collapsed icons I am using the following styles for my af:tree but they are not reflecting any thing on my tree with the styleclass orgType.
    af|tree.orgType::expanded-icon {
    content: url("../images/ac-expand.png");
    cursor: default;
    af|tree.orgType::collapsed-icon {
    content: url("../images/ac-collapsed.png");
    cursor: default;
    af|tree::expanded-icon {
    content: url("../images/folder_open.png");
    cursor: default;
    af|tree::collapsed-icon {
    content: url("../images/folder_close.png");
    cursor: default;
    After working for long hours I realized that there is some problem with af:tree and treeTable. They are not taking the styles where as for the other components, every thing works fine. Is there any way to achieve the task. Could you suggest any alternative way to do this. Thanks in advance. Your suggestions for this task can really help me and my team a lot.
    Regards,
    Krishna Sumanth.

    Hi,
    do the icons show without the style class reference used in the skin file? If so, then the style class for this component might be rendered differently for the tree, e.g.
    .orgType af|tree ...
    Frank

  • Bug report: Invalid tree select statement

    Hi,
    there seem to be two issues with tree regions.
    1) The SQL statement of the tree region isn't validated as it is done for example for LOV statements when the user apply the changes in the builder.
    2) If a tree SQL statement is invalid and you run the page, it doesn't show the SQL error, instead the error
    Warning: Tree root ID "1" not found
    is displayed, which is very misleading where the actual problem is! It would be better if the SQL error is displayed.
    Thanks
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

    Bug filed, thanks.
    Scott

  • Accordion creationPolicy="all" effect on tree expand

    facing very strange problem
    i have placed 2-3 tree component inside Accordion container.
    On each tree's creationComplete i called function to expand first level.
    when I set creationPolicy of Accordion to "all", tree expand is not working.
    and if I removed creationPolicy from Accordion, all trees are expand to first level at creationComplete but only tree will not expanded.
    and idea why this happen?

    Your trees' creationComplete routines are being called at an earlier time than they were before.  So maybe something isn't set up yet that they depend on.

  • 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.

  • UIX tree, table-based example needed

    Has anyone ever used the UIX tree element (JDev help, UIX developer's guide, chapter 15) in combination with BC4J and/or Jheadstart generated UIX-pages? Any examples are welcome. I also can't get the (static :-/) example in the Help to expand when clicking the +/- icons. Help on this one too please. Tnx.

    You should try to post this question on JDevelper Forum.

  • Af:tree expand/collapse customization

    hi all,
    i have problem with af:tree expand and collapse.
    I want to expand only one node in each level.
    i mean let say i have 3 node in same level.
    i expand first one then i expand second node again. at that time, first one should be collapsed automatically.
    So, user can expand only one node in each level at one time.
    is it possible?
    With Regards,
    WP

    hi Sireesha,
    it is really helpful. but it is still something wrong for child node.
    only root node is working as i want.
    but when i click on child node, it go back to default and every node is collapse.
    if i found the following logic is not working for child node.
    discloseRowKeySet.add(firstKey);
    eg. let say fristkey is (2,0) then it should open 2 and then second level 0. but it can't open any node.
    do u have any idea?
    With Regards,
    WP

  • ADF UIX Tree Component

    Hi
    I have created ADF UIX Tree Component on my screen and i want to have button expand all / collapse all for my tree .
    Can i create event for expand all / collapse all ADF UIX Tree ?
    If i can ,could you please advise how i should to do ?
    Thanks

    Hi Daniel,
    Are there any one can tell me when the new ADF UIX
    demo based on uix 2.2 be released?I'm not sure when any sample applications will be released, but there is an ADF UIX tutorial available here:
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I want to know if we can get databind uix tree
    component (or other ui components) from ADF data
    action control which return dataobject and something
    else.I'm not sure about the tree component - I'll try to find out whether that is/will be supported. Once your data controls are available in the Data Control Palette, you can bind them to components in your UIX page by:
    1. Selecting the data control that you want to bind.
    2. Selecting a component type from the "Drop As" choice.
    3. Dragging the data control onto the UIX page.
    This process is illustrated in the tutorial above.
    Andy

Maybe you are looking for

  • Opening balances in RG1

    Hi All, As per the new excise requirement we have to show the opening and closing balances of all the materials in RG1 register. Please help me how to get this? What is Extraction Indicator in J2irg1bal table? Please help Thanks Prasad

  • Error during configuration process while installing obiee 11.1.1.7.0 in windows server 2012

    HI.. I'm having an issue while installing obiee 11g(11.1.1.7.0) in windows server 2012 and using the database as ms sql server 2008. During configuration process after the installation process is completed , here the process is stopped at "Step:execu

  • SSRS in Sharepoint 2010

    Hello, We have SSRS 2008 r2 add in SharePoint 2010. We have new data warehouse runs SQL Server 2012. Do we need to upgrade add-in to SSRS 2012. If we need to do it, do we need to purchase a separate license? Or can we just upgrade it? Again if we nee

  • LiveCycle Workbench ES2 crashing on Win 7

    I have installed LiveCycle workbench on my Win 7 PC. Every time I try to open a process in process designer, it crashes with messae 'Java(TM) Platform SE binary has stopped working'

  • exception in struts-config.xml

    hi all I added a validate method in my struts action form. public ActionErrors validate(........) ActionErrors errors=new ActionErrors(); errors.add("symbol",new ActionError("add.key.like"); and in jsp form I used <html:errors/> if any error occured