Hello,I'm trying to set the mimetype of a new document via the Javascript API.Here's my code (using alfresco 1.3)://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"
According to the wiki, the mimetype property should be available…Any ideas?ciao,Roeland