Class TCustomrDBRecViewUDB

Unit

Declaration

type TCustomrDBRecViewUDB = class(TrDBRecView)

Description

TrDBRecView descendant with possibility to load/show/edit record from any SQL command

Hierarchy

  • TrDBRecView
  • TCustomrDBRecViewUDB

Overview

Methods

Protected procedure Loaded; override;
Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
Public procedure ReloadData;

Properties

Public property RecDataSet: TQueryIntList read FRecDataSet;
Public property RecDataSource: TDataSource read FRecDataSource;
Published property RecSQL: TStrings read FRecSQL write SetRecSQL;
Published property RecConnection: TCustomConnectionUDB read FRecConnection write SetRecConnection;
Published property RecAutoLoad: boolean read FRecAutoLoad write FRecAutoLoad default true;
Published property RecSQLTryNow: boolean read FRecSQLTryNow write SetRecSQLTryNow default false;
Published property OnGetRecSQL: TGetSQLEvent read FOnGetRecSQL write FOnGetRecSQL;
Published property RecDataSetReadOnly: boolean read FRecDataSetReadOnly write FRecDataSetReadOnly default false;
Published property OnRecDataSetEvent: TDataSetEvent read FRecDataSetEvent write SetRecDataSetEvent;

Description

Methods

Protected procedure Loaded; override;
 
Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
 
Public procedure ReloadData;

open SQL command and refresh recview content

Properties

Public property RecDataSet: TQueryIntList read FRecDataSet;

return internal Dataset to allow reading of other fields

Public property RecDataSource: TDataSource read FRecDataSource;

return internal Datasource to allow using for other DB components

Published property RecSQL: TStrings read FRecSQL write SetRecSQL;

define SQL command

Published property RecConnection: TCustomConnectionUDB read FRecConnection write SetRecConnection;

define UDB connection

Published property RecAutoLoad: boolean read FRecAutoLoad write FRecAutoLoad default true;

define whether ReloadData is called automatically after loading

Published property RecSQLTryNow: boolean read FRecSQLTryNow write SetRecSQLTryNow default false;

try to open SQL command in design time

Published property OnGetRecSQL: TGetSQLEvent read FOnGetRecSQL write FOnGetRecSQL;

call before opening of SQL to allow update command or set WHERE condition

Published property RecDataSetReadOnly: boolean read FRecDataSetReadOnly write FRecDataSetReadOnly default false;

define whether internal dataset is read only (editing is not allowed)

Published property OnRecDataSetEvent: TDataSetEvent read FRecDataSetEvent write SetRecDataSetEvent;

define event for internal dataset (BeforeOpen, BeforePost... After... ses TDataSetEventTypes


Generated by PasDoc 0.15.0.