Use a parameter to dynamically change unit on x-axis
I'm currently working on the implementation of a report which shows the Defect status of a project area over time. The users would like to see this information in a stacked bar chart which shows the number defects on the y-axis grouped by their severity. The x-axis shall show a time period and the unit shall be configurable by a report parameter, means if year,week or quarter is selected with the parameter the unit shall change accordingly.
I found a quite good hint on the web http://orb-data.com/knowledge-base/tips/tivoli/tcr-and-birt/birt-report-writing-dynamically-setting-axis-formatting.html which explains how to solve this problem and use the shown code in my report.
This works fine in the Eclipse designer but I'm not able to get it to work after deploying it to the server.
Are there any ideas why this doesn't work on the server?
Regards
Matthias
One answer
Please read this wiki which explains the diff between BIRT designer and Jazz embedded BIRT.
https://jazz.net/wiki/bin/view/Main/ReportsViewingDifferences
Have your report display the user entered parameter values and you will see in the case of Jazz embedded BIRT, those have single quotes surrounding them.
Comments
Hi Rafik,
thanks for your quick reply to my question. I know about the quotes and I've also considered this in the script. The chart also recognizes the parameter as expected because it shows the series labels in a correct way. The problem are the number of shown bars. It's in all three cases the same which means the chart shows them on a daily basis independent of the selected value.
Regards Matthias
I will probably need to look at the report design. Personally, I never attempted what you are trying to do. Another thing to consider is that in the report viewer, there is a limit of 500 rows being fetched at most. Not sure if that could affect your report.
Hi Rafik,
I found the problem for the behavior and solved it. I forgot to set the grouping of the chart in the beforeFactory method of the report.
Thanks Matthias