Language Reference Guide : Events : ChildSetValue Event
 
Share this page          
ChildSetValue Event
A ChildSetValue event is triggered for a CompositeField when the user performs an action that would trigger a SetValue event for one of the child fields of the CompositeField. A ChildSetValue event is triggered for a MenuGroup when the user performs an action that would trigger a SetValue event for one of the child fields of the MenuGroup.
This event has the following syntax:
on childsetvalue [compositefieldname | menugroupname]
The following attributes of the FrameExec class can be used in the ChildSetValue event block:
TriggerField
Specifies the field whose value was changed
OriginatorField
Specifies the CompositeField, if any, specified in the on childsetvalue statement
Usage: The ChildSetValue event is defined for all composite fields, including the subform that is a frame's top form. If you do not specify a composite field in the on setvalue statement, a ChildSetValue event is triggered by any user action that would cause a SetValue event.
If there are both a setvalue event block for a field and a childsetvalue event block for an enclosing composite field, the SetValue event precedes the ChildSetValue event.
The ChildSetValue event lets you process any changes in the children of a composite field or a menu group.
More information:
OriginatorField Attribute
TriggerField Attribute