This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 31st, when you will be able to use this site as normal.

    Forum Stats

  • 3,890,899 Users
  • 2,269,649 Discussions
  • 7,916,821 Comments

Discussions

Tree view : Missing '+' on top level nodes

DenverScott
DenverScott Member Posts: 20
edited Jul 16, 2014 5:59AM in APEX Discussions

Version : 4.2.0.00.27

Good Morning -

Hopefully this is an easy question ... I've been searching around but cannot find the solution.

     Tree Template : Classic

     Using setting Activate Node Link with : "Single Click"

I have a tree view with active links on the nodes.  When you single click on a node, the link is followed as desired.  When you double click on a node, the node branch is expanded (as desired) but the link is ALSO followed (not desired).

It would be really nice if there was a expand / collapse symbol for each node on the tree, at all levels.  In CLASSIC view, I get this symbol for child nodes of the parent branch, but the parent branch has nothing.  I can find no way to expand / collapse top level nodes without double click.

Is there a template setting? 

Thanks,

Scott

Tagged:
Pete MahonGrizzled

Best Answer

  • Tom Petrus
    Tom Petrus APEX developer BelgiumMember Posts: 1,151 Gold Trophy
    Answer ✓

    the node expanding missing is caused by some CSS and can be fixed with this:

    body .tree > .ltr > li {

      display: block;

    }

    In apex 5, at least EA2, the tree component is still vastly outdated at version 0.9.9a2. I've a plugin which brings jstree 1.0.0 to apex at my github. It is very much functional but might still need some minor features. My demo page is still rudimental but it all works. jstree version 3 has been released in the mean time, and once I'm satisfied with what I have now I'd like to upgrade to v3. https://github.com/tompetrus/oracle-apex-ajax-tree I however consider the strength of the tree to be the javascript side, and many implementations in the tree are to be done with javascript. I'm not considering coding in much more than what I have at the moment.

    Pete MahonGrizzled

Answers

  • Pete Mahon
    Pete Mahon Member Posts: 106

    Bump! Just started working with trees and I've realised the same.

    APEX Dev team - what version of jsTree is shipping with APEX 5? Are there improvements planned?

  • Tom Petrus
    Tom Petrus APEX developer BelgiumMember Posts: 1,151 Gold Trophy
    Answer ✓

    the node expanding missing is caused by some CSS and can be fixed with this:

    body .tree > .ltr > li {

      display: block;

    }

    In apex 5, at least EA2, the tree component is still vastly outdated at version 0.9.9a2. I've a plugin which brings jstree 1.0.0 to apex at my github. It is very much functional but might still need some minor features. My demo page is still rudimental but it all works. jstree version 3 has been released in the mean time, and once I'm satisfied with what I have now I'd like to upgrade to v3. https://github.com/tompetrus/oracle-apex-ajax-tree I however consider the strength of the tree to be the javascript side, and many implementations in the tree are to be done with javascript. I'm not considering coding in much more than what I have at the moment.

    Pete MahonGrizzled
  • Pete Mahon
    Pete Mahon Member Posts: 106

    Perfect - this makes a big difference thank you Tom.

    I'm still baffled that jstree has not been updated. A more interactive hierarchy functionality would increase APEX's value as a corporate tool for navigating people hierarchies, if nothing else. This opens up a wealth of possibilities in terms of applications.

This discussion has been closed.