Import Report Items dynamically from Library at runtime
<p>Hi,</p>
<p> </p>
<p>I need to import BIRT report Items (table/chart/grid) from a common library at runtime of a report.</p>
<p> </p>
<p>I will pass a parameter to a report and at runtime only report items should be added into report design so that all the components are not loaded and report processing time is less. </p>
<p> </p>
<p>I am trying to call DEAPI on beforeOpen even of report but unable to add components.</p>
<p> </p>
<p>Sample code is as follows:</p>
<p> </p>
<p>importPackage (Packages.org.eclipse.birt.report.model.api);</p>
<p>LibraryHandle lib =reportContext.getDesignHandle().findLibrary("resources/dynamicComponents.rptlibrary");<br><br>
DesignElementHandle deh = lib.findElement("NewTable");</p>
<p>report.getBody().add(deh);</p>
<p> </p>
<p><span style="font-size:13px;background-color:rgb(244,244,244);">Regards</span></p>
<p><span style="font-size:13px;background-color:rgb(244,244,244);">Shashank</span></p>
<p> </p>
<p>I need to import BIRT report Items (table/chart/grid) from a common library at runtime of a report.</p>
<p> </p>
<p>I will pass a parameter to a report and at runtime only report items should be added into report design so that all the components are not loaded and report processing time is less. </p>
<p> </p>
<p>I am trying to call DEAPI on beforeOpen even of report but unable to add components.</p>
<p> </p>
<p>Sample code is as follows:</p>
<p> </p>
<p>importPackage (Packages.org.eclipse.birt.report.model.api);</p>
<p>LibraryHandle lib =reportContext.getDesignHandle().findLibrary("resources/dynamicComponents.rptlibrary");<br><br>
DesignElementHandle deh = lib.findElement("NewTable");</p>
<p>report.getBody().add(deh);</p>
<p> </p>
<p><span style="font-size:13px;background-color:rgb(244,244,244);">Regards</span></p>
<p><span style="font-size:13px;background-color:rgb(244,244,244);">Shashank</span></p>
0
Comments
-
<p>i think this does what you want.</p>
<p> </p>
<p><a data-ipb='nomediaparse' href='http://developer.actuate.com/community/forum/index.php?/files/file/810-dynamic-content-from-library/'>http://developer.actuate.com/community/forum/index.php?/files/file/810-dynamic-content-from-library/</a></p>
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 106 General Questions
- 142 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management