<?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: Call Scripts from Template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27841#M14043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's quite nifty - but there is an issue that the script will be executed in a separate transaction to the template. So any changes you make to nodes that you have already accessed in the template model may not be reflected as you think - so be careful using this trick &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&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>Tue, 11 Jul 2006 10:40:36 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2006-07-11T10:40:36Z</dc:date>
    <item>
      <title>Call Scripts from Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27838#M14040</link>
      <description>Hi,I want call to function scripts created in Company Home/Data Dictionary/Scripts/remove-content.js from template in this way:&amp;lt;table cellpadding="2" cellspacing="2" border="0" width="100%" style="font-size: x-small;"&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;#list companyhome.childrenByLuceneSearch[searchString] as child&amp;gt;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Wed, 05 Jul 2006 14:08:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27838#M14040</guid>
      <dc:creator>emmy</dc:creator>
      <dc:date>2006-07-05T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Call Scripts from Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27839#M14041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is not possible to execute scripts from within templates. It is something we might look at in the future.&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>Thu, 06 Jul 2006 09:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27839#M14041</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-07-06T09:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call Scripts from Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27840#M14042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What i am currently doing to resolve this is to fire up the script from a popup window: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;function update() {&lt;BR /&gt;window.open('/alfresco/command/script/execute/workspace/SpacesStore/0543b4be-0776-11db-80d6-ad41b73bdc30/workspace/SpacesStore/${document.id}?LFL='+LFL+'&amp;amp;LFI='+LFI);&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;SPAN&gt;I make this window as small as possible and appear offscreen so it is invisible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then when the script has finished, the html it returns is a blank page with an onload="window.close();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as far as the end user is aware, the script is executed from the template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i'm finished, i'll adjust it to use ajax so that i don't have to use the popup window hack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 14:49:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27840#M14042</guid>
      <dc:creator>ajshaw</dc:creator>
      <dc:date>2006-07-06T14:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call Scripts from Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27841#M14043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's quite nifty - but there is an issue that the script will be executed in a separate transaction to the template. So any changes you make to nodes that you have already accessed in the template model may not be reflected as you think - so be careful using this trick &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&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>Tue, 11 Jul 2006 10:40:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27841#M14043</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-07-11T10:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Call Scripts from Template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27842#M14044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ahh. Sneaky. Ok, Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whoa. Old thread. How time flies.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 09:29:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-scripts-from-template/m-p/27842#M14044</guid>
      <dc:creator>ajshaw</dc:creator>
      <dc:date>2006-11-09T09:29:34Z</dc:date>
    </item>
  </channel>
</rss>

