Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

John like many othersOct 26 2020 — edited Oct 26 2020

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:
This function returns the Node IDs not in a sorted way (from root to target node)
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?

Comments

hiddenonearth

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

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

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

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.

1 - 4

Post Details

Added on Oct 26 2020
4 comments
575 views