Indicates whether a C/AL variant contains a FilterPageBuilder variable.

Ok := Variant.ISFILTERPAGEBUILDER

Parameters

Type: Variant

Return Value

Type: Boolean

true if the C/AL variant contains a FilterPageBuilder variable; otherwise, false.

Example

The following example uses the ISFILTERPAGEBUILDER function on a filter page object that includes a filter control for the Date system table.

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

Variable name DataType SubType

varDateItem

Text

varFilterPageBuilder

FilterPageBuilder

myVariant

Variant

 Copy Code
varDateItem := 'Date record';
varFilterPageBuilder.ADDTABLE(varDateItem + ‘ 1’,DATABASE::Date);
myVariant := varFilterPageBuilder;
IF not myVariant.ISFILTERPAGEBUILDER THEN 
  ERROR(‘This variant should contain a FilterPageBuilder variable’);

See Also