10-13-2007 05:26 AM
// check if it is any .doc file in the folder already
// if there is one, delete it
var nodes = space.childrenByXPath("*[@cm:name='.doc']");
for (var i=0; i < nodes.length; i++)
{
nodes[i].remove();
}
// check if it is a "last_transformed.html" file in the folder already
var lastfile = space.childByNamePath("last_transformed.html");
if (lastfile != null) {
transformed = document.transformDocument("text/html", space);
lastfile.content = transformed.content;
lastfile.save();
transformed.remove();
}10-15-2007 05:25 AM
11-02-2007 02:44 PM
11-12-2007 10:59 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.