<?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 Retrieving data from database in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75764#M24048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I connected my allinone project to MySql database,&amp;nbsp; I created a table and added some data.&lt;BR /&gt;How can I retrieve that data using javascript backed webscript ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 10:53:04 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-03-01T10:53:04Z</dc:date>
    <item>
      <title>Retrieving data from database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75764#M24048</link>
      <description>I connected my allinone project to MySql database,&amp;nbsp; I created a table and added some data.How can I retrieve that data using javascript backed webscript ?</description>
      <pubDate>Fri, 01 Mar 2019 10:53:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75764#M24048</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-03-01T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75765#M24049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;Can you describe what actually you are wanted to do with that data which you entered in the database manually?&lt;BR /&gt;&lt;BR /&gt;If i talk about the alfresco best practice whatever data you want to use that should goes in to alfresco table with the help of content model(in some case its okay to connect with some other database and get the data from there).&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Shyam Ghodasra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 13:52:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75765#M24049</guid>
      <dc:creator>shyam_ghodasra</dc:creator>
      <dc:date>2019-03-01T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75766#M24050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't add the data manually, I created a behaviour, When someone add a file, I save the filename, and username to a table. Now I want to display a message to the share telling that " username added filename ".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:43:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75766#M24050</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-03-01T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from database</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75767#M24051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, realize this is not the greatest idea. Don't create tables in Alfresco's database. Create them in a separate database. With that said, you wrote a behavior to save the data, so what is the problem trying to get it out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem is that you need to query the data from JavaScript, you can write a base scope processor extension to expose a Java class as a root-scoped JavaScript object. The Java class can query the data from the database and return it. Then, in JavaScript you can just call the root scoped object to get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not sure how to do a custom root scoped object, there are many examples in public source code. Here's one that I did for the acl-templates project: &lt;A class="link-titled" href="https://github.com/Conexiam/alfresco-acl-templates/tree/master/acl-templates-repo/src/main/java/com/conexiam/acl/templates/service" title="https://github.com/Conexiam/alfresco-acl-templates/tree/master/acl-templates-repo/src/main/java/com/conexiam/acl/templates/service" rel="nofollow noopener noreferrer"&gt;alfresco-acl-templates/acl-templates-repo/src/main/java/com/conexiam/acl/templates/service at master · Conexiam/alfresco…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2019 20:52:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/retrieving-data-from-database/m-p/75767#M24051</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2019-03-02T20:52:28Z</dc:date>
    </item>
  </channel>
</rss>

