Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
22Activity
0 of .
Results for:
No results containing your search query
P. 1
Lesson 8 - Hierarchial Tree

Lesson 8 - Hierarchial Tree

Ratings:

4.5

(4)
|Views: 3,973 |Likes:
Published by Vikram Kohli
In this example we will work on the tree component of ADF faces. We use a hierarchal tree which is showing department as a root node and all the employees under that department as leaf nodes. Along with that we have an employee form which will show the employee details when user will click on the particular employee name in the tree.
In this example we will work on the tree component of ADF faces. We use a hierarchal tree which is showing department as a root node and all the employees under that department as leaf nodes. Along with that we have an employee form which will show the employee details when user will click on the particular employee name in the tree.

More info:

Published by: Vikram Kohli on May 07, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

12/16/2012

pdf

text

original

 
In this example we will work on the tree component of ADF faces. We use a hierarchal treewhich is showing department as a root node and all the employees under that department asleaf nodes. Along with that we have an employee form which will show the employeedetails when user will click on the particular employee name in the tree.1)Create a view object with name “DeptTreeViewObj” with following query:-SELECT department_id,department_name,manager_id,location_id FROMdepartments2)Create another view object with name “EmpTreeViewObj” with following query:-SELECT employee_id , first_name ,last_name,email,phone_number,job_id,salary,commission_pct,manager_id,department_idFROM employees3)Create a view link “DeptEmpViewLink” as:-4)Add the above created view object and the view link objects in the AM.
 
5)Create a JSPX page name Tree.jspx.6)Add the panelHorizontal component from the Component palette inside the page.7)Drag and drop the DeptTreeViewObj1 from the Data Control palette on the panelHorizonatlcomponent.And select the Tree
ADF tree from the context menu.
 
8)Tree Binding editor will appear where select the “DeptTreeViewObj” from the “DataCollection Definition panel”. Select “DepartmentId” and “DepartmentName” from theDisplayAttribute and select “EmpTreeViewObj” from the “Branch Accessor”.And click on the Add New Rule button. This rule will display the Department as the rootnode.Here the
Data Collection Definition
: section specifies the view object which will populate the tree nodes.
Display Attribute section
specifies the attributes to bedisplayed in the tree node. And
Branch Rule Accessor section
specifies the view link which is related to the view object selected in the
Data Collection Definition section.
9)Again select the “EmpTreeVieObj” from the “Data Collection Defination” section , select“FirstName” from the “Display Attribute” section. And click on the “Add New Rule” button. And click Ok .This rule will display the employee’s first name as the leaf node.

Activity (22)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Raju Vatsavayi liked this
Attila Kiss liked this
micah_audley liked this
mjtb liked this
Konatham Venkat liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->