Hi All,I've a requirement to get deep folder structure of a particular folder using JavaScript in AlfrescoThe structure is Ex:-
Main Folder
|—- Document 1
|—- Folder 1
|—– Document 2
|—– Folder 2
|—– Document 3
|—– Folder 3
|—– Soon……………………..
I written the following code , var nodeRef = "workspace://SpacesStore/36a2704b-1fbe-4223-9dc6-169a3ff31384";
var docNode = search.findNode(nodeRef);
var childList = docNode.children;
var count = childList.length;
for(var i = 0; i < count; i++)
{
var child = childList[i].name;
logger.log( docNode.name+": children is: " + child);
}
but the output is getting only
folder1: children is: Document1
folder1: children is: Folder1
I'm unable to get remaining structure…Please suggest how to get total structureHelp is very appreciated.thanks