Class TCustomCheckListBoxUDB
Unit
rDBComponents_UDB
Declaration
type TCustomCheckListBoxUDB = class(TrCheckListBox)
Description
TCheckListBox descendant with possibility to load list of items from any SQL command
Hierarchy
- TrCheckListBox
- TCustomCheckListBoxUDB
Overview
Methods
Properties
Description
Methods
|
procedure Loaded; override; |
|
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
|
|
procedure DoEnter; override; |
|
|
procedure ReloadItems; |
open SQL command and refresh list items
|
|
function GetListField(const FieldName: string): TField; overload; |
return Field from internal Dataset to allow reading of field value from selected record
|
|
function GetListField(FieldIndex: integer): TField; overload; |
return Field from internal Dataset to allow reading of field value from selected record
|
|
function GetItemObjectAsInt: integer; |
return ID value from selected item
|
|
function SetActiveItem(ObjectAsInt: integer): integer; |
set ItemIndex according ID value
|
Properties
|
property ListDataSet: TQueryIntList read FListDataSet; |
return internal Dataset to allow reading of other fields
|
|
property ListSQL: TStrings read FListSQL write SetListSQL; |
define SQL command, value of first field is used as text value
|
|
property ListConnection: TCustomConnectionUDB read FListConnection write SetListConnection; |
define UDB connection
|
|
property ListAutoLoad: boolean read FListAutoLoad write FListAutoLoad default true; |
define whether ReloadItems is called automatically after loading
|
|
property ListSQLTryNow: boolean read FListSQLTryNow write SetListSQLTryNow default false; |
try to open SQL command in design time
|
|
property OnGetListSQL: TGetSQLEvent read FGetListSQL write FGetListSQL; |
call before opening of SQL to allow update command or set WHERE condition
|
Generated by PasDoc 0.15.0.
|