<?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 Best way to append content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103619#M72269</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;SPAN&gt;I want to append something to content in the most efficient way. For example, if I had a text file that contains "This is a sample content", I would like to append "…and this is appended sample content" to it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know: I can read content, do appending in my program and then overwrite content with the new one. However, it would improve performance (at least network traffic) if there was a special functionality in Alfresco WS API for this. Is there an alternative to read-append-overwrite scenario?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Igor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2007 08:50:12 GMT</pubDate>
    <dc:creator>ibarbaric</dc:creator>
    <dc:date>2007-08-06T08:50:12Z</dc:date>
    <item>
      <title>Best way to append content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103619#M72269</link>
      <description>Hello!I want to append something to content in the most efficient way. For example, if I had a text file that contains "This is a sample content", I would like to append "…and this is appended sample content" to it. I know: I can read content, do appending in my program and then overwrite content wi</description>
      <pubDate>Mon, 06 Aug 2007 08:50:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103619#M72269</guid>
      <dc:creator>ibarbaric</dc:creator>
      <dc:date>2007-08-06T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to append content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103620#M72270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Web Service API doesn't provide this out-of-the-box.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you could write a very simple Web Script &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;SPAN&gt; that provides the required behaviour.&amp;nbsp; The Web Script just provides a public custom URL to invoke.&amp;nbsp; Within the Web Script you can Javascript to append the text…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// find the doc - from noderef or path passed on url&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doc = …;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// append text&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;doc.content = doc.content + " some new text";&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 10:06:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103620#M72270</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-06T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to append content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103621#M72271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, David!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 11:28:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/best-way-to-append-content/m-p/103621#M72271</guid>
      <dc:creator>ibarbaric</dc:creator>
      <dc:date>2007-08-06T11:28:25Z</dc:date>
    </item>
  </channel>
</rss>

