The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

GOTOKEY Method (TestPage)

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


[Ok :=]TestPage.GOTOKEY([Value],...);  


Type: TestPage

The test page that contains the dataset.

Type: Text or Integer

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.

Property Value/Return Value

Type: Boolean

true if the specified row is found; otherwise, false. The return value is optional.


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

See Also

TestPage Methods