Birt - data from external database
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2014 05:07 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2014 02:48 AM
In the method getNuxeoReport of the class ReportHelper it should be included:
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 && !singleDS.isEmpty()) {
(-)OdaDataSource ds = (OdaDataSource) dsh.getElement();
This code checks if there is the "odaJndiName" property in a report and use it. Otherwise, it runs as usual.
All the best.
