Creation of a line report

Author: Colm Carew

Always remember to use Errigal QA first (qadb1.err) as the datasource and connect as a reader account. If you have any questions feel free to ask a team member.

In our QA Reporting Manager click 'New Report' this will generate a window as follows :

In The Type Drop Down, select Line and this will generate a dummy line report.

Note when moving between the Report Builder and the Reporting Manager the code in-between :
import com.osssoftware.reporting.*
and
def response = new ReportExecutorResponse()
in the Reporting Manager report is the same as the code between
def runScript() {
and
[chart: chart, table: table] }
in the Report Builder

Knowing this, take the example Line graph down to local machine and get the reporting running in the Report Builder

It should look like this as the example :

The key to this report is the chart.addData method. For example chart.addData(“Monday”,[5,7]) will place Monday on the x-axis and 5 on the y-axis, the 7 appears to not have any relevance in this case.

Self Assessment

Once the example report is running, generate a line graph report that displays the number of tickets created per day over the space of a week and make the date range a variable