Responding to item selection

LANSA WAM

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

onsubmit_id_field

The ID or key of the selected item

Level

onsubmit_level_field

The level of the selected item

Ancestors

onsubmit_ancestor_list

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.