Platoo FReport Components TFRGroupManager

Contents - Properties


Description
Use TFRGroupManager to divide large results of searches or database quer i e s into smaller subsets and scroll these subsets.

GroupManager can contain other FR components, that will be used to generate HTML elements with ONCLICK events to scroll over all groups of data.

Subcomponents in TFRGroupManager:

Name Function

First Scroll to first group.

Last Scroll to last group

Prior Scroll to prior group.

Next Scroll to next group.

Group Scroll to specified group.

First, Last, Next and Prior elements will be inserted into t he HTML document once, Group will be inserted once for each p ossible group. For example, if you have 12 rows in your query and GroupLen 5 you will have 3 Group elements - 1 to 5, 6 to 10 and 11 to12.

Elements are always inserted in t he following order: First Prior Group [Group, Group] Next Last.

All elements are optional.

All elements can contain other elements, for example, you can have TFRBand as group element and TFRLabel or TFRCustomDynamicImage inside it as actual "active" element.

Elements, that must respon d to user actions must have ActionDataSource set to TFRGroupManager's DataSource and FRDAction set to GROUP_MANAGER.

NOTE: TFRGroupManager must be inside t he FORM HTML element, see TFRForm .


TFRGroupManager - Properties

Contents - TFRGroupManager

AsTABLE

Description
If AsTABLE is true, subcontrols will be inserted inside the HTML table, each in it's own cell.
Columns

Description
If Columns is >0 , result will be broken i n to several lines or table rows, max. Columns subcontrols in each line or row.
DataSource

Delphi declaration
property DataSource: TFRDataSource read FDataSource write SetDataSource;
C++ declaration
__property TFRDataSource *DataSource={ read=FDataSource, write=SetDataSource, nodefault }

Description
Use DataSource property to bind TFRGroupManager with a TFRDataSource component.

DefaultLen

Delphi declaration
property DefaultLen: Integer read FDefaultLen write SetDefaultLen default 10;
C++ declaration
__property int DefaultLen={ read=FDefaultLen, write=SetDefaultLen, default=10 }

Description
Group length used as default. You can set actual length at runtime b y setting TFRDataSource.GroupLen .

First

Delphi declaration
property First: TFRComponent read FFirst write SetFirst;
C++ declaration
__property TFRComponent *First={ read=FFirst, write=SetFirst, nodefault }

Description
Child control that will be used to create First part for GroupManager.

Group

Delphi declaration
property Group: TFRComponent read FGroup write SetGroup;
C++ declaration
__property TFRComponent *Group={ read=FGroup, write=SetGroup, nodefault }

Description
Child control that will be used to create Group part for GroupManager.

GroupBegin

Delphi declaration
property GroupBegin: Integer read FGroupBegin;
C++ declaration
__property int GroupBegin={ read=FGroupBegin, nodefault }

Description
Use GroupBegin to get t he begin n ing of t he relevant group for Group component being inserted.

GroupEnd

Delphi declaration
property GroupEnd: Integer read FGroupEnd;
C++ declaration
__property int GroupEnd={ read=FGroupEnd, nodefault }

Description
Use GroupEnd to get t he end of t he relevant group for Group component being inserted.

GroupLen

Delphi declaration
property GroupLen: Integer read FGroupLen;
C++ declaration
__property int GroupLen={ read=FGroupLen, nodefault }

Description
Use GroupLen to read t he length of t he group.

Last

Delphi declaration
property Last: TFRComponent read FLast write SetLast;
C++ declaration
__property TFRComponent *Last={ read=FLast, write=SetLast, nodefault }

Description
Child control that will be used to create Last part for GroupManager.

Next

Delphi declaration
property Next: TFRComponent read FNext write SetNext;
C++ declaration
__property TFRComponent *Next={ read=FNext, write=SetNext, nodefault }

Description
Child control that will be used to create Next part for GroupManager.

Prior

Delphi declaration
property Prior: TFRComponent read FPrior write SetPrior;
C++ declaration
__property TFRComponent *Prior={ read=FPrior, write=SetPrior, nodefault }

Description
Child control that will be used to create Prior part for GroupManager.

RecordCount

Delphi declaration
property RecordCount: Integer read FRecordCount;
C++ declaration
__property int RecordCount={ read=FRecordCount, nodefault }

Description
Use RecorDount to find out how many records t he underlying dataset contains.

State

Delphi declaration
property State: TFRManagerState read FState;
C++ declaration
__property TFRManagerState State={ read=FState, nodefault }

Description
Use State to find out wh i ch child component ( First, Next, Prior, Last or Group) is being inserted into the HTML document at given time.