Record.CopyFilter(Any, Any) Method

Version: Available or changed with runtime version 1.0.

Copies the filter that has been set for one field and applies it to another field.

Syntax

 Record.CopyFilter(FromField: Any, Record.ToField: Any)

Parameters

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

FromField
 Type: Any
The field from which the filter will be copied.

Record.ToField
 Type: Any

Remarks

The filter is copied and remains in the assigned group number. For example: Rec.CopyFilter(FromRec); disregards the current filter group on both Rec and FromRec, and copies the filter in FromRec (regardless of group number) into the same filter group assignment on Rec.

See Also

Record Data Type
Get Started with AL
Developing Extensions