WAM075 - Using a Tree View Weblet
In this step you will add a new treeexpand WebRoutine to handle expanding departments to add the department's sections and expanding sections to add employees for the selected section.

#std_num := (#deptment.CurChars + 1)
. . . . . .
#section := #listid.substring( #std_num )
1.  Add the following code and then review its logic. Change iii to your initials. Ensure that the WAM name contains your WAM Identifier.
     Ask your trainer if you have any questions.
Webroutine Name(treeexpand) Response(*json) Web_Map For(*input) Fields((#ancestor *json)) Web_Map For(*output) Fields((#emptree *json)) Web_Map For(*input) Fields(#onsubid #onsublvl) Clr_List Named(#emptree)Case (#onsublvl)