<?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 javascript and mysql in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-and-mysql/m-p/42638#M23042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need a hint, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when a user places a file in an inbound space i need to move it to another space based on its filename. I have over 400 filenames that can be placed in one of 36 subdirectories that sit under three directories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can just set a rule to call a javascript script, dump all the possible file names into an array and loop around it, but it would be nicer to send the filename to the mysql database that is already running and get the location of where to move the file from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a simple way to query the mysql database from javascript? I could code this in PHP in my sleep, is there a way to call a PHP script from javascript to query the database and move the files in the alfresco space? Or am I overthinking this and missing a simple solution to this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TIA&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2007 21:00:44 GMT</pubDate>
    <dc:creator>tonytony</dc:creator>
    <dc:date>2007-01-11T21:00:44Z</dc:date>
    <item>
      <title>javascript and mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-and-mysql/m-p/42638#M23042</link>
      <description>I need a hint, when a user places a file in an inbound space i need to move it to another space based on its filename. I have over 400 filenames that can be placed in one of 36 subdirectories that sit under three directories.I can just set a rule to call a javascript script, dump all the possible fi</description>
      <pubDate>Thu, 11 Jan 2007 21:00:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-and-mysql/m-p/42638#M23042</guid>
      <dc:creator>tonytony</dc:creator>
      <dc:date>2007-01-11T21:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: javascript and mysql</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-and-mysql/m-p/42639#M23043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is no way to access an external MySQL DB from the JavaScript integration. However you could write a custom Action that does the work you need, and you can call any action from JavaScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Custom_Actions" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Custom_Actions&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Actions_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Actions_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&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, 12 Jan 2007 09:41:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-and-mysql/m-p/42639#M23043</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-01-12T09:41:35Z</dc:date>
    </item>
  </channel>
</rss>

