Jump to content
Changes to the Jaspersoft community edition download ×

urgent problem creating a table


2005 IR Help

Recommended Posts

By: loblondieca - loblondieca

urgent problem creating a table

2005-03-09 02:56

I am trying to create a report, containing the following table (the values are being retreived from a database). Please help me out, as everything I tried didn´t work out well! What is the easiest way to create such a table?

 

January:

days: 1 2 3 4 5 .... 31

values: 7.8 8.9 ...

 

Febuary:

days: 1 2 3 4 5 .... 31

values: 7.8 8.9 ...

 

...

 

Decembre: ...

...

 

 

Thank you so much for your time!!!

 

 

 

 

By: C-Box - c-box

RE: urgent problem creating a table

2005-03-09 03:11

First: February doesn't and won't have a 31th! :-)

 

My Suggestion: try to create a CustomDatasource (look at the Bean-Sample) before filling the report. Create for each day one record (consists of a Date-Object for the current day and a Value-Object that holds the value as BigDecimal or whatever it should be) and group them by month in the report. Then call the fillmethod for your report with your CustomDataSource instead of a connection.

 

hth

C-Box

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