FilterPageBuilder.PageCaption([String]) Method

Version: Available or changed with runtime version 1.0.

Gets or sets the FilterPageBuilder UI caption. Defaults to the resource text if not explicitly set.

Syntax

[PageCaption := ]  FilterPageBuilder.PageCaption([PageCaption: String])

Note

This method can be invoked using property access syntax.

Parameters

FilterPageBuilder
 Type: FilterPageBuilder
An instance of the FilterPageBuilder data type.

[Optional] PageCaption
 Type: String
The value to set for the FilterPageBuilder UI caption.

Return Value

[Optional] PageCaption
 Type: String
The current value of the FilterPageBuilder UI caption.

Example

var
    varFilterPageBuilder: FilterPageBuilder;
    Customer: Record Customer;
    Item: Record Item;
    varDateItem: Text[30];
begin
    varFilterPageBuilder.AddRecord('Item Table', Item);  
    varFilterPageBuilder.Addfield('Item Table', Item."No.", '>100');  
    varFilterPageBuilder.PageCaption := 'Item Filter Page';
    varFilterPageBuilder.RunModal;  
    Item.SetView(varFilterPageBuilder.Getview('Item Table')); 
end;

See Also

FilterPageBuilder Data Type
Creating Filter Pages for Tables
Getting Started with AL
Developing Extensions