<?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: Persisting Aspect Properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123978#M87259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is nothing wrong with the code that i can see (you don't need to call save() in the second section though if you haven't made any changes - but it won't hurt).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens in the destination folder? Are there any rules or further scripts executing that could change the value back?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2007 12:52:03 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-09-17T12:52:03Z</dc:date>
    <item>
      <title>Persisting Aspect Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123977#M87258</link>
      <description>In Alfresco 2.1 I am writing JavaScript that moves the contents of a space into another space.&amp;nbsp; I have an aspect defined that includes the boolean property, custom&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rimaryDocument.&amp;nbsp; I would like the user to designate one of the documents in the space as the primary document before submitting the con</description>
      <pubDate>Tue, 11 Sep 2007 20:10:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123977#M87258</guid>
      <dc:creator>slothrop</dc:creator>
      <dc:date>2007-09-11T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Persisting Aspect Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123978#M87259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is nothing wrong with the code that i can see (you don't need to call save() in the second section though if you haven't made any changes - but it won't hurt).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What happens in the destination folder? Are there any rules or further scripts executing that could change the value back?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 12:52:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123978#M87259</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-17T12:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Persisting Aspect Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123979#M87260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, this happens even when the destination folder has no rules or scripts applied.&amp;nbsp; There is a workaround which involves removing the aspect and readding it so I can set children[1].properties["custom&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rimaryDocument"] to be true.&amp;nbsp; It persists when I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var notes = children[1].properties["custom:Notes"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var containsOnlineMaterial = children[1].properties["custom:ContainsOnlineMaterial"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;children[1].removeAspect("custom:OtherProperties");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var otherProps = new Array(3);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherProps["custom:Notes"] = notes;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherProps["custom:ContainsOnlineMaterial"] = containsOnlineMaterial;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;otherProps["custom:PrimaryDocument"] = true;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;children[1].addAspect("custom:OtherProperties", otherProps);&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this resembles a problem I posted earlier with the Alfresco-defined property, cm:author, when it is copied, but not when it is moved.&amp;nbsp; The workaround, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var author = child.properties["cm:author"];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;child.removeAspect("cm:author");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var props = new Array(1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;props["cm:author"] = author;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;child.addAspect("cm:author", props);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;child.save;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;child.copy(newFolder);&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;SPAN&gt;doesn't work here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=8532&amp;amp;highlight=" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?t=8532&amp;amp;highlight=&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2007 20:45:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123979#M87260</guid>
      <dc:creator>slothrop</dc:creator>
      <dc:date>2007-09-17T20:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Persisting Aspect Properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123980#M87261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't tried your use case myself, but if what you say is happening then it sounds like a bug. I have raised a JIRA item so we can take a look:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AR-1772" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AR-1772&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 09:50:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/persisting-aspect-properties/m-p/123980#M87261</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-09-21T09:50:37Z</dc:date>
    </item>
  </channel>
</rss>

