<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Javascript and associations in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-and-associations/m-p/97323#M66967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi to all, I've been using Alfresco for a month and now I'm starting to extend it. I'm trying to create a new aspect and I'm using the JS api to test my model.&lt;BR /&gt;&lt;BR /&gt;The model contains the following&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;…&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;I want that 0 or many people could sign a document. With the js api I was able to set the signDate attribute. However, I've no idea what kind of the syntax to use… I've tried with &lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;document.properties["bw:signedBy"] = person&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt; but I'm nearly sure it is wrong as the signedBy property should be a List and not a Person.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Someone has recently answered this. It is impossible as the associations are read only in Alfresco 2.0. This feature has been added since the 2.1 release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Finally, another 2 little questions:&lt;BR /&gt;1) Where can I find the model of the Person?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Found: in contentModel.xml file in the war&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2) Is there a place where people put his custom model? May be there could be already this kind of model&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; Still open..&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 16:14:52 GMT</pubDate>
    <dc:creator>ale_carraro</dc:creator>
    <dc:date>2007-05-31T16:14:52Z</dc:date>
    <item>
      <title>Javascript and associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-and-associations/m-p/97322#M66966</link>
      <description>Hi to all, I've been using Alfresco for a month and now I'm starting to extend it. I'm trying to create a new aspect and I'm using the JS api to test my model.The model contains the following&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;aspect name="bw:sign"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Sign a document&amp;lt;/title&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties</description>
      <pubDate>Wed, 30 May 2007 13:55:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-and-associations/m-p/97322#M66966</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-05-30T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript and associations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-and-associations/m-p/97323#M66967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi to all, I've been using Alfresco for a month and now I'm starting to extend it. I'm trying to create a new aspect and I'm using the JS api to test my model.&lt;BR /&gt;&lt;BR /&gt;The model contains the following&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;…&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;I want that 0 or many people could sign a document. With the js api I was able to set the signDate attribute. However, I've no idea what kind of the syntax to use… I've tried with &lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;document.properties["bw:signedBy"] = person&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt; but I'm nearly sure it is wrong as the signedBy property should be a List and not a Person.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Someone has recently answered this. It is impossible as the associations are read only in Alfresco 2.0. This feature has been added since the 2.1 release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Finally, another 2 little questions:&lt;BR /&gt;1) Where can I find the model of the Person?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Found: in contentModel.xml file in the war&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;2) Is there a place where people put his custom model? May be there could be already this kind of model&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; Still open..&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 16:14:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-and-associations/m-p/97323#M66967</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-05-31T16:14:52Z</dc:date>
    </item>
  </channel>
</rss>

