01-22-2010 01:02 PM
<webscript>
<shortname>Add Aspect to Project</shortname>
<description>add aspect to root project space</description>
<url>/addAspect</url>
<format default="html">extension</format>
<authentication>admin</authentication>
</webscript>
addAspect.post.jsvar props = new Array(1),
spaceId = args.redmineIdentifier,
strnodeReference = args.alfrescoNoderef;
projectNode= search.luceneSearch('ID:"'+strnodeReference+'"');
props["my:redID"] = spaceId;
projectNode[0].addAspect("my:redmineIdentifier", props);
model.resultString = "Syncronization Done!!!!";
addAspect.post.html.ftl<html>
<body>
<p>info: ${resultString.name}</p>
</body>
</html>
and the HTML form<html>
<head>
</head>
<body>
<form action="http://localhost:8080/alfresco/service/addAspect" method="post">
<input name="redmineIdentifier" type="hidden" value="toto" />
<input name="alfrescoNoderef" type="hidden" value="workspace://SpacesStore/500d66d9-6e4c-450b-9296-cfbba2d7ba69" />
<input name="commit" type="submit" value="Synchronization" />
</form>
</body>
</html>
All those files are in the Webscript space of the data dictionary but I get this error:01-28-2010 04:18 PM
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.