12-14-2011 03:34 AM
var node = search.findNode(nodeRef);
var scriptURL= "/cons/search?findNode=" + nodeRef;
var connector = remote.connect("alfresco");
var node = connector.call(scriptURL);
12-14-2011 03:47 AM
12-14-2011 05:05 AM
var scriptURL= "/slingshot/doclib/node/" + nodeRef.replace(":/", "");
var connector = remote.connect("alfresco");
var result = connector.call(scriptURL);
if (result.status == 200){
var data = eval('(' + result + ')');
data.removeAspect("cm:versionable");
}
if(data.length > 0){
data[0].removeAspect("cm:versionable");
}
12-14-2011 05:52 AM
var myAlfrescoNode = search.findNode(data.item.nodeRef);
myAlfrescoNode.removeAspect("cm:versionable");
Ben
12-14-2011 06:05 AM
var data = eval('(' + result + ')');
Data become a Javascript Object, isn´t it??12-14-2011 06:14 AM
12-14-2011 09:07 AM
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.