Jump to content
Changes to the Jaspersoft community edition download ×

data from the next data row while rendering


Recommended Posts

By: Ryan Fruit - rfruit

data from the next data row while rendering

2003-12-11 17:05

I have a report that I need data from the next row to complete the current row. Here's what I mean:

 

row 1 - X , (X-Y)

row 2 - Y , (Y-Z)

row 3 - Z , ...

 

As you can see I need the data from the next row in the result set to render the current row of the report. In Java I could do a next() on the ResultSet, get the data, then call previous() to reset it. Is there a way to get at data in future rows in Jasper reports?

 

Any help would be greatly appreciated.

 

 

 

 

By: Carlos Costa e Silva - carloscs

RE: data from the next data row while rendering

2003-12-11 18:08

Implement your own JRDataSource or JRRewindableDataSource.

 

You can then create in the datasource an artificial column row_3 that returns the calculated result.

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