Temp-table buffer FILL events
- Last Updated: April 13, 2023
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
The following table summarizes the events that are triggered during a FILL operation for a temp-table buffer:
| Event | When it occurs | Examples |
|---|---|---|
BEFORE-FILL
|
For each parent temp-table, BEFORE-FILL executes once before the retrieval of the first record
of the temp-table. For each child temp-table, BEFORE-FILL executes once after its parent record is retrieved,
but before the child records are retrieved. |
|
AFTER-FILL
|
For each parent temp-table, AFTER-FILL executes once after the retrieval of the last record of
the temp-table For each child temp-table, AFTER-FILL executes once after all child records for a parent are
retrieved. |
|
BEFORE-ROW-FILL |
BEFORE-ROW-FILL fires
prior to the retrieval of each row during the population of the specified
temp-table. |
|
AFTER-ROW-FILL |
AFTER-ROW-FILL fires after
the retrieval of each row during the population of the specified temp-table. |
|
BEFORE-FILL on a temp-table buffer
In this example, a BEFORE-FILL event
handler for the ttOrder parent temp-table buffer is
used to attach data-sources to the dataset.
|
BEFORE-FILL event to execute code that populates
the temp-table programmatically. AFTER-FILL on a temp-table buffer
In this example, an AFTER-FILL event
handler for the ttOrderLine temp-table buffer updates
ttOrder.OrderTotal after all of the ttOrderLine records for the current ttOrder are added to the dataset.
|
BEFORE-ROW-FILL on a temp-table buffer
In this example, a BEFORE-ROW-FILL event
handler for the ttOrderLine temp-table buffer is used
to filter child records as they are populated during the FILL process.
|
AFTER-ROW-FILL on a temp-table buffer
In this example, after each ttItem row
is populated, an AFTER-ROW-FILL event handler for the
ttItem temp-table buffer is used to capitalize the
ItemName field in the record buffer.
|
See also
FILL events in ABL Reference
Define FILL events in Use ProDataSets