ADF: af:tree custom context menu using selected row values by Rubén Rodríguez Santiago

Posted: December 13, 2015 in JDeveloper & ADF
Tags: , , , , , , ,

 

clip_image001When you right click on a tree node you can see a context menu with some options like expand or collapse a node or all nodes. You can also add a custom options easily by using contextMenu facet. I am going to show you how to add a custom context menu and use selected node values in the options label.

You can download this example from my Github repository.

You can check a post in JDeveloper & ADF forums with this requirement.

To create the tree structure that we will use in this example we are going to use Employees table of hr schema. We should have this structure in the data model.

After we have our views added to the application module, we have to drag and drop EmployeesView1 from the datacontrol palette. The next step is to add the children in the tree binding so we click on the add green button and select ‘EmployeeView’. We are only going to use one attribute, but you can add as many as you want. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s