<?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: Classification in javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/classification-in-javascript/m-p/173293#M126447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Once you add generalclasifiable aspect, you have a property cm:categories defined. In your code sample, you were treating it as an asociation.&amp;nbsp; So the code should be more along the lines of (from memory):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fileNode.properties['cm:categories'].push(mycategory); //you need to use push for multi-valued variables, as i recall&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for searching, lucene query is your best bet.&amp;nbsp; Another technique that's used, if you bootstrap your categories for your module, you can set the nodeRef ids as part of the bootstrapping to some known value, and then pull them out based on that noderef.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are examples of this in the records management module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2008 05:13:09 GMT</pubDate>
    <dc:creator>jbarmash</dc:creator>
    <dc:date>2008-08-26T05:13:09Z</dc:date>
    <item>
      <title>Classification in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/classification-in-javascript/m-p/173292#M126446</link>
      <description>Hi to everybody!I've had the following problem: in the javascript API, i did not found any example regarding classifiying a node quth a category.&amp;nbsp; I know&amp;nbsp; I need to apply the aspect cm:generalclassifiable, and i do so in this way:fileNode.addAspect("cm:generalclassifiable");‍and now I'd like to add</description>
      <pubDate>Wed, 20 Aug 2008 09:48:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/classification-in-javascript/m-p/173292#M126446</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2008-08-20T09:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Classification in javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/classification-in-javascript/m-p/173293#M126447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Once you add generalclasifiable aspect, you have a property cm:categories defined. In your code sample, you were treating it as an asociation.&amp;nbsp; So the code should be more along the lines of (from memory):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fileNode.properties['cm:categories'].push(mycategory); //you need to use push for multi-valued variables, as i recall&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for searching, lucene query is your best bet.&amp;nbsp; Another technique that's used, if you bootstrap your categories for your module, you can set the nodeRef ids as part of the bootstrapping to some known value, and then pull them out based on that noderef.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are examples of this in the records management module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 05:13:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/classification-in-javascript/m-p/173293#M126447</guid>
      <dc:creator>jbarmash</dc:creator>
      <dc:date>2008-08-26T05:13:09Z</dc:date>
    </item>
  </channel>
</rss>

