• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

help on JasperReport with JavaBean as DataSource

 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my project we are using EJB3, Struts 2, iReport 3.7For report generation .
i have no idea about report generation with Javabean as DataSource?.
Please help me for the same...





 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am also new to Jasper Reports, but I got this link. May be it will help you.

http://knol.google.com/k/jasper-reports-working-with-beans-and-sub-report#view-comment-0_33

If you are able to generate jasper reports with java bean as datasource please let me know.

thanks,
Kalyan
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
thank you buddy...
about java bean datasource worked upto an extend....

i will list out what i did for the same

  • Create a class which have a static method with a return type of Collection<Bean
  • Make a jar file of the packages ...all what we required
  • in iReport goto Tools-Options-Class Path-Add Our Jar
  • Create a new data Source-Java Bean data Source-give a Name:specify the Class Name of our DataSource Class which returns Collection-specify method
  • Test it and Save
  • Now make a report in Design Query you can simply get the Fields by saying the Class
  •  
    Kalyan Garlapati
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    thanks Dude, I will try and let you know.

    -Kalyan
     
    Police line, do not cross. Well, this tiny ad can go through:
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic