編輯

共用方式為


OnFindRecord (Page) trigger

Version: Available or changed with runtime version 1.0.

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

Syntax

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

Parameters

Which
 Type: Text
Text or code value with the following options:

  • (a dash): First record,
  • (a plus sign): Last record, =<>: Record defined in the Rec variable or the closest match.

Return Value

Ok
 Type: Boolean
true if the specified record was found, otherwise, false.

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.

Get Started with AL
Developing Extensions
OnFindRecord (Request Page) Trigger