Window field events
Window fields provide the following events:
- Change
- EnterBeforeOriginal
- EnterAfterOriginal
- LeaveBeforeOriginal
- LeaveAfterOriginal
- ValidateBeforeOriginal
- ValidateAfterOriginal
Change
This event occurs when the value of the field changes, such as being set by the user or changed by other code in Microsoft Dynamics GP.
ClickAfterOriginal
This event occurs when the user clicks a button, but after the button's click event is run.
ClickBeforeOriginal
This event occurs when the user clicks a button, but before the button's click event is run. This event can be canceled.
EnterBeforeOriginal
This event occurs when the focus moves to the field, but before the field's enter event is run. This event can be canceled.
EnterAfterOriginal
This event occurs when the focus moves to the field, but after the field's enter event is run.
LeaveBeforeOriginal
This event occurs when the focus moves from the field, but before the field's leave event is run. This event can be canceled.
LeaveAfterOriginal
This event occurs when the focus moves from the field, but after the field's leave event is run.
ValidateBeforeOriginal
This event occurs when the focus is to move from the field, and the field has been set to be validated. A field will be validated when its value has been changed, or the validation has been forced, such as with the ForceValidate() method. This event occurs before the field's validate event. It can be canceled.
ValidateAfterOriginal
This event occurs when the focus is to move from the field, and the field has been set to be validated. This event occurs after the field's validate event.