10-14-2007 10:43 AM
Die Operation Transaction didn't commit: Failed to execute script 'workspace://SpacesStore/f5b9d977-7a42-11dc-a3bd-0fbb90973a69': TypeError: Cannot read property "@cm\:name:*doc" from undefined (AlfrescoScript#3) hat einen Systemfehler verursacht.
// check if it is any .doc file in the folder already
// if there is one, move it to temp
var nodes = space.childrenByLuceneSearch["@cm\\:name:*doc"]; // <= IT DOESN`T WORK
var tempNode = parent.childByNamePath("temp");
for (var i=0; i < nodes.length; i++)
{
if (tempNode != null)
nodes[i].move(tempNode);
}
// check if it is a "last_transformed.html" file in the folder already
var lastfile = space.childByNamePath("last_transformed.html");
var transformed = document.transformDocument("text/html", space);
if (lastfile == null) {
lastfile = space.createFile("last_transformed.html");
}
lastfile.content = transformed.content;
transformed.remove();
10-15-2007 05:28 AM
10-23-2007 05:50 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.