OnFindRecord Trigger

Overrides the default page behavior and enables you to specify which record you want to display when the page opens.

Syntax

trigger OnFindRecord(Which): Ok
begin
    ...
end;

Parameters

Which

Text or code value with the following options:

Parameter Value Result
- (a dash) First record
+ (a plus sign) Last record
=>< Record defined in the Rec variable or the closest match

Return Value

Ok

(Boolean) Indicates whether the specified record was found.

Value Result
true Found
false Not found (default)

Applies To

  • Pages

Remarks

By default, open pages display the last record shown when the user exited the page. Use this trigger to override the default behavior and display the first record, last record, or a specific record as defined in the Rec variable.

See Also

Triggers
Page and Action Triggers