11-01-2011 02:14 AM
11-01-2011 03:30 AM
11-01-2011 07:52 AM
…………………
<type name="myprefix:field">
<title>Dynamic field base type</title>
<parent>sys:base</parent>
<properties>
<property name="myprefix:label">
<type>d:text</type>
</property>
</properties>
<associations>
<child-association name="myprefix:constraints">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>myprefix:constraint</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
<duplicate>false</duplicate>
</child-association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
<type name="myprefix:constraint">
<parent>sys:base</parent>
<properties>
<property name="myprefix:constraintName">
<type>d:text</type>
<mandatory enforced="true">true</mandatory>
</property>
</properties>
</type>
…………………
var node = search.findNode(${noderef});
var workingCopy = node.checkout();
workingCopy.methodForRemoveChildren();
var childNode = workingCopy.createNode(null, "myprefix:constraint", "myprefix:constraints");
childNode.properties["myprefix:constraintName"] = "Test";
childNode.save();
node = workingCopy.checkin("Modify node", false);
11-01-2011 08:14 AM
11-01-2011 08:52 AM
03-07-2012 03:23 AM
03-07-2012 03:30 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.