10-24-2007 09:59 AM
obj.addAspect("app:configurable");
obj = obj.createNode("app:configurations", "app:configurations", "app:configurations");
produce this error:Invalid property value:
Node: workspace://SpacesStore/c3764e1f-8235-11dc-b853-a9503a1a1ee3
Type: {http://www.alfresco.org/model/application/1.0}configurations
Property: {http://www.alfresco.org/model/content/1.0}name
Constraint: Value 'app:configurations' matches regular expression: (.*[\"\*\\\>\<\?\/\:\|]+.*)|(.*[\.]?.*[\.]+$)|(.*[ ]+$)
obj.addAspect("app:configurable");
var props = new Array();
props["cm:name"] = "blah blah blah";
obj = obj.createNode("app:configurations", "app:configurations", props, "app:configurations");
obj.addAspect("app:configurable");
obj = obj.createNode("configurations", "app:configurations", "app:configurations");
10-24-2007 10:28 AM
obj.addAspect("app:configurable");
obj = obj.createNode("Some Config Folder", "app:configurations", "app:configurations");
then the name of the resulting association is "cm:configurations"
document.addAspect("app:configurable");
document.createNode("Some Config Folder", "app:configurations", "app:configurations");
Running this (as a script action) against a document and then examining the document in the Node Browser shows that it has a single child node with the association type:10-24-2007 11:12 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.