02-03-2011 07:16 PM
<aspect name="ta:taclassifiable">
<title>Travel Agency Classifiable</title>
<parent>cm:classifiable</parent>
<properties>
<property name="ta:categories">
<title>Categories</title>
<type>d:category</type>
<mandatory>false</mandatory>
<multiple>true</multiple>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>
<tokenised>false</tokenised>
</index>
</property>
</properties>
</aspect>
When I try to execute this code, it generates above mentioned error:var categoryRoot = roothome.childByNamePath("categories");
var props = [];
props["view:childName"] = "{travel.agency.model}taclassifiable";
var classification = categoryRoot.createNode("taclassifiable", "cm:category", props, "cm:categories");
Am I missing something?
02-07-2011 04:40 PM
var categoryRoot = roothome.childByNamePath("categories");
var props = [];
var classification = categoryRoot.createNode("{travel.agency.model}taclassifiable", "cm:category", props, "cm:categories", "{travel.agency.model}taclassifiable");
This line also works:var classification = categoryRoot.createNode("taclassifiable", "cm:category", props, "cm:categories", "ta:taclassifiable");
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.