How to get label of parent node even the child tree is selected in Tree View Perspective

this is my tree view and I want the script to get the label of the parent node(Screen1/Screen2) even though the child node(item1/item2) is selected and to send that label string further to another view/session custom prop coz items view gonna be same for all screens but only screen name gonna change so how can I get the parent node(Screen1/Screen2) …plz help me

image

treeTest_2022-01-04_0505.zip (5.7 KB)
try importing the view that I attach

3 Likes

this is what I want …Thanks a lot :+1: :slight_smile: :heart_eyes:

Hello,
Is there any way to get the path in label format? I need to show specific hierarchy levels in the header.
like: site>department>line>machineName

image

Thanks.