O'Reilly logo

Yii Rapid Application Development Hotshot by James R. Hamilton III, Lauren J. O'Meara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Graphical Report

Now we will write a job that generates JSON report data that can be displayed graphically. We chose to use the Flot JavaScript library (http://code.google.com/p/flot/) to present our report data, but you could write a report to output any reporting format you like. You could even generate an Excel spreadsheet.

Our report will produce a bar graph of our books by grade. We will set up Flot in the next task. For now, we will concentrate on writing a query and storing the JSON output.

Engage Thrusters

  1. In the web app, edit the Generate a Report scheduled job, and change the scheduled time. You can use the Now button to quickly change the value to a time that will soon have past. Make sure that the active field is set to 1

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required