RecordRef.SetRecFilter() Method
Version: Available or changed with runtime version 1.0.
Sets a filter on a record that is referred to by a RecordRef.
Syntax
RecordRef.SetRecFilter()
Parameters
RecordRef
Type: RecordRef
An instance of the RecordRef data type.
Remarks
This method works the same as the SetRecFilter Method (Record).
Example
The following example opens the Customer table as a RecordRef variable that is named MyRecordRef. The SetRecFilter method sets the values in the current key of the current record as a record filter. The GetFilters Method (RecordRef) retrieves the filters that have been set and displays them in a message box. No. is displayed because the filter is set on the No. field, which is the current key.
var
MyRecordRef: RecordRef;
varFilters: Text;
Text000: Label 'The filter is set on the %1 field.';
begin
MyRecordRef.Open(Database::Customer);
MyRecordRef.SetRecFilter;
varFilters := MyRecordRef.GetFilters;
Message(Text000, varFilters);
end;
See Also
RecordRef Data Type
Get Started with AL
Developing Extensions
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈