Defining Summary Tree Details
Use the Tree Details page (PSTREESTRCTDETL) to specify the record and field information used to summarize the tree.
To define tree details for the summary tree structure in PeopleSoft Application Designer:
-
Select
-
Through PeopleSoft Application Designer, create a view with a record type of SQL View.
For example, if you create a summary tree based on a department detail tree that is keyed by setID, and the detail tree uses PS_TREE_NODE_TBL to store the node user data, then your SQL view might contain the following fields:
-
SETID
-
DEPTID
-
EFFDT
-
DESCR
-
-
Use the following SQL:
Select A.SETID, A.TREE_NODE, A.EFFDT, B.DESCR from PSTREENODE A,PS_TREE_NODE_TBL B where A.SETID = ‘<your setid>’ and A.TREE_NAME = ‘<your tree name>’ and A.SETID = B.SETID and A.TREE_NODE = B.TREE_NODE and A.TREE_LEVEL_NUM = <your detail tree level number to be summarized> and B.EFFDT = (select MAX(EFFDT) from PS_TREE_NODE_TBL where SETID = B.SETID and TREE_NODE = B.TREE_NODE and EFFDT <= A.EFFDT)Note:
In this SQL statement,
TREE_LEVEL_NUMmust match the level number specified on the Tree Structure Property page. -
Through browser, select
-
Search for an existing tree structure or create a new one.
-
Select the Details tab on the Tree Structure Properties page.
The Tree Details page appears.
-
In the Record Name field, enter the SQL view that you created.
Confirm that the setID, tree name, and level number in the view is the same as what you entered on the Tree Structure Properties page.
-
In the Field Name field, enter the field from the view that you are summarizing.
For example, DEPT_ID.
-
Click the Save button to save your new summary tree structure.