On Header
| Code | Can be called by | Definition |
|---|---|---|
| 5 | 4D Write Pro area - Button - Button Grid - Check Box - Dropdown list - Form (list form only) - Hierarchical List - Input - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Spinner - Splitter - Stepper - Tab control | The form's header area is about to be printed or displayed. |
Description
The On Header event is called when a record is about to be displayed in a list form displayed via DISPLAY SELECTION and MODIFY SELECTION.
This event cannot be selected for project forms, it is only available with table forms.
In this context, the following sequence of calls to methods and form events is triggered:
- For each object in the header area:
- Object method with
On Headerevent - Form method with
On Headerevent
- Object method with
Printed records are handled using the
On Display Detailevent.
Calling a 4D command that displays a dialog box from the On Header event is not allowed and will cause a syntax error to occur. More particularly, the commands concerned are: ALERT, DIALOG, CONFIRM, Request, ADD RECORD, MODIFY RECORD, DISPLAY SELECTION, and MODIFY SELECTION.