TestRequestPage.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. The key is searched from the beginning of the dataset defined by the current filter. The search is performed by iterating across the rows, comparing the primary key with the primary key fields of the record. For large dataset, use SetFilter to limit the dataset.

Syntax

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

Parameters

TestRequestPage
 Type: TestRequestPage
An instance of the TestRequestPage 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 key is found, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

TestRequestPage Data Type
Get Started with AL
Developing Extensions