<?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 Creating a library of common functions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205194#M158324</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have 7 or 8 webscripts, and I'm looking for the right way to use only one file to contain things like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*&amp;nbsp; Constants&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*&amp;nbsp; Commonly used functions (String formatting, sorting, etc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and include those in the other webscripts.&amp;nbsp; Is there a suggested mechanism to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2008 21:19:23 GMT</pubDate>
    <dc:creator>attack7</dc:creator>
    <dc:date>2008-11-13T21:19:23Z</dc:date>
    <item>
      <title>Creating a library of common functions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205194#M158324</link>
      <description>Hi Everyone - We have 7 or 8 webscripts, and I'm looking for the right way to use only one file to contain things like *&amp;nbsp; Constants*&amp;nbsp; Commonly used functions (String formatting, sorting, etc)and include those in the other webscripts.&amp;nbsp; Is there a suggested mechanism to do this?Thanks,Matt</description>
      <pubDate>Thu, 13 Nov 2008 21:19:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205194#M158324</guid>
      <dc:creator>attack7</dc:creator>
      <dc:date>2008-11-13T21:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a library of common functions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205195#M158325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can include other webscripts from either the classpath or the repository. Try either one of the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;import resource="classpath:/alfresco/extension/lib.js"&amp;gt;&lt;BR /&gt;&amp;lt;import resource="/Company Home/Data Dictionary/Scripts/lib.js" &amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The import statement(s) should be at the top of the script you want to include them in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 22:15:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205195#M158325</guid>
      <dc:creator>sbuckle</dc:creator>
      <dc:date>2008-11-13T22:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a library of common functions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205196#M158326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 22:48:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-library-of-common-functions/m-p/205196#M158326</guid>
      <dc:creator>attack7</dc:creator>
      <dc:date>2008-11-13T22:48:06Z</dc:date>
    </item>
  </channel>
</rss>

