Language Reference Guide : Events : ChildHeaderClick Event
 
Share this page          
ChildHeaderClick Event
The ChildHeaderClick event is triggered for a composite field when one of its child ListviewFields receives a HeaderClick event.
This event has the following syntax:
on childheaderclick [compositefieldname]
compositefieldname is optional if you specify this event in a field script for a composite field.
The following attributes of the FrameExec class can be used in the ChildHeaderClick event block:
TriggerField
Specifies the ListviewField that the user clicked on
OriginatorField
Specifies the field in the initial on ChildHeaderClick statement
ReasonCode
Specifies the ordinal number (relative to 1) of the column being clicked
Usage: The ChildHeaderClick event is defined for the ListviewField class.
The ChildHeaderClick event is generated when the user clicks one of the column headers of a ListviewField. The TriggerField attribute of the current FrameExec contains the reference to the ListviewField, and the ReasonCode attribute of the FrameExec contains the ordinal number of the Listview column that generates the ChildHeaderClick event. This ordinal number is relative to 1. For example, if the header of column one of a ListviewField is clicked, the ReasonCode will contain the number 1.