> ## Tutorial 6: Writing an event handler in JavaScript

> This tutorial provides instructions for writing a set of event handlers. The tutorial shows a basic report design that accesses the Classic Models, Inc. sample database. The design contains a table of customers with a column for the customer name. In this tutorial, you count customer names containing the string, Mini, then display the result in a pop-up window. These event handlers provide functionality equivalent to using an aggregate report item without the use of script.

> In this tutorial, you perform the following tasks:

> | Create the report design

> | Create a counter in Table.onCreate

> | Conditionally increment the counter

> | Display the result

(c) Copyright Actuate Corporation 2013