Hi Jayson,
Its the behavior of the tree element, the lead selection of child is carried over to the parent.
Whenever there is lead selection set and on toggling of tree node, first OnToggle event triggers and then OnLeadSelect triggers. So you can control the execution of onLeadSelect by using EXPANDED parameter of event OnToggle.
Please refer the below steps:
- Create an action ON_TOGGLE for the vent OnToggle of tree element and it will be having parameter EXPANDED
- Create an attribute in view-->attributes tab GV_EXPANDED
- Collect the parameter EXPANDED into gv_expanded
wd_this->gv_expanded = expanded.
- Now, you can use wd_this->gv_expanded to control the execution of LEADSELECT logic
Hope this helps you.
Regards,
Rama