10-03-2008 12:05 PM
<types>
<!– Definition of new Content Type: Press Release –>
<type name="custom:pressrelease">
<title>Press Release</title>
<parent>cm:content</parent>
<properties>
<property name="custom:PRName">
<title>PR Person Name</title>
<type>d:text</type>
</property>
<property name="custom:PREmail">
<title>PR Person Email</title>
<type>d:text</type>
</property>
<property name="custom:PRPhone">
<type>d:text</type>
<mandatory>true</mandatory>
<default>simple</default>
<constraints>
<constraint type="LIST">
<parameter name="allowedValues">
<list>
<value>simple</value>
<value>double</value>
<value>triple</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="custom:PRDate">
<title>PR Released Date</title>
<type>d:date</type>
</property>
</properties>
<associations>
<association name="custom:responsible">
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
</types>
10-03-2008 02:53 PM
document.assocs["custom:responsible"][0]
document.assocs["custom:responsible"] representa un array asociativo de solo lectura con la información de la asociación. Si tuvieras varios nodos asociados mediante la relación, pues con el índice puedes ir accediendo a cada uno de ellos (0, 1, 2…).document.childAssocs["custom:miChildAssociation"][0]
Espero que te sirva.10-03-2008 03:19 PM
10-03-2008 03:54 PM
document.assocs["custom:responsible"][0].properties["cm:userName"];
document.assocs["custom:responsible"][0].properties["cm:firstName"];
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.