<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to ignore the file path in birt.properties even when "designRepository" is defined?</title><link>https://answers.axonivy.com/questions/1094/how-to-ignore-the-file-path-in-birt-properties-even-when-designrepository-is-defined</link><description>&lt;p&gt;In my module, I use element "Create report with database" on Axon.ivy 5.1. I don't use "designRepository" in birt.properties so that I can define my own absolutely path. Like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Disable the configuration in birt.properties: &lt;/p&gt;
&lt;p&gt;"#designRepository=C:/MyReportRepo/"&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;declare the path to report design files (.rptdesign) in my code: &lt;/p&gt;
&lt;p&gt;in.templateFilename = "E:/_vision/CONFIG/myReportDesign"&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I am facing a problem when I've tried to integrate my module with another one which needs to define "designRepository" in birt.properties. It means that the another module needs to activate the configuration, like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;designRepository=C:/MyReportRepo/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In this case, I got an exception:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;EngineException: The design file C:/MyReportRepo//E:/_vision/CONFIG/myReportDesign.rptdesign can not be found.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Until now, I've tried to find the way to get and modify the defined path. 
I mean I would try to ignore this "C:/MyReportRepo//" when it is activated, so that hope both mentioned modules can work. &lt;/p&gt;
&lt;p&gt;I also try using element "Create dynamic report" instead but the demo doesn't work. 
I referenced this link: &lt;a href="https://guidelines.soreco.ch/projects/guides/wiki/BIRT"&gt;https://guidelines.soreco.ch/projects/guides/wiki/BIRT&lt;/a&gt;  &lt;/p&gt;
&lt;p&gt;Any help will be greatly appreciated!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1094/how-to-ignore-the-file-path-in-birt-properties-even-when-designrepository-is-defined" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 19 Dec 2014 10:45:34 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1094/how-to-ignore-the-file-path-in-birt-properties-even-when-designrepository-is-defined/1100</link><description>&lt;p&gt;The birt extension is open source and is shared on &lt;a href="http://sourceforge.net/p/ivysupplements/code/HEAD/tree/extensions/birt/branches/5.0/ch.ivyteam.ivy.extension.birt/"&gt;ivySupplements@sourceforge&lt;/a&gt;.
Your code could work with a very simple modification in &lt;a href="http://sourceforge.net/p/ivysupplements/code/HEAD/tree/extensions/birt/branches/5.0/ch.ivyteam.ivy.extension.birt/src/ch/ivyteam/ivy/extension/birt/IvyBirtReportService.java"&gt;IvyBirtReportService.getReportDesign(String)&lt;/a&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**
* Return the absolute path of the report design. If a design repository
* exists, then the path will be calculated, otherwise the report design
* contains already the absolute path
* @param reportDesign
* @return
*/
private String getReportDesign(String reportDesign){
  if(designRepository != null &amp;amp;&amp;amp; !designRepository.equals("")){
    return designRepository + "/" + reportDesign + BIRT_REPORT_SUFFIX;
  }else{
    return reportDesign + BIRT_REPORT_SUFFIX;
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I suggest that you enhance the code for your needs. And if its a save implementation that could work for the whole community: share it or else fork it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 19 Dec 2014 10:45:34 -0500</pubDate><guid>https://answers.axonivy.com/questions/1094/how-to-ignore-the-file-path-in-birt-properties-even-when-designrepository-is-defined/1100</guid></item><item><title>Answer by trungdv</title><link>https://answers.axonivy.com/questions/1094/how-to-ignore-the-file-path-in-birt-properties-even-when-designrepository-is-defined/1096</link><description>&lt;p&gt;sorry. it's impossible.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Thu, 18 Dec 2014 02:20:44 -0500</pubDate><guid>https://answers.axonivy.com/questions/1094/how-to-ignore-the-file-path-in-birt-properties-even-when-designrepository-is-defined/1096</guid></item></channel></rss>