##### Getting field results by listening to the click event

When you click a field in the viewer, you can get the entire record of the field. The interface in package jet.thinviewer named ClickActionListener can implement this function. This interface is defined as:

    interface ClickActionListener
    {
            void clickOnField(jet.connect.Record currentRecord);
    }

If you have a class which wants to listen to the click event of a field, this class can implement this interface. Then, after you have instantiated a bean, you can add the ClickActionListener.

Notes:

- This action must be implemented before running the report. Finally after the report has been shown and you click on a field, the ClickActionListener's method clickOnField will be called, and you will then get the values of all columns in that field from the parameter currentRecord.
- To see an example, see TestResultBean.java in `<install_root>\help\designer\samples`.