<?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 Birt - data from external database in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/birt-data-from-external-database/m-p/315163#M2164</link>
    <description>&lt;P&gt;How to connect to external database in a Birt report runned in nuxeo ?
Definitions included in *.rptdesign files are ignored and BirtEngine connects only to Nuxeo database.&lt;/P&gt;
&lt;P&gt;Best regards
Adam&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jun 2014 09:07:29 GMT</pubDate>
    <dc:creator>adam_bo_</dc:creator>
    <dc:date>2014-06-08T09:07:29Z</dc:date>
    <item>
      <title>Birt - data from external database</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/birt-data-from-external-database/m-p/315163#M2164</link>
      <description>&lt;P&gt;How to connect to external database in a Birt report runned in nuxeo ?
Definitions included in *.rptdesign files are ignored and BirtEngine connects only to Nuxeo database.&lt;/P&gt;
&lt;P&gt;Best regards
Adam&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jun 2014 09:07:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/birt-data-from-external-database/m-p/315163#M2164</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2014-06-08T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Birt - data from external database</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/birt-data-from-external-database/m-p/315164#M2165</link>
      <description>&lt;P&gt;In the method getNuxeoReport of the class ReportHelper it should be included:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;for (Iterator i = designHandle.getDataSources().iterator(); i.hasNext();) {
    OdaDataSourceHandle dsh = (OdaDataSourceHandle) i.next();

    (+)OdaDataSource ds = (OdaDataSource) dsh.getElement();            
    (+)Module root = ds.getRoot();
    (+)String odaJndiName = (String) ds.getProperty(root, "odaJndiName");
    (+)if (odaJndiName == null || odaJndiName.isEmpty())
    (+){
        String singleDS = Framework.getProperty(
                    "nuxeo.db.singleDataSource", null);
    if (singleDS != null &amp;amp;&amp;amp; !singleDS.isEmpty()) {
        (-)OdaDataSource ds = (OdaDataSource) dsh.getElement();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This code checks if there is the "odaJndiName" property in a report and use it. Otherwise, it runs as usual.&lt;/P&gt;
&lt;P&gt;All the best.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:48:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/birt-data-from-external-database/m-p/315164#M2165</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2014-06-11T06:48:26Z</dc:date>
    </item>
  </channel>
</rss>

