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 Issues как механизма обратной связи для контента и заменим его новой системой обратной связи. Дополнительные сведения см. в разделеОтправить и просмотреть отзыв по