cancel
Showing results for 
Search instead for 
Did you mean: 

How to deselect the tree node programmatically??

former_member217000
Active Participant
0 Kudos

Hi Expert,

I am showing the org structure in the tree format in the webdynpro application. User select the node i.e. Org unit and data displays accordingly.

I want to deselect the selected node/org unit is user presses a particular button. Can you tell me how to deselect the tree node programmatically??

Regards,

Sameer

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You can use method CL_WD_DYNAMIC_TOOL=>SET_TREE_LEAD_SELECTION( ). ( don't specify any context element, then it will deselects the selected node)

Or, you can try, using set_lead_selection_index( index = -1 ) method of context node to remove the lead selection.

hope this helps,

Regards,

Kiran

former_member217000
Active Participant
0 Kudos

Hi Kiran,

CL_WD_DYNAMIC_TOOL=>SET_TREE_LEAD_SELECTION( ) is not working. Giving Assert violation error.