<?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: Copy node without properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/copy-node-without-properties/m-p/307039#M260169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try to just create a new "empty" node and then just assign the content like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;newNode.content = srcNode.content;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Java setting the content just like a regular property works, but not sure if it does for Javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And did you try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;newNode.addAspect("cm:titled");&lt;BR /&gt;&lt;BR /&gt;newNode.properties["cm:title"] = "title";&lt;BR /&gt;newNode.properties["cm:description"] ="description";&lt;BR /&gt;&lt;BR /&gt;newNode.save();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Alfresco 4.2 aspects are added automatically when a property that uses them is added but not sure if this used to work like so in Alfresco 3.4.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 14:25:19 GMT</pubDate>
    <dc:creator>iblanco</dc:creator>
    <dc:date>2015-04-17T14:25:19Z</dc:date>
    <item>
      <title>Copy node without properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/copy-node-without-properties/m-p/307038#M260168</link>
      <description>Actually I have two questions.1. Copy node problem.var newNode = srcNode.copy(srcNode.parent);‍all the properties copied from source also, is there a way just copy the file but not properties (meta-data)?then I have to set the new node properties like this:newNode.properties.title = "title";newNode.</description>
      <pubDate>Thu, 09 Apr 2015 01:01:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/copy-node-without-properties/m-p/307038#M260168</guid>
      <dc:creator>sysoncloud</dc:creator>
      <dc:date>2015-04-09T01:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Copy node without properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/copy-node-without-properties/m-p/307039#M260169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try to just create a new "empty" node and then just assign the content like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;newNode.content = srcNode.content;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Java setting the content just like a regular property works, but not sure if it does for Javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And did you try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;newNode.addAspect("cm:titled");&lt;BR /&gt;&lt;BR /&gt;newNode.properties["cm:title"] = "title";&lt;BR /&gt;newNode.properties["cm:description"] ="description";&lt;BR /&gt;&lt;BR /&gt;newNode.save();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Alfresco 4.2 aspects are added automatically when a property that uses them is added but not sure if this used to work like so in Alfresco 3.4.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 14:25:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/copy-node-without-properties/m-p/307039#M260169</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2015-04-17T14:25:19Z</dc:date>
    </item>
  </channel>
</rss>

