12-15-2012 01:37 PM
12-16-2012 10:55 AM
//get the node to copy
var nodeToCopy = getNodeToCopy();
//space is your current space if the JS is triggered via a rule
var yourNewNode = nodeToCopy.copy(space);
function getNodeToCopy(){
//return your node to copy…perhaps you'll have to make a path search here…depends on your requirements
return utils.getNodeFromString("workspace://SpacesStore/<your uid>")
}
12-17-2012 04:31 PM
Hi,
first of all you should install the javascript console addon (http://code.google.com/p/share-extras/wiki/JavascriptConsole), it's a very helpful tool for such tasks.
your script should look like this (untested):
//get the node to copy
var nodeToCopy = getNodeToCopy();
//space is your current space if the JS is triggered via a rule
var yourNewNode = nodeToCopy.copy(space);
function getNodeToCopy(){
//return your node to copy…perhaps you'll have to make a path search here…depends on your requirements
return utils.getNodeFromString("workspace://SpacesStore/<your uid>")
}
cheers, jan
var Subfolder1 = document.childByNamePath("Subfolder1");
Subfolder1 = document.createFolder("Subfolder1");
var Subfolder2 = document.childByNamePath("Subfolder2");
Subfolder2 = document.createFolder("Subfolder2");
// copy Excel model
var nodeToCopy = getNodeToCopy();
var exlmodel = nodeToCopy.copy(document);
function getNodeToCopy(){
return utils.getNodeFromString("workspace://SpacesStore/98a44d8a-4803-4b5f-a7c7-55def12bfb76");
}
07-10-2015 07:57 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.