ITableWidget.Source

Fore Syntax

Source: ITableSource;

Description

The Source property determines a data source for the  TableWidget component.

Comments

As a data source for the TableWidget  component, use the data access components UiErAnalyzer and UiReport.

Fore Example

Executing the example requires a form with the following components:

Specify an express report as a data source for the UiErAnalyzer1 component.

The example is a handler of the OnCreate event for the form and OnRefresh for the TableWidget1 component.

Sub ITABLEWIDGET_SOURCEFormOnCreate(Sender: Object; Args: IEventArgs);
Begin
    TableWidget1.OnRefresh(Sender, Args);
End Sub ITABLEWIDGET_SOURCEFormOnCreate;

Sub TableWidget1OnRefresh(Sender: Object; Args: IEventArgs);
Begin
    //The navigation panel, which will display tabs:
    TableWidget1.NavBar := NavigationBar1;
    //The source, to which settings are applied:
    TableWidget1.Source := UiErAnalyzer1 As ITableSource;
    //Components activation:
    TableWidget1.Active := True;
End Sub TableWidget1OnRefresh;

After executing the example on creating a form, parameters of the TableWidget1 component are refreshed and set:

See also:

ITableWidget