Jump to content
Changes to the Jaspersoft community edition download ×

Custom Data Source


2004 IR Help

Recommended Posts

By: robin - robinston

Custom Data Source

2004-10-07 14:33

hi,

i am trying to use test.csv as my custom data source. so i am using the CSVDatasourceTestFactory in my connection property and it say connection successful.

 

but to try to get the columns from test.csv, what i have to do?

if any body has a sample let me know. thank you.

-robin

 

 

 

 

By: xpert - jcox00

RE: Custom Data Source

2004-11-17 09:45

Robin-

You'll need to go to the 'View' menu and select 'Report Fields'. (This is, of course, assuming that you have set up the data source and set it as your active connection.) In the dialog that pops up you'll need to go to the 'Fields' tab and click on 'New'. This will allow you to enter a field name and the object type. Remeber that the field name should be whatever field name you expect in the getFieldValue() method in your class that extends JRDataSource. After this, I found that I had to close down iReports, re-open it, and open the report that I was just working on for the fields to show up in the objects library.

 

Hope this helps. Good luck.

-X

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...