Editar

Compartir vía


RecordRef.FindSet(Boolean, Boolean) Method

Version: Available or changed with runtime version 1.0 until version 11.0 where it was deprecated for the following reason: "This method has been deprecated because the parameter 'UpdateKey' is not used by the runtime. Use the overload without the 'UpdateKey' parameter instead."

Finds a set of records in a table based on the current key and filter. FindSet can only retrieve records in ascending order.

Syntax

[Ok := ]  RecordRef.FindSet(ForUpdate: Boolean, UpdateKey: Boolean)

Parameters

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

ForUpdate
 Type: Boolean
Set this parameter to false if you do not want to modify any records in the set. Set this parameter to true if you want to modify records in the set. If you set this parameter to true, then the records will be read with Updlock.

UpdateKey
 Type: Boolean
The UpdateKey parameter has been deprecated and will be removed in the future.

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.

RecordRef Data Type
Getting Started with AL
Developing Extensions