开发者

JasperReports empty chart at Report Group change

开发者 https://www.devze.com 2023-03-28 20:59 出处:网络
I am using JasperReports with iReport to generate reports from a MySQL data source. The reports I am attempting to generate use Report Groups to organize the information. Also, I have a chart that app

I am using JasperReports with iReport to generate reports from a MySQL data source. The reports I am attempting to generate use Report Groups to organize the information. Also, I have a chart that appears at the footer of each page displaying info for the current grouping. The chart's reset type is Group, and it is placed in the column footer to achieve this. Also, a new page is forced when the report group changes.

The problem that I am having is that when the Report Group changes, (at the last page of each grouping) I a开发者_StackOverflow中文版m left with an empty chart on that page. On the proceeding pages, the chart resumes with valid data.

Does anyone have any tips as to how I can fix this?

  • A good solution would have the chart displaying the data for the group.
  • An okay solution would have the chart hidden at the time of a report grouping change


In iReport Designer

  1. Right Click On the Chart
  2. Select Chart Data
  3. Under Dataset tab, select 'Group' for 'Reset type'
  4. Select the group for which you want to reset the chart for 'Reset group'
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号