As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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();