Show contents 

Report > Report Assembly Interfaces > IPrxTable > IPrxTable.DataBinding

IPrxTable.DataBinding

Syntax

DataBinding: IPrxTableDataBinding;

Description

The DataBinding property enables the user to determine binding of the data of report sheet cells.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    SheetT: IPrxTable;
    Slice: IPrxSlice;
    DataS: IPrxDataSource;
    Sel: IDimSelectionSet;
    Range: ITabRange;
    Result: boolean;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Bind As IPrxReport;
    DataS := Report.DataSources.Item(0);
    Slice := DataS.Slices.Item(0);
    Sel := Slice.Selection;
    SheetT := Report.Sheets.Item(0As IPrxTable;
    Range := SheetT.TabSheet.Cells(0032);
    Result := SheetT.DataBinding.AttachRange(Range, Slice, Sel);
    If Result Then
        WinApplication.InformationBox("Bounded");
    Else
        WinApplication.InformationBox("Bind is not executed");
    End If;
End Sub UserProc;

After executing the example the system displays an appropriate message depending on the result.

See also:

IPrxTable