Export (0) Print
Expand All

GETFILTER Function (Record)

Microsoft Dynamics Nav 2009

Returns a list of the filters within the current filter group that are applied to a field.


String := Record.GETFILTER(Field)

Parameters

Record

Type: Record

The input record.

Field

Type: Field

The input field.

Type: Text constant or code

This string contains a list of the filters applied to the field in the record.

This example shows how to use the GETFILTER function.

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

Variable name Data type Subtype

String

Text

 

CustomerEntry

Record

Cust. Ledger Entry

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

Text constant ENU value

Text000

'The filter is:\%1'

// Write the following code in the OnRun trigger.
CustomerEntry.SETRANGE(Amount, -100, 100);
String := CustomerEntry.GETFILTER(Amount);
MESSAGE(Text000, String);

The following message is displayed:

The filter is:

-100..100

Community Additions

ADD
Show:
© 2014 Microsoft