<?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 Strange JavaScript API behavior in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23093#M11142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm testing the new JavaScript API features in 1.3 and they look nice. The default simple Backup script works fine. I changed line 14 from &lt;/SPAN&gt;&lt;EM&gt;copy.name = "backup of" + copy.name;&lt;/EM&gt;&lt;SPAN&gt; to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;copy.name = copy.name; &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;This still works, no problems here but it seems like a totally useless line, it assigns the the variable to itself. So I removed the line and tested this again… but ran into the following error:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;An error occurred&lt;BR /&gt;&lt;BR /&gt;Failed to update category due to system error: Transaction didn't commit: Failed to execute script 'workspace://SpacesStore/f900e25e-0a69-11db-b76c-410603f2342f': Wrapped java.lang.NullPointerException (AlfrescoScript#14)&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;SPAN&gt;It works again when I put the "copy.name" line back in place. Why is this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still on Alfresco 1.3 preview, if this is a bug it could be fixed in 1.3, is it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jul 2006 09:18:09 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2006-07-03T09:18:09Z</dc:date>
    <item>
      <title>Strange JavaScript API behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23093#M11142</link>
      <description>Alfresco,I'm testing the new JavaScript API features in 1.3 and they look nice. The default simple Backup script works fine. I changed line 14 from copy.name = "backup of" + copy.name; to:copy.name = copy.name; ‍This still works, no problems here but it seems like a totally useless line, it assigns</description>
      <pubDate>Mon, 03 Jul 2006 09:18:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23093#M11142</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-07-03T09:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Strange JavaScript API behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23094#M11143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes this was a problem with the save() API call not initiasing properties of a node if you hadn't accessed them yet. This is fixed in 1.3 final.&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, 03 Jul 2006 11:52:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23094#M11143</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-07-03T11:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Strange JavaScript API behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23095#M11144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kevin!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's why it's called a "preview" I suppose.&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 13:03:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/strange-javascript-api-behavior/m-p/23095#M11144</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-07-03T13:03:59Z</dc:date>
    </item>
  </channel>
</rss>

