Muokkaa

Jaa


RecordRef.Copy(RecordRef [, Boolean]) Method

Version: Available or changed with runtime version 5.3.

Copies a specified record referece's filters, views, automatically calculated FlowFields, marks, fields, and keys that are associated with the record from a table or creates a reference to a record.

Syntax

 RecordRef.Copy(FromRecordRef: RecordRef [, ShareTable: Boolean])

Parameters

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

FromRecordRef
 Type: RecordRef
The record reference to copy.

[Optional] 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 FromRecord and Record are both temporary and ShareTable is true, then the COPY method causes Record to reference the same table as FromRecord. If ShareTable is true, then both Record and FromRecord must be temporary; otherwise an error will occur. The default value is false. If you specify false, only filters, marks, and keys are copied.

RecordRef Data Type
Get Started with AL
Developing Extensions