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

How to open a tree to a specific node? (Apex 19.2)

John like many others
John like many others Member Posts: 116 Blue Ribbon
edited Oct 26, 2020 4:41PM in APEX Discussions

Hello

I would like to open a tree to a specific hierarchical position after it was refresh (comes in closed state).

Based on the tree widget API I assume I have to open all nodes above the target. I can get all the NodeIDs before I would refresh the treeView: getExpandedNodeIds() but there are two problems with that:

  1. This function returns the Node IDs not in a sorted way (from root to target node)
  2. The Node ID is not stored in the HTML structure, so can't be referenced that way

The nicest/easiest way would be to hand over a jQuery object or a DOM object that defines the target node to which the tree should be expanded. Is something like this available and I didn't see it? If not, is there any other way to get the tree expanded to a specific node?

Tagged:

Answers

  • hiddenonearth
    hiddenonearth Member Posts: 93 Red Ribbon

    Hello John,

    i am also in need of an tree widget API. Could you recommend an API with a proper documentation. Thank you.

  • John like many others
    John like many others Member Posts: 116 Blue Ribbon

    Yes, I can. I another project (a while ago) I worked with Kendo UI and it was a breeze to work with that one! Configuration and methods are all in a consistent way, no hassle between DOM and HTML "objects", easy to find and manipulate nodes/leafs, no complete tree-rerender of the tree after adding an element, runtime samples and complete/clear documentation.

    I guess I'm not allowed to link it here but I anyway can't use links here. Search for "kendo ui jquery treeview". They offer many other widgets in that package, working all the same (consistent) way.

    Downside: it's not for free

    Upside: There is an opensource/community version for free (usually some version behind the not-free version). I have never checked this version, so can't say much about it.

  • hiddenonearth
    hiddenonearth Member Posts: 93 Red Ribbon

    What I exactly need is a workaround in Oracle Apex 20 where I can display a key figures scheme / horizontal tree (similar to the Du Pont scheme) with the option to show, hide delete nodes and do computations.

    Do you have any idea on how to do this or know any free API for this?

  • John like many others
    John like many others Member Posts: 116 Blue Ribbon

    That is something very specific. Tbh and out of the box, I don't think you can do that out of the box with Kendo UI. I would check the Internet specificly for widget being able to do what you want.