VS.1.4  event

User interactions with editable tables and Input components automatically cause the Viewsheet onLoad handler to re-execute.

The event object can be used within an onLoad Handler script to provide information about the user's most recent action in an editable table or Input component. The event object is instantiated at runtime when a user makes an interaction of the appropriate type, so you should test for its existence before attempting to access its properties. For example:

if(event!=null) {

   // access 'event' properties...

}

For an editable table, the event object provides the following properties:

event.name

The name of the table component.

event.type

The type of the component, always 'table'.

event.row

The index of the row in the table which the user modified.

event.column

The index of the column in the table which the user modified.

event.source

A reference to the table object which can be used to access table properties.

For an Input control, the event object provides the following properties:

event.name

The name of the Input component.

event.type

The type of the component: 'radiobutton', 'checkbox', 'combobox', 'textinput'.

event.source

A reference to the Input object which can be used to access object properties.

See Also

Accessing the Most Recent User Modification, for additional discussion of 'event' object.

<< VS.1.3 pviewsheet © 1996-2013 InetSoft Technology Corporation (v11.4) VS.1.5 runQuery >>