<?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: Put results of a mysql query into DataList in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312330#M265460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main problem is that without reading the db, or finding a way to import it inside the dataList, i'll have to copy rows one by one hardtyping! Now i'll check that tutorial and be back there when i'll have tried. Temporarily, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 13:25:35 GMT</pubDate>
    <dc:creator>soulcollector</dc:creator>
    <dc:date>2016-10-12T13:25:35Z</dc:date>
    <item>
      <title>Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312328#M265458</link>
      <description>Hello. I'm completely new to Alfresco, but i have a decent knowledge about MySQL databases and queries.Using Alfresco Community, i have the following problem. The agency i'm working for has a customers database; it has these columns:NameCompanyBirthdateCustomer sinceSectorWhat i should do is to load</description>
      <pubDate>Wed, 12 Oct 2016 13:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312328#M265458</guid>
      <dc:creator>soulcollector</dc:creator>
      <dc:date>2016-10-12T13:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312329#M265459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I can always suggest people new to Alfresco and custom data models read &lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;this excellent tutorial&lt;/A&gt; by Jeff Potts. It is geared more towards generic document types, but the basic principles are the same for data lists (where to deploy / how to configure the UI). Specifically, you absolutely have to configure the Share forms for any sort of reasonable display of data lists in the UI - without that, Alfresco will default to the only sane alternative: show every field, even the technical fields you might not care about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In most Alfresco use cases (90%) you typically never query a MySQL database directly. The data list UI component has not been designed to be used ti display data from an arbitrary DB source. This is what typically requires custom UIs. Also, quite a few people consider it an &lt;A href="http://ecmarchitect.com/archives/2014/06/26/3896" rel="nofollow noopener noreferrer"&gt;anti-pattern&lt;/A&gt; to use Alfresco for handling relational data as it is primarily geared towards semi-structure, content-related information management.&lt;/P&gt;&lt;P&gt;It is technically possible to query databases directly and I have done so in various projects, but this always requires custom development (dependant on the use case).&lt;/P&gt;&lt;P&gt;There are also community addons that allow linking content data to relational metadata, e.g. the &lt;A href="https://addons.alfresco.com/addons/alfresco-metadbconnector-component" rel="nofollow noopener noreferrer"&gt;Metadata DB Connector addon&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 13:17:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312329#M265459</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-10-12T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312330#M265460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main problem is that without reading the db, or finding a way to import it inside the dataList, i'll have to copy rows one by one hardtyping! Now i'll check that tutorial and be back there when i'll have tried. Temporarily, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 13:25:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312330#M265460</guid>
      <dc:creator>soulcollector</dc:creator>
      <dc:date>2016-10-12T13:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312331#M265461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the link to the tutorial, &lt;B&gt;Axel Faust&lt;/B&gt;​!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Daniele Pani&lt;/B&gt;​ it sounds like you are trying to read data from an external database into Alfresco. What isn't clear is whether or not this is a one-time import. If it is, I'd write a little Java class or Groovy script that reads the data from SQL and then writes it to the data list using CMIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, however, what you are trying to do is enhance Alfresco Share with a UI for managing the data in your SQL database, there are a lot of ways to do that, but one would be to create a new Share page (look for tutorials/docs on Aikau) and then have Share tier web scripts written in Java that are interacting with your external SQL database via JDBC. In this case I would follow Axel's good advice and not copy the data into Alfresco at all--just leave it in its relational database and use Share as more of a window into that data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A cheaper/lower-tech way to do it would be if you have an existing app that allows you to manage that data you could just iframe it into a Share dashlet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 22:37:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312331#M265461</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-10-12T22:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312332#M265462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. It's a one-time import, or i think it would be the best idea considering the nature of this business.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 08:14:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312332#M265462</guid>
      <dc:creator>soulcollector</dc:creator>
      <dc:date>2016-10-13T08:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312333#M265463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i'm sorry to bother you again. I followed part 1 and 2 of your tutorial; they work as expected in the alfresco launched by command lines. But when i try to install the amps in my alfresco install, it prompts a 404 error.&lt;/P&gt;&lt;P&gt;I got the amps from content-tutorial-repo\target and content-tutorial-share\target, put them in amps folder inside alfresco's install folder and ran apply_amps.bat. I even tried to run mvn install on content-tutorial-share but nothing changed. Where did i make a mistake? Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 10:35:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312333#M265463</guid>
      <dc:creator>soulcollector</dc:creator>
      <dc:date>2016-10-19T10:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312334#M265464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be precise, the content-tutorial-repo/target AMP goes in the amps&lt;/P&gt;&lt;P&gt;folder but the content-tutorial-share/target AMP goes in the amps_share&lt;/P&gt;&lt;P&gt;folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you ran apply_amps did you validate that both AMPs were installed&lt;/P&gt;&lt;P&gt;successfully and that the MMT did not output any errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your $TOMCAT_HOME/logs/catalina.out log show any errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Wed, Oct 19, 2016 at 5:36 AM, soulcollector &amp;lt;community@alfresco.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:55:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312334#M265464</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-10-19T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Put results of a mysql query into DataList</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312335#M265465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved. I had to uninstall duplicate amps as well (using the alfresco-mmt.jar) on both alfresco.war and share.war. Indeed, sometimes alfresco services aren't stopping when i try to do it, so when i install/uninstall amps strange things are happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 08:44:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/put-results-of-a-mysql-query-into-datalist/m-p/312335#M265465</guid>
      <dc:creator>soulcollector</dc:creator>
      <dc:date>2016-10-20T08:44:50Z</dc:date>
    </item>
  </channel>
</rss>

