Jump to content

How to use a custom data source


shaheenm

Recommended Posts

Hi there

I'm trying to use iReport to create reports for data I have inside my application.  I dont have a database and all the data is in objects and arraylists.  I've tried creating a Custom datasource and data provider but iReport does not see the fields I have placed in the data provider.  I cannot compile the report and cannot test if it works.

How does one go about this.

I even copied and pasted the example custom datasource with the Student object and tried that, but no luck.  Why isnt there a better tutorial?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

This is so infuriating.  But i figured it out.

Basically it boils down to this.  iReport cannot read the fields from your custom datasource.  So you have to create them by adding the fields you're gonna use manually to the report and then place them on the report.  the report will then compile and be able to use the data you provide later.

Why didnt they just say that in the first place.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...