Jump to content
We've recently updated our Privacy Statement, available here ×

JRDataSource implementation


Recommended Posts

By: genri como - gcomo01

JRDataSource implementation

2003-04-01 09:03

Hi All,

I am implementing a JRDataSource (getFieldValue and next methods) and define appropriate fields in a report to retreive the data stored in the JRDataSource implementation.I initialize the report with the data source instead of the connection "JasperFillManager.fillReportToFile(fileName, parameters, ds);".There is no queryString in the report since am not using the DB connection.The implementation of the JRDataSource is basically a class with an internal Map to store values.The getFieldValue returns the Object stored under the JRField name and the next method returns false (there is only one occurrence of data).The getFieldValue method though seems never to be called.I also tried to define some fields with worng names and again it does not complain (shouldn't it complain for the not found fields after trying the datasource ?).

What could possibly be wrong..

thanks

Genri

 

 

 

 

By: Gregory A. Swarthout - gswarthout

RE: JRDataSource implementation

2003-04-01 09:15

The next() has to return true once for the first (and only) line of

data to be found.

 

 

 

 

By: genri como - gcomo01

RE: JRDataSource implementation

2003-04-01 10:06

Got it ..thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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