Responding to item selection
When a tree item is clicked, the Tree View will invoke a webroutine. If the listtype is 'unlevelled' then the webroutine specified in list_onselect_wamname_field/list_onselect_wrname_field will be invoked. If the listtype is 'levelled' or an item specific webroutine has not been specified, the webroutine specified in onselect_wamname/onselect_wrname will be invoked.
Two fields and a list are sent to the webroutine.
Field |
Tree View Property |
Description |
ID |
The ID or key of the selected item |
|
Level |
The level of the selected item |
|
Ancestors |
A list containing the ancestors of the selected item. The list will contain a single field which will be the same as the ID field of the working list used to create the tree. |
While the properties above allow you to specify what fields the information is put into, you still need to define those fields in the WEB_MAP for the onsubmit webroutine.