how toi make Java Bean DataSource connection in ireport
HI ,
I am trying to make a new Java Bean Data Source Connection in ireport .I Place bean class in it.businesslogic.ireport.connection folder of Ireport but when I am trying to test that connection I face class not found error and say check you class path . please give me solution.
Thank in Advance
Prashant
javabeans emptydatasource
Hi all,
I had gone these replays question etc i got a vague answer for my problem i think,
I will explain my problem
I want to get the data from a table in which the data are entering with date also there,if a date for eg:2009-12-06 and 2009-12-13 are sundays so that day tere will be no datas will enter to the data base.If i take the report i wont give me the missing date ie will get the data 2009-12-05 then go to 2009-12-07 same as in 12,14 .
I think this is due to the while loop in the query execution ok then i am thinking of the javabeans datasource so that i will create an action,persistence and bsinnes model
May i write my query
select shiftdate,user,logintime,logouttime,hour from logins where user=asdf and month(shiftdate)=12
the aove query also will not give the missing dates
so i created a small pgm to get all dates of month 12 and changed the query like
select shiftdate,user,logintime,logouttime,hour from logins where user=asdf and shiftdate=2009-12-01
this query will call 31 time means this month full
and a if loop
if(rs.next()){
busin.setDate(rs.getDate(1));
busin.setName(rs.getString(2));
...............
........
}
else{
busin.setDate(the date from the for llop of the date taking);
busin.setName(" ");
...........
}
by this i got the out put in jsp page
but this is not the case in jasper report
query is writing only once we cant't give the date dynalically ,idon't know much about ireport so
can i use the above action class ,peristece class and business class as for the javabeans datasource and how please explain in detail
please
thanks for replay in advance