<?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 How to use the existing comment web scripts  to post? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-the-existing-comment-web-scripts-to-post/m-p/305484#M258614</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;I have a problem to understand how to use especially the POST Web script (because of the use of comment.lib.js)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to understand how it works to implement a Aikau service which allows users to add comments everithings from a dialog form.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am inspired by &lt;/SPAN&gt;&lt;A href="https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Tutorial7.md" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Tutorial7.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In comparison with the POST web script of groups : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 - github) &lt;/SPAN&gt;&lt;STRONG&gt;url&lt;/STRONG&gt;&lt;SPAN&gt; : /api/rootgroups/{shortName}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1 - me) &lt;/SPAN&gt;&lt;STRONG&gt;url&lt;/STRONG&gt;&lt;SPAN&gt; : /api/node/{store_type}/{store_id}/{id}/comments (I have not seen an other comment webscript to POST a comment)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2 - github) in the model we can see &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;displayName = json.get("displayName")&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;model.group = groups.createRootGroup(shortName, displayName);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;2 - me) the model send us to comment.lib.js , so I gone on C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\comments\comment.lib.ftl, but I seen nothing about adding or updating comments!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3 - github) in the custom service we have to write something like : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this.serviceXhr({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; url: AlfConstants.PROXY_URI + "api/rootgroups/" + payload.shortName,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; method: "POST",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName: payload.displayName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3 - me) i am not here &amp;gt;&amp;lt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for future help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2015 15:50:05 GMT</pubDate>
    <dc:creator>nancygaillard</dc:creator>
    <dc:date>2015-10-02T15:50:05Z</dc:date>
    <item>
      <title>How to use the existing comment web scripts  to post?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-the-existing-comment-web-scripts-to-post/m-p/305484#M258614</link>
      <description>Hello,I have a problem to understand how to use especially the POST Web script (because of the use of comment.lib.js)I need to understand how it works to implement a Aikau service which allows users to add comments everithings from a dialog form.I am inspired by https://github.com/Alfresco/Aikau/blo</description>
      <pubDate>Fri, 02 Oct 2015 15:50:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-the-existing-comment-web-scripts-to-post/m-p/305484#M258614</guid>
      <dc:creator>nancygaillard</dc:creator>
      <dc:date>2015-10-02T15:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the existing comment web scripts  to post?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-the-existing-comment-web-scripts-to-post/m-p/305485#M258615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I find it is worry to do that but, I can see any other way, so I am writing my own web script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 13:30:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-the-existing-comment-web-scripts-to-post/m-p/305485#M258615</guid>
      <dc:creator>nancygaillard</dc:creator>
      <dc:date>2015-10-16T13:30:15Z</dc:date>
    </item>
  </channel>
</rss>

