Repeating a chunk for multiple customer input values within same report.

0

Hi,

I want to repeat the following part for all the customers provided as input , is it possible to do so in jasper report?? If so How can I achieve it ? Pardon my bad drawing but the graph is a bar chart.

pathfinder2104.work's picture
Joined: Feb 27 2014 - 8:52pm
Last seen: 5 years 3 months ago

please correct me if I am wrong  regarding the blank space comment in the my answer.

 

pathfinder2104.work - 5 years 6 months ago

1 Answer:

0

Never mind, found the solution to this, I am posting this for others like me.

You can achieve this by using the grouping of records, while grouping for a chart several things to keep in mind are,

1. the data that you are retrieving should be in desired order i.e use ORDER BY, GROUP BY in your query,

2. Change the property of that chart. 

          a. Evaluate at group level.

          b. Reset the data at the group level.(same goes for the variables i.e sum of rows in one group you need to reset that variable value at the group level).

          c. Setting the group property for "keep togather" and "start on each page".

3. I guess ( I might be wrong correct me if I am wrong) the group values to be printed togather dependes on the space on the page, if you minimise the blank space then all the records in one group are being printed on the same page.

 

pathfinder2104.work's picture
Joined: Feb 27 2014 - 8:52pm
Last seen: 5 years 3 months ago
Feedback
randomness