Home
Analytics
Using BIRT Source Code In Java Web Application
sidrees
<p>Hi Everyone,</p>
<p> </p>
<p>I want to add BIRT report generation functionality in my Java web application(Not an Enterprise Application) which is developed using WebObjects framework,</p>
<p>I can create reports using BIRT report designer and for testing I can fetch data directly from database using simple SQLs,</p>
<p> </p>
<p>Now in my scenario User will query data using web application which will return a collection of relational objects and I just want to use this collection in the report as data source.</p>
<p> </p>
<p>Please guide me to the right topic if it has been answered, or what packages do I need to include in my application to get report generating functionality, User should be able to download the report as PDF or Excel,</p>
<p> </p>
<p>and please let me know if you need any other detail to understand my question better,<br><br>
Thank you,</p>
<p>Saif.</p>
Find more posts tagged with
Comments
Clement Wong
<p>Have you looked at these resources?</p>
<p> </p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/955-birt-pojo-data-source-example/'>http://developer.actuate.com/community/forum/index.php?/files/file/955-birt-pojo-data-source-example/</a></p>
;
<p> </p>
<p> </p>
<p>And</p>
<p>
https://www.youtube.com/watch?v=3ZD8wog2pmk</p>
<p> </p>
<p> </p>
<p> </p>
<p>If they do not apply, please provide additional details about your "collection of relational objects".</p>
sidrees
<p>Hello Sir,<br><br>
Thank you for replying,</p>
<p>Please see the attached PDF, I have added some comments related to my requirement, please let me know if I need to provide any other details,</p>
<p><a data-ipb='nomediaparse' href='
https://www.dropbox.com/s/ti63mbly0aneyna/BIRT Report- User Requirement.pdf?dl=0'>https://www.dropbox.com/s/ti63mbly0aneyna/BIRT Report- User Requirement.pdf?dl=0</a></p>
;
<p> </p>
<p>I have checked the BIRT integration using POJOs, but I was not sure if this will fit to my requirement or may be I could not understand how I will add this integration in my application,</p>
<p> </p>
<p>And related to my development experience,</p>
<p>I do not have any practical knowledge about Java EE applications,</p>
<p>in my development scenario I use Apache Ant to build the project with all the frameworks and at the end I just get one .woa file which I use to deploy application in WebObjects application server.</p>
ashwin subramanya
<p>Hi i made an account in this forum just to ask this. I have a similar situation though i ve successfully written codes to generate the birt report and send it to client as pdf, Im unable to set values to the fields in the report, i'm not using DB(at the moment ) so i cant link db as datasource as well as i dont want to use the method above mentioned as its against mvc to embed any code in non model part. so my question is how to set the fields at runtime..</p>
<p> </p>
<p>i've set names to fields in the report can i use that and set values at run-time in my model. like model.getElementByName("name").setValue("value");</p>
<p> </p>
<p>that is my first question second is how do i set values to birt.date fields from java object since java.util.Date is depricated.. Your help is appreciated. I thought since the problems are related its good to not create a new thread(sorry if doing so is against the norms).</p>
sidrees
<p>Hi Ashwin,<br><br>
Can you please share some example how you generated the report using BIRT engine API in you Java code?</p>
<p>
In my situation the limitation is client cant afford to use iHub, Now I do not know which of the following integration I have to use</p>
<div>
<ul class=""><li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-java-ee-web-app/'>BIRT
with Java EE Web App</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-jsf/'>BIRT
with JSF</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-php/'>BIRT
with PHP</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-html/'>BIRT
with HTML</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-jsp/'>BIRT
with JSP</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-maximo/'>BIRT
with Maximo</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-clearquest/'>BIRT
with ClearQuest</a></li>
<li><a data-ipb='nomediaparse' href='
http://developer.actuate.com/deployment-center/integrating-birt-into-applications/birt-with-other-frameworks/'>BIRT
with Other Frameworks</a></li>
</ul><p>My web application is not enterprise application and I can not deploy Birt run-time as separate .war application on WebObjects server, and also I do not have WEB-INF folder or JSFs and JSPs,<br>
However I can design custom web components using HTML + WO tags which comes from WebObjects tag library and I can include BIRT .jar libraries and use them in my application and then package the application but I cant understand where to start for integration</p>
</div>
ashwin subramanya
<p><a data-ipb='nomediaparse' href='
https://wiki.eclipse.org/Servlet_Example_(BIRT)_2.1'>https://wiki.eclipse.org/Servlet_Example_(BIRT)_2.1</a></p>
;
<p>I used the code in following link with some modification but i still could only generate generic pdf though.. hope this helps.</p>
sidrees
<p>Can someone please reply to my problem? it is still unresolved,</p>
<p>Thanks.</p>