Expand my Community achievements bar.

SOLVED

Parent in tree structure

Avatar

Level 7

Can somebody explain what the below code snippet refers to? 

 

<node expr="[parent/parent/@parent-id]"/>
 
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Sanjana12 ,

 

I draw below diagram to answer your question. Hope it will help you.

Parvesh_Parmar_1-1680253496034.png

 

 

Kr,

Parvesh

 

View solution in original post

5 Replies

Avatar

Community Advisor

Hello @Sanjana12,

 

Can you please share your complete query ( for e.g. schema name etc.)  to answer it with more details? 

In general parent id is the folder id of the parent folder. 

 

Parvesh_Parmar_0-1679922687333.png

 

 

For e.g. "Options" is the main folder, its parent is "Patform" and platform parent is "Administration" folder

For "Options" folder, [parent/@parent-id] would be "Administration" folder id.

 

Thanks, 

Parvesh

 

Avatar

Level 7

Hello, thanks for reaching out. I have one question, why is [parent/@parent-id]= Administration folder?

Avatar

Correct answer by
Community Advisor

Hello @Sanjana12 ,

 

I draw below diagram to answer your question. Hope it will help you.

Parvesh_Parmar_1-1680253496034.png

 

 

Kr,

Parvesh

 

Avatar

Level 7

Thank you. I can understand it much better now. Your efforts are really appreciated. So [parent/parent/@parent-id] is basically option.platform.@parent-id right?