Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.75 KB

recordref-settable-table-boolean-method.md

File metadata and controls

42 lines (34 loc) · 1.75 KB
title description ms.author ms.date ms.topic author ms.reviewer
RecordRef.SetTable(Record, Boolean) Method
Sets the table to which a Record variable refers as the same table as a RecordRef variable.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

RecordRef.SetTable(Record, Boolean) Method

Version: Available or changed with runtime version 11.0.

Sets the table to which a Record variable refers as the same table as a RecordRef variable.

Syntax

 RecordRef.SetTable(Rec: Record, ShareTable: Boolean)

Parameters

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

Rec
 Type: Record
Specifies the Record that you want to refer to the table.

ShareTable
 Type: Boolean
Specifies whether the method copies filters, views, automatically calculated FlowFields, marks, fields, and keys of the record or creates a reference to a temporary record. If RecordRef and Record are both temporary and ShareTable is true, then the COPY method causes Record to reference the same table as RecordRef. If ShareTable is true, then both Record and RecordRef must be temporary; otherwise an error will occur. If you specify false, only filters, marks, and keys are copied.

See Also

RecordRef Data Type
Getting Started with AL
Developing Extensions