11-07-2007 01:41 AM
// extract parameter values
var nodeRef = args["nodeRef"];
var node = search.findNode(nodeRef);
// add aspect
node.addAspect("kc:copyrightable");
// return to previous page
// (See http://forums.alfresco.com/viewtopic.php?t=4654 and
// http://wiki.alfresco.com/wiki/Externalised_Client_Actions.)
var goBack = "<script>history.back();</script>";
goBack;
11-07-2007 03:03 AM
var loc="http://" + location.hostname + "/alfresco/navigate/browse/workspace/SpacesStore/" + node.id
var goBack = "<script>location.href = '" + loc + "'script>";
goBack;
11-07-2007 06:19 AM
// …
// return to previous page
// (See http://forums.alfresco.com/viewtopic.php?t=4654 and
// http://wiki.alfresco.com/wiki/Externalised_Client_Actions.)
var goBack = "<script>location.href = 'http://' + location.hostname + ':8080/alfresco/navigate/showDocDetails/workspace/SpacesStore/" + node.id + "';</script>";
goBack;
11-07-2007 06:31 AM
11-07-2007 06:42 AM
11-07-2007 06:50 AM
You do the node.save action? Because else the properties modification aren't saved..
11-07-2007 06:55 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.