Logout
Home
Dynamic Actions
Plug-ins
Charts
Maps
RESTful Web Service
Interactive Report
Tabular Form
Item Type
Sub Regions
Trees
Home
Tree
Click on an employee to show their details
Employee
Job Title
Manager
Hire Date
Salary
Commission
Department
KING
PRESIDENT
-
17-NOV-1981
1000
-
10
1 - 1
Column Actions
Search
SQL for Tree
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"ENAME" as title,
(case when level = 1 then 'https://static.oracle.com/cdn/apex/24.2.14/r_blue_arrow.gif'
when level = 2 then 'https://static.oracle.com/cdn/apex/24.2.14/r_blue_arrow.gif'
else 'https://static.oracle.com/cdn/apex/24.2.14/r_blue_arrow.gif' end) icon,
"EMPNO" as value,
null as tooltip,
'f?p=34738:22:2916477087349::::P22_SELECTED_NODE:'||empno
as link
from "APEX_PM"."APA$NF_EMP"
start with "MGR" is null
connect by prior "EMPNO" = "MGR"
order siblings by "ENAME"
Information
This page contains a Tree and Interactive Report, both based on the EMP table, displaying Employee Information. When a node of the tree is selected, the Interactive Report will be updated to display the information for the selected Employee. The tree uses a hidden item,P22_SELECTED_NODE, to hold the last selected node of the tree, and on page reload the last selected tree node is highlighted.
The tree also uses custom icons, displaying a different icon for each level of the tree.