02-23-2010 05:21 PM
02-24-2010 03:16 AM
var heartbeatfile = companyhome.childByNamePath("path to heart beat file");
var d = new Date();
// update the modified property
heartbeatfile.properties["cm:modified"] = d;
// update the file content
heartbeatfile.content = d.toString();
heartbeatfile.save();
Alternatively, you can just write a webscript (http://wiki.alfresco.com/wiki/Web_Scripts) that does a search through your live space and returns the date / time of the most recently updated document.
02-24-2010 10:16 AM
var heartbeatfile = companyhome.childByNamePath("MySpace/Heartbeat/heartbeat.txt");
var d = new Date();
// update the modified property
heartbeatfile.properties["cm:modified"] = d;
// update the file content
heartbeatfile.content = d.toString();
heartbeatfile.save();
Failed to approve the document due to system error: Failed to execute script 'workspace://SpacesStore/92a0850e-0476-468a-99f6-e028401de4eb': TypeError: Cannot read property "properties" from null (workspace://SpacesStore/92a0850e-0476-468a-99f6-e028401de4eb#5)
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.