08-14-2015 08:21 AM
function main()
{
var node = [];
node = search.findNode("workspace://SpacesStore/"+args["uuid"]);
model.childResults = node.children;
} main();
<#macro parseChild objectModel>
<#assign loop = 0 />
<#list objectModel as child>
<#if (loop > 0) >, </#if>
{
"ID" : "${child.id}",
"PROP_NAME" : "${child.properties["name"]}",
<#if child.properties["cf:author"]?exists>
"AUTHOR" : "${child.properties["cf:author"]}",
</#if>
<#if child.properties["cf:data_cf"]?exists>
"PROP_CREATED" : "${xmldate(child.properties["cf:date_cf"]?datetime)}",
</#if>
"TYPE" : "${child.type}",
"NUMBER_CHILDS" : ${child.children?size}
<#assign loop = loop + 1 />
}
</#list>
</#macro>
<#if (childResults?size > 0)>
{
"nodes" :
[
<@parseChild childResults/>
]
}
<#else>
Empty
</#if>
08-14-2015 04:39 PM
function main()
{
var node = [];
node = search.findNode("workspace://SpacesStore/"+args["uuid"]);
model.childResults = node.children;
model.childResultsSize = node.children.length;
} main();
<#macro parseChild objectModel>
<#assign loop = 0 />
<#list objectModel as child>
<#if (loop > 0) >, </#if>
{
"ID" : "${child.id}",
"PROP_NAME" : "${child.properties["name"]}",
<#if child.properties["cf:author"]?exists>
"AUTHOR" : "${child.properties["cf:author"]}",
</#if>
<#if child.properties["cf:data_cf"]?exists>
"PROP_CREATED" : "${xmldate(child.properties["cf:date_cf"]?datetime)}",
</#if>
"TYPE" : "${child.type}",
"NUMBER_CHILDS" : ${child.children?size}
<#assign loop = loop + 1 />
}
</#list>
</#macro>
<#if (childResultsSize > 0)>
{
"nodes" :
[
<@parseChild childResults/>
]
}
<#else>
Empty
</#if>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.