On Display Detail
| Code | Can be called by | Definition |
|---|---|---|
| 8 | Form - List Box | A record is about to be displayed in a list form or a row is about to be displayed in a list box. |
Description
The On Display Detail event can be used in the following contexts:
Output form
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 record:
- For each object in the detail area:
- Object method with
On Display Detailevent
- Object method with
- Form method with
On Display Detailevent
- For each object in the detail area:
The header area is handled using the
On Headerevent.
Calling a 4D command that displays a dialog box from the On Display Detail 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.
Selection list box
This event is generated when a row of a selection type list box is displayed.
Displayed line number
The Displayed line number 4D command works with the On Display Detail form event. It returns the number of the row being processed while a list of records or list box rows is displayed on screen.