AnsweredAssumed Answered

not able to fetch the parent of a node in share side js

Question asked by ayushi.agrahari on Feb 21, 2018
Latest reply on Feb 22, 2018 by krutik.jayswal

I am trying to find the parent of a node in node-header.get.js by doing the following;

 

   var str = model.nodeRef;
   logger.log("childnoderef"+str);
   var parentNodeRef = str.parent;
   logger.log("parentNodeRef"+parentNodeRef);

 

 but parentNodeRef is coming undefined

 

On some googling,I have found out that parent property is not available in share-side js(node-header.get.js)

 

can anyone tell me any way to find the parent of a node in share side js

Outcomes