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

Hi,

if the stock tracker app works for you then try and implement all that it uses in your application until it starts working. Then yo can cut back on e.g. not using the providerChangeSupport. Note that if the property change notification is only added to data points, no full page refresh should happen. So wondering how likely it is that you perform a property refresh on a container component instead the data component only

Frank

994132

I have similar requirement like Mr.Mohan. I want to search items from search box. If I enter some staring letters, it should show the list of items matching with that name. Anybody have any idea?

MohanSoundararajan

you can pretty much have it.

In value change listener of the search box, tie up your search method, which updates the list view's backing collection.  You can use the providerChangeSupport to reflect the changes in the list.

I am doing this, but for me, the refresh happens with a circular reload icon at the centre of the page, which I am tryiing to by pass

1 - 3

Post Details

Added on Oct 26 2020
4 comments
576 views