<?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: Help:How to acces to Metadatas in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131779#M92604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IÃ¢â‚¬â„¢ve read two JavaScript tutorials, but I didnÃ¢â‚¬â„¢t find what that text file is. Could anybody post an example please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advantag&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 10:33:47 GMT</pubDate>
    <dc:creator>marãƒâ_a</dc:creator>
    <dc:date>2007-08-31T10:33:47Z</dc:date>
    <item>
      <title>Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131776#M92601</link>
      <description>Hi!IÃ¢â‚¬â„¢m a beginner using JavaScript. IÃ¢â‚¬â„¢ve tried to run an example Ã¢â‚¬Å“test script.jsÃ¢â‚¬</description>
      <pubDate>Thu, 30 Aug 2007 10:49:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131776#M92601</guid>
      <dc:creator>marãƒâ_a</dc:creator>
      <dc:date>2007-08-30T10:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131777#M92602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you running the script? This particular script needs a document as a context in order to function properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, if we have a "test.txt" text file in a Company Home/Script Test space, then the script can be run with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://myserver:8080/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts/example%20test%20script.js&amp;amp;contextPath=/Company%20Home/Script%20Test/test.txt" rel="nofollow noopener noreferrer"&gt;http://myserver:8080/alfresco/command/script/execute?scriptPath=/Company%20Home/Data%20Dictionary/Scripts/example%20test%20script.js&amp;amp;contextPath=/Company%20Home/Script%20Test/test.txt&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Please also read the wiki here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:00:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131777#M92602</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-08-30T12:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131778#M92603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, I've just found the API 5 minutes before reading your post&amp;nbsp; &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; . I'm trying to guess what I have to write in the text file. If I get it IÃ¢â‚¬â„¢ll post it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MarÃƒÂ­a&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 12:31:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131778#M92603</guid>
      <dc:creator>marãƒâ_a</dc:creator>
      <dc:date>2007-08-30T12:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131779#M92604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IÃ¢â‚¬â„¢ve read two JavaScript tutorials, but I didnÃ¢â‚¬â„¢t find what that text file is. Could anybody post an example please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advantag&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 10:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131779#M92604</guid>
      <dc:creator>marãƒâ_a</dc:creator>
      <dc:date>2007-08-31T10:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131780#M92605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The text file can contain anything for the test script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 11:08:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131780#M92605</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-08-31T11:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131781#M92606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an HTML file with calls to functions that I have in a script file. Usually I included in the HTML file something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;script src Ã¢â‚¬Â¦&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But IÃ¢â‚¬â„¢ve read in the alfresco API: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ã¢â‚¬Å“In Alfresco 2.1 the notion of including scripts into existing scripts was added. This feature allows libraries of scripts to be built and utilised by other scripts at runtime. The syntax to import the scripts is specific to Alfresco and not a feature of standard JavaScript - the &amp;lt;script src='…'&amp;gt; syntax you may be familiar with as supported by most web browsers is not part of standard ECMA JavaScript and will not work! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax to import other scripts is strict and must be followed exactly or the import may fail. Import directives must be the first lines in the JavaScript file - no comments or code allowed above those lines. Only the following syntax variants are supported: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Import a script from the repository via name based path: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;import resource="/Company Home/Data Dictionary/Scripts/library.js"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Import a script from the repository via a NodeRef reference: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;import resource="workspace://SpacesStore/6f73de1b-d3b4-11db-80cb-112e6c2ea048"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Import a script from a Java ClassPath location: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;import resource="classpath:alfresco/extension/myutils.js"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple script import of the same script content and circular dependencies are dealt with. A script can import several other scripts from multiple different locations i.e. a script from the repo and another from the classpath. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After the import lines, usual JavaScript code and comments may begin - the imports must be first lines in the file. Ã¢â‚¬Å“&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I access to my script from my HTML?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advantage&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 11:34:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131781#M92606</guid>
      <dc:creator>marãƒâ_a</dc:creator>
      <dc:date>2007-08-31T11:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131782#M92607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you sure you understand the difference between server-side scripts and client-side scripts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example I gave above is a server-side script, so you need to send an HTTP GET request in order to execute it. The response can then either be displayed to the user as HTML, or interpreted by client-side javascript maybe to use AJAX techniques to update a panel on the page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:30:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131782#M92607</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-08-31T12:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help:How to acces to Metadatas</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131783#M92608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, sorry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:36:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/help-how-to-acces-to-metadatas/m-p/131783#M92608</guid>
      <dc:creator>marãƒâ_a</dc:creator>
      <dc:date>2007-08-31T12:36:34Z</dc:date>
    </item>
  </channel>
</rss>

