ISFILTERPAGEBUILDER Function (Variant)
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 |
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
Reference
Variant Data Type
FilterPageBuilder Data Type
ADDFIELD Function
ADDFIELDNO Function
ADDRECORD Function
ADDRECORDREF Function
ADDTABLE Function
GETVIEW function (FilterPageBuilder)
SETVIEW Function
COUNT Function (FilterPageBuilder)
NAME Function (FilterPageBuilder)
RUNMODAL Function (FilterPageBuilder)