Parent in tree structure | Community
Skip to main content
Level 6
March 26, 2023
Solved

Parent in tree structure

  • March 26, 2023
  • 1 reply
  • 1159 views

Can somebody explain what the below code snippet refers to? 

 

<node expr="[parent/parent/@parent-id]"/>
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Parvesh_Parmar

Hello @sanjana12 ,

 

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

 

 

Kr,

Parvesh

 

1 reply

Parvesh_Parmar
Community Advisor
Community Advisor
March 27, 2023

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. 

 

 

 

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

 

Parvesh Parmar – Adobe Community Advisor https://www.linkedin.com/in/parvesh-parmar/
Sanjana12Author
Level 6
March 29, 2023

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

Parvesh_Parmar
Community Advisor
Parvesh_ParmarCommunity AdvisorAccepted solution
Community Advisor
March 31, 2023

Hello @sanjana12 ,

 

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

 

 

Kr,

Parvesh

 

Parvesh Parmar – Adobe Community Advisor https://www.linkedin.com/in/parvesh-parmar/