<?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: Add aspect using Client side javascript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289226#M242356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no way to add an aspect with client side JavaScript without you having to perform an AJAX call on a predefined operation (web script) that implements such a functionality. You can use addAspect in a Repository web script that uses JavaScript for the controller logic, but not on the Share-tier (client JavaScript or Share web script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I know of no out-of-the-box web scripts that perform this kind of low-level operation, you would have to write your own. But I would recommend moving your business logic away from the client-side into the Repository backend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 18:49:24 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2014-01-10T18:49:24Z</dc:date>
    <item>
      <title>Add aspect using Client side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289225#M242355</link>
      <description>I want to add custom aspect on a content if not added already when i click on document library action. I used record.jsNode.hasAspect("cm:templatable"), to check whether the content has this aspect already. It worked.But when i try to add the aspect like record.jsNode.addAspect("cm:templatable"), i</description>
      <pubDate>Fri, 10 Jan 2014 11:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289225#M242355</guid>
      <dc:creator>suman_nitt</dc:creator>
      <dc:date>2014-01-10T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add aspect using Client side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289226#M242356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no way to add an aspect with client side JavaScript without you having to perform an AJAX call on a predefined operation (web script) that implements such a functionality. You can use addAspect in a Repository web script that uses JavaScript for the controller logic, but not on the Share-tier (client JavaScript or Share web script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I know of no out-of-the-box web scripts that perform this kind of low-level operation, you would have to write your own. But I would recommend moving your business logic away from the client-side into the Repository backend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 18:49:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289226#M242356</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-01-10T18:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add aspect using Client side javascript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289227#M242357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response. It was helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i created Repository web script and adding aspect to the node with the help of noderef. I am also sending email to group of assignees using this script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it fine that i call Repository web script from share context? How do i pass data like email recipients, noderef to this Repository webscript? Currently i pass as URL parameters. If there is a way to send as JSon data or some other means, please tell me.&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jan 2014 12:46:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-aspect-using-client-side-javascript/m-p/289227#M242357</guid>
      <dc:creator>suman_nitt</dc:creator>
      <dc:date>2014-01-12T12:46:41Z</dc:date>
    </item>
  </channel>
</rss>

