Hi
I request you to kindly help me with the code for a reusable tree structure component that displays a tree view as displayed in the attachment.
Consider a table named : Employee with the following fields
Emp_Fname Emp_Lname Emp_Contact Emp_Salary
John Todlee 7539512 31540
Macy Hunter 7865512 15000
Steve Abley 7964812 32656
Tom Proctor 7646879 56456
I need to pass parameter to this componenet As
generater tree (Connection String(SQL), Table_Name, No_of_Columns_t o_drawn)
I have been trying the same with Javascript but I can't get the logic to create a function that will display the tree structure dynamically on passing these parameters.
For example:
generater tree (Connection String, Employee, 4)
The tree would be such if the No_of_Columns_t o_drawn is 4
John
|------>>Todlee
|________|------>>7539512
|______________ ____|------>>31540
Macy
|------>>Hunter
|________|------>>7865512
|______________ ____|------>>15000
_______________ _______________ _______________ _______________ ______& if the No_of_Columns_t o_drawn is 3
John
|------>>Todlee
|________|------>>7539512
Macy
|------>>Hunter
|________|------>>7865512
I would be grateful if anyone could help me out with this code, I want to use it in multiple pages on my ASP application,
Thanks a Lot
I request you to kindly help me with the code for a reusable tree structure component that displays a tree view as displayed in the attachment.
Consider a table named : Employee with the following fields
Emp_Fname Emp_Lname Emp_Contact Emp_Salary
John Todlee 7539512 31540
Macy Hunter 7865512 15000
Steve Abley 7964812 32656
Tom Proctor 7646879 56456
I need to pass parameter to this componenet As
generater tree (Connection String(SQL), Table_Name, No_of_Columns_t o_drawn)
I have been trying the same with Javascript but I can't get the logic to create a function that will display the tree structure dynamically on passing these parameters.
For example:
generater tree (Connection String, Employee, 4)
The tree would be such if the No_of_Columns_t o_drawn is 4
John
|------>>Todlee
|________|------>>7539512
|______________ ____|------>>31540
Macy
|------>>Hunter
|________|------>>7865512
|______________ ____|------>>15000
_______________ _______________ _______________ _______________ ______& if the No_of_Columns_t o_drawn is 3
John
|------>>Todlee
|________|------>>7539512
Macy
|------>>Hunter
|________|------>>7865512
I would be grateful if anyone could help me out with this code, I want to use it in multiple pages on my ASP application,
Thanks a Lot
Comment