> Tutorial 7: | Writing an event handler in JavaScript

> This tutorial provides instructions for writing a set of event handlers. The tutorial assumes that you have a basic report design based on the Classic Models, Inc. Sample Database. The only requirement for the starting report design is that it contains a table of customers with a column for the customer name. In this tutorial you count the customers whose names contain the string “Mini” and display the result in a pop-up window.

> In this tutorial, you perform the following tasks:

> n | Open the report design

> n | Create and initialize a counter in the Table.onCreate( ) method

> n | Conditionally increment the counter in the Row.onCreate( ) method

> n | Display the result using the ReportDesign.afterFactory( ) method

(c) Copyright Actuate Corporation 2008