Muokkaa

Jaa


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.

RecordRef Data Type
Getting Started with AL
Developing Extensions