Oracle Forms - Javabean Tree
Oracle Forms - Javabean Tree
Oracle Forms
Handle hierarchical trees
Home page
1. Purpose
The goal is to build a tree menu with the possibility of enabling the database roles.
Because we want to handle a database stored menu, this sample use the first option with a
record group populated by a database table.
https://sheikyerbouti.developpez.com/tree/tree.htm 1/6
4/19/2018 Oracle Forms – Javabean
ICON contains the icon name (without extension) attached to the node.
If you want to enable the database roles in the tree menu, you have to execute the following
steps :
Here is the content of the tables after the provided script is executed:
Table : MENU
Table MENU_ROLES :
ID ROLE
1 ROLE_MENU1
2 ROLE_MENU1
3 ROLE_MENU1
4 ROLE_MENU1
5 ROLE_MENU1
6 ROLE_MENU2
7 ROLE_MENU2
HTREE := FIND_ITEM('BL_TREE.MENU');
V_IGNORE := POPULATE_GROUP('RG_TREE');
FTREE.SET_TREE_PROPERTY(HTREE, FTREE.RECORD_GROUP,'RG_TREE');
Two buttons are added to show how to expand or collapse all the nodes of the tree:
https://sheikyerbouti.developpez.com/tree/tree.htm 3/6
4/19/2018 Oracle Forms – Javabean
A double click populate the “Node activated” display item and call the corresponding screen:
https://sheikyerbouti.developpez.com/tree/tree.htm 4/6
4/19/2018 Oracle Forms – Javabean
https://sheikyerbouti.developpez.com/tree/tree.htm 5/6
4/19/2018 Oracle Forms – Javabean
https://sheikyerbouti.developpez.com/tree/tree.htm 6/6