GETFILTERS Function (Record)

Returns a string which contains a list of the filters within the current filter group for all fields in a record. In addition, this function also returns the state of the MARKEDONLY Function (Record).


String := Record.GETFILTERS

Parameters

Record

Type: Record

The record from which you want a list of filters.

Type: Text or code

This string contains a list of the filters for all fields in Record.

This example requires that you create the following variables and text constant in the C/AL Globals window.

Variable name DataType Subtype Length

Str

Text

 

1024

CustLedgerEntry

Record

Cust. Ledger Entry

 

Text constant ENU value

Text000

The filters are:\

CustLedgerEntry.SETRANGE(Amount, -100, 100);
CustLedgerEntry.SETRANGE("Posting Date", 010108D, 123108D);
Str := CustLedgerEntry.GETFILTERS;
MESSAGE(Text000 + '%1', Str);

On a computer with the regional format set to English (United States), the message window displays the following:

The filters are:

Posting Date: 01/01/08..12/31/08, Amount: -100..100

Community Additions

ADD
Show: