Skip to main content



      Home
Home » Archived » BIRT » How to call BIRT report(How to call BIRT report)
icon14.gif  How to call BIRT report [message #1097758] Fri, 30 August 2013 02:04 Go to next message
Eclipse UserFriend
Hello sir,

I have a jsp page, to enter two dates. On submit, this dates are captured in a servlet. I pass these dates to a method in a class which connect to database and retreive data for that particular date period.

What i did not understand is, now from where i can call my BIRT report that displays that retreived data? and how?

My jsp:


<body>
<form name="we" action="DataFetchServlet" method="post">
ENTER FROM DATE <input type="text" id="datepicker" name="fromDate" value='01-Mar-2013'/> <BR>
ENTER TO DATE <input type="text" id="datepicker" name="toDate" value='07-Aug-2013'/> <BR>

<input type="submit" value="SUBMIT">


</form>
</body>



My servlet:

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
String fromDate=request.getParameter("fromDate");
String toDate=request.getParameter("toDate");
int i=0;
System.out.println(fromDate);
System.out.println(toDate);
ArrayList<String> a=new ArrayList<String>();
String query;


query=QueryClass.getQuery(fromDate,toDate);
a= new ConsolidatedDateRetreive().makeConnection(query);




}



Now in servlet as per the code, retreived data is captured in array list "a".

Now how can display this in my BIRT report. From where the BIRT report is called and how?

Kindly help me at the earliest.

Thanks and Regards,
Sruthi
Re: How to call BIRT report [message #1100878 is a reply to message #1097758] Tue, 03 September 2013 14:40 Go to previous message
Eclipse UserFriend
You can call the birt report through the birt viewer by url, you can call the report embedded in jsp using the birt viewer tag library, or you could run the report using a java class, then displaying the rendered output within your application however you'd like.
Previous Topic:help with "Chart Builder Example"
Next Topic:birt 232: get url value from dataset to set image dynamically
Goto Forum:
  


Current Time: Sun Jul 27 05:04:50 EDT 2025

Powered by FUDForum. Page generated in 0.23297 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top