This chapter discusses how to:
Maintain trees.
Maintain tree structures.
Subscribe to TREE_CHANGE messages.
This section discusses how to:
Perform audits and delete trees.
Copy trees.
View trees.
Page Name |
Object Name |
Navigation |
Usage |
Tree Maintenance |
PSTREEMAINT |
Audit a closed tree, copy a tree, delete a tree, or view a tree. |
|
Copy Tree |
PSTREEDEFN |
On the Tree Maintenance page, select a tree and click Copy. |
Copy a tree. |
Tree Viewer |
PSTREEVIEWER |
On the Tree Maintenance page, select a tree and click View. |
View a tree. |
Access the Tree Maintenance page.
Displays the key type associated with this tree. SetID Indirection: The tree is identified by tree name and setID. Business Unit: The tree is identified by a business unit. User Defined Node Key: The tree is identified by a user-defined key. None: The tree does not contain an additional key. It is keyed only by tree name and effective date. |
|
User Key |
Displays the user-defined node key. If the key type is None, the field is blank. |
Valid Tree |
Displays the status of the tree. |
Perform Audits |
To audit a tree, select its check box and click the button. The Last Audit field for the tree changes to Valid Tree if the tree passes the audit. If the tree fails the audit, the Last Audit field changes to Draft Tree. Note. You can get a detail listing of audit errors by running the Repair Tree batch program. |
Copy |
To access the Tree Definition and Properties page and copy a tree, select a tree check box and click the button. |
Delete |
To delete a tree, select its check box and click the button. |
View |
To access the Tree Viewer page and view a tree, select a tree check box and click the button. |
Note. Trees secured by PeopleSoft Object Security for anything but full access are not listed and cannot be updated or deleted from the Tree Maintenance page.
See Also
Make any necessary changes and click Copy.
Access the Tree Viewer page.
Note. Trees displayed in View mode do not differentiate between standard nodes and branches. All nodes expand and collapse so that you can view the whole tree. Use the Expand Node Hierarchy icon to expand all child nodes.
Click Close to return to the Tree Maintenance page.
Note. If the multi-user environment is enabled, users will not be able to delete a tree if any branch of the tree—or the tree itself—is checked out by any user.
This section discusses how to:
Delete tree structures.
Copy tree structures.
View tree structures.
Access the Tree Structure Maintenance page.
Displays the name of the record that stores information about the tree nodes. |
|
Displays the name of the record definition that corresponds to the kind of detail value in the structure. |
|
Copy |
To access the Copy Tree Structure page and copy a structure, select a structure check box, then click the button. |
Delete |
To delete a tree structure, select its check box, then click the button. You cannot delete a structure that is currently being used by a tree. |
View |
To access the Tree Structure Properties page and view a structure, select a structure check box, then click the button. |
Note. Tree structures secured by PeopleSoft Object Security for anything but full access are not listed and cannot be updated or deleted from the Tree Structure Maintenance page.
Access the Copy Tree Structure page.
To copy a tree structure:
Enter a new tree structure ID.
Change the description in the New Description field.
Click the Copy button.
You return to the Tree Structure Maintenance page. The new tree structure is listed.
Access the Tree Structure Properties page.
Select the Levels, Nodes, and Details tabs to view additional information.
Click OK or Cancel to jump to the Tree Structure Maintenance page.
See Also
Every time you perform an action in PeopleSoft Tree Manager to change a tree (such as rename, delete, any kind of save, copy, branch, or unbranch), a TREE_CHANGE message is published with the Tree Key information in the PSTREEPUBSUB record. Through Application Designer, you can enter a subscription process that runs every time this message is published.
This section discusses how to:
Enter a subscription process.
Enter a subscription program.
Note. The field EVENT_ID is defined in the Financials database as a Char,20 field, and is used by a number of applications. In PeopleTools PSTREEPUBSUB, the field was defined as a Number,6. To avoid conflicts, EVENT_ID has been removed from PSTREEPUBSUB,
and replaced with TREE_EVENT_ID.
This change may affect Apps who subscribe to the TREE_CHANGE event, and check for EVENT_ID in PeopleCode using field name.
To enter a subscription process:
Select Go, PeopleTools, Application Designer.
Select File, Open.
Open a message as the Object Type.
Enter the selection criteria for the message and click Open.
The record that is published is shown to the right. Your program can check for the following EVENT_ID numeric values:
TreeCopyMsg
TreeCreateMsg
TreeDeleteMsg
TreeRenameMsg
TreeChangeMsg (this includes any type of save)
To enter a subscription program:
Right-click Message Subscription and select Insert Message Subscription.
The Message Subscription Properties dialog box appears.
Enter the name of the PeopleCode program you want to run.
See Also
Creating Message Subscriptions