Namespace: Consultingwerk.SmartComponents.Implementation
Class 
SmartGenericLookup Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartComponents.Base.SmartLookup
Implements: ICustomTypeDescriptor, Consultingwerk.SmartComponents.Interfaces.IEmbeddedSmartEditor, IHasDesignerVerbs, Consultingwerk.SmartComponents.Interfaces.ISupportsPerformLookupIfActive

File:SmartGenericLookup
Purpose:A generic Lookup implementation useful for any allowing
lookups on any ISmartDataSource implementation
Author(s):Marko Rueterbories / Consultingwerk Ltd.
Created:Tue Apr 07 08:29:30 CEST 2009
Notes:This Lookup does not provide the ability to perform
lookups on partial entered keys in the lookup field.
However, this might be implemented in a derived type
with knowledge of a specific data adapter class and
filter syntax



Top Method Summary
Options Name Purpose
CHARACTER GetLookupRegistryKey () This Method returns a Registry Key where the Lookup size and position is stored for each Lookup.
PerformLookup () Performs the lookup functionality, performs a call to the data source to retrieve the record based on the field value the user entered in the lookup control
PerformLookup (logical) PerformLookup is not supported by the SmartGenericLookup
ShowLookupDialog () A LookupDialog is shown which contains Data from a given SmartDataSource.

Top Constructor Summary
Options Name Purpose
SmartGenericLookup () Creates a new Instance of SmartGenericLookup and subscribes Handlers to Events.

Top Property Summary
Options Name Purpose
Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataSource LinkDataSource
Consultingwerk.SmartComponents.Base.SmartDataAdapter SmartDataSource


Method Detail
Top

CHARACTER GetLookupRegistryKey ()

Purpose: This Method returns a Registry Key where the Lookup size and position
is stored for each Lookup.
Notes: The Name of the Key is individual buildable.

Returns CHARACTER
The registry key where the lookup size and position is stored
Top

PerformLookup ()

Purpose: Performs the lookup functionality, performs a call to the data source
to retrieve the record based on the field value the user entered
in the lookup control
Notes: Abstract method that needs to be overridden in a more specialized
Lookup class, public method, that always assumes that the lookup has
no longer focus. Calls into PerformLookup (TRUE).

Top

PerformLookup (logical)

Purpose: PerformLookup is not supported by the SmartGenericLookup
Notes: The SmartGenericLookup is not able to fetch data after the user
enters a (partial) key value

Parameters:
plLostFocus LOGICAL
Not used
Top

ShowLookupDialog ()

Purpose: A LookupDialog is shown which contains Data from a given
SmartDataSource.
Notes: This Method is called from the Base Class if a user presses the
LookupEditorButton in RunTime.
A LookupDialog is set up with a Title and Data from a
SmartDataSource. The shown Columns of the result set can be limited
by providing a comma delimited list to the Property
LookupBrowserFields. The LookupKeyField is the field used to find
the correct Data Row when coming back from the Dialog. When the
OK Button was selected the related fields are recursively updated.



Constructor Detail
Top

SmartGenericLookup ()

Purpose: Creates a new Instance of SmartGenericLookup and subscribes Handlers
to Events.
Notes:



Property Detail
Top

Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataSource LinkDataSource


Returns Consultingwerk.SmartComponents.Interfaces.Design.IDesignDataSource
Top

Consultingwerk.SmartComponents.Base.SmartDataAdapter SmartDataSource


Returns Consultingwerk.SmartComponents.Base.SmartDataAdapter


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       13.04.2026 10:23:40