Class TCustomrDBCheckListBoxUDB
Unit
rDBComponents_UDB
Declaration
type TCustomrDBCheckListBoxUDB = class(TrDBCheckListBox)
Description
TrDBCheckListBox descendant with possibility to load list of items and values from any SQL command, provide all functions for N:M relationship
Hierarchy
- TrDBCheckListBox
- TCustomrDBCheckListBoxUDB
Overview
Methods
Properties
Description
Methods
|
procedure Loaded; override; |
|
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
|
|
procedure ReloadItemsList(ReloadValues: boolean); |
open SQL command and refresh list items
|
|
procedure ReloadItemsValue; |
open SQL command and refresh list values = checkboxes
|
|
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 ListConnection: TCustomConnectionUDB read FListConnection write SetListConnection; |
define UDB connection
|
|
property ItemsListSQL: TStrings read FItemsListSQL write SetItemsListSQL; |
define SQL command for loading of list items, value of first field is used as N-table ID value, value of 2nd field as N-table listed text
|
|
property ItemsListAutoLoad: boolean read FItemsListAutoLoad write FItemsListAutoLoad default true; |
define whether ReloadItemsList is called automatically after loading
|
|
property ItemsListSQLTryNow: boolean read FItemsListSQLTryNow write SetItemsListSQLTryNow default false; |
try to open ItemsListSQL command in design time
|
|
property OnGetItemsListSQL: TGetSQLEvent read FGetItemsListSQL write FGetItemsListSQL; |
call before opening of ItemsListSQL to allow update command or set WHERE condition
|
|
property ItemsValueSQL: TStrings read FItemsValueSQL write SetItemsValueSQL; |
define SQL command for loading of item values, value of first field is used as M-table ID value, value of 2nd field as N-table ID value
|
|
property ItemsValueSQLTryNow: boolean read FItemsValueSQLTryNow write SetItemsValueSQLTryNow default false; |
try to open ItemsValueSQL command in design time
|
|
property OnGetItemsValueSQL: TGetSQLEvent read FGetItemsValueSQL write FGetItemsValueSQL; |
call before opening of ItemsValueSQL to allow update command or set WHERE condition
|
|
property ItemsListDataSet: TQueryIntList read FItemsListDataSet; |
return internal List Dataset to allow reading of other fields
|
|
property ItemsValueDataSet: TQueryIntList read FItemsValueDataSet; |
return internal Value Dataset to allow reading of other fields
|
|
property OnBeforeSaveItemValues: TLoadSaveItemList read FOnBeforeSaveItemValues write FOnBeforeSaveItemValues; |
define event called before saving of items
|
|
property OnItemsValueDataSetEvent: TDataSetEvent read FItemsValueDataSetEvent write SetItemsValueDataSetEvent; |
define event for internal dataset (BeforeOpen, BeforePost... After... ses TDataSetEventTypes
|
Generated by PasDoc 0.15.0.
|