TestPage.GoToKey([Any,...]) Method

Version: Available or changed with runtime version 1.0.

Finds the row in a data set on the test page that is identified by the specified values.

Syntax

[Ok := ]  TestPage.GoToKey([Value: Any,...])

Parameters

TestPage
 Type: TestPage
An instance of the TestPage data type.

[Optional] Value
 Type: Any
The value or list of values to use to find the row. If this parameter is omitted, the value of the primary key that is defined for the underlying table is used.

Return Value

[Optional] Ok
 Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

Remarks

The GoToKey method loops over all records until it finds the identifies row. For each record, the OnAfterGetCurrRecord Trigger is executed.

TestPage Data Type
Get Started with AL
Developing Extensions