09-08-2006 06:13 AM
//get the space where the search result template can be found
var nodeSearch = companyhome.childByNamePath("/Geo Extension/Geo Search Results");
//create search result document
var dDate = new Date();
var srName = "geo-search-result-" + dDate.getTime();
var searchResult = nodeSearch.createFile(srName);
searchResult.mimetype = "text/xml";
The script fails on the last line with the following error:Java class "org.alfresco.repo.jscript.Node" has no public instance field or method named "mimetype"
09-08-2006 08:53 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.