TestFilter.SetCurrentKey(TestFilterField [, TestFilterField,...]) Method
Version: Available or changed with runtime version 1.0.
Sets the specified fields in a data set on a test page as the current key.
Syntax
[Ok := ] TestFilter.SetCurrentKey(Field1: TestFilterField [, Field2: TestFilterField,...])
Parameters
TestFilter
Type: TestFilter
An instance of the TestFilter data type.
Field1
Type: TestFilterField
The field that you want to set as the current key.
[Optional] Field2
Type: TestFilterField
Additional field that you want to set as the current key. This parameter is optional.
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.
Related information
TestFilter Data Type
Get Started with AL
Developing Extensions