cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Apect in Document Type

bisana
Champ on-the-rise
Champ on-the-rise
Hi All
I am trying out creating Custom document type and Custom Aspects,
In my "mydepModel.xml" , I have types "Amendments"  and Aspect  "Aspect Value for testing " defined as

<type name="ld:amen">
<title> Amendments</title>
<parent>ld:doc</parent>
</type>

<aspect name="ld:ascpectld">
<title>Aspect Value for Testing</title>
<properties>
<property name="ld:published">
<type>d:date</type>
</property>
<property name="ld:isActive">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</aspect>


I want to have aspect    "Aspect Value for testing " values in The type "Amendments"  which I have defined, in short I have to see all the property values of "Aspect Value for testing " in DocType "Amendments" .
Eg I am changing the document type of one file to "Amendments", in this case the property reflected should have  aspect    "Aspect Value for testing " values.
Guidance requested
Thanks
Joseph John
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
Please check the following code


<type name="ld:amen">
<title> Amendments</title>
<parent>ld:doc</parent>
<mandatory-aspects>
            <aspect>ld:ascpectld</aspect>
         </mandatory-aspects>
</type>

<aspects>
<aspect name="ld:ascpectld">
<title>Aspect Value for Testing</title>
<properties>
<property name="ld:published">
<type>d:date</type>
</property>
<property name="ld:isActive">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</aspect>
   </aspects>


bisana
Champ on-the-rise
Champ on-the-rise
Thanks, I will try out and give feedback
thanks
Joseph John

bisana
Champ on-the-rise
Champ on-the-rise
Hi Mits
Concept I got, but when I try to give mandatorty aspects from "cm:generalclassifiable    https://forums.alfresco.com/en/viewtopic.php?f=48&t=45023
Is it giving error
I have started a new thread, since I am not calling custom aspects
Advice requested
thanks
Joseph John