Namespace: Consultingwerk.SmartComponents.Implementation
Class 
SmartBusinessEntityPopupLookup Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartComponents.Implementation.SmartBusinessEntityLookup
Implements: Consultingwerk.SmartComponents.ILookupKeyValue, ICustomTypeDescriptor, Consultingwerk.SmartComponents.Interfaces.IEmbeddedSmartEditor, IHasDesignerVerbs, Consultingwerk.SmartComponents.Interfaces.ISmartBusinessEntityLookupDesign, Consultingwerk.SmartComponents.Implementation.ISmartDataFieldForeignFieldsClient, Consultingwerk.SmartComponents.Interfaces.ISupportsPerformLookupIfActive, System.ComponentModel.ISupportInitialize

File:SmartBusinessEntityPopupLookup
Description:Allows record selection using lookup field search and
a popup lookup
Author(s):Martyn Kemp / Consultingwerk Ltd.
Created:Mon May 08 12:26:03 BST 2017
Notes:The SmartBusinessEntityPopupLookup can be used as an
embedded Editor for an UltraGrid Control's column. When
doing so, the OwningGrid property of the
SmartBusinessEntityPopupLookup property needs to by set
to the reference of the UltraGrid.



Top Method Summary
Options Name Purpose
LookupControlClosedCleanUp () Handles the Lookup Control Closing Clean Up
LookupControlClosedHandler (Object, LookupResultEventArgs) Event handler for the Close event of the Lookup Control
oPopupControlContainer_Closed (Object, EventArgs) Handles The Closed Event of the PopupControlContainer
oPopupControlContainer_Opened (Object, EventArgs) Handles The Open Event of the PopupControlContainer
ShowLookupDialog () A PopupControlContainer is shown with the Data Information specified with the Properties LookupEntityName, LookupEntityTable and LookupEntityView.
ShutdownBusinessEntityAdapter () Shuts down (deletes) the SmartBusinessEntityAdapter instance

Top Constructor Summary
Options Name Purpose
SmartBusinessEntityPopupLookup () Constructor of the SmartBusinessEntityLookup control


Method Detail
Top

LookupControlClosedCleanUp ()

Purpose: Handles the Lookup Control Closing Clean Up
Notes: This method exists for cleaning up subscription events
because if a user clicks anywhere else within the screen
the Control Closes but never fired the LookupControlClosedHandler
Event.

Top

LookupControlClosedHandler (Object, LookupResultEventArgs)

Purpose: Event handler for the Close event of the Lookup Control
Notes: Stores value from the lookup in the oLookupDialogValueDictionary
dictionary so that the values are available even after the Lookup
Control has been disposed (after closing)

Parameters:
sender System.Object
The reference to the Control that raised the event
e Consultingwerk.SmartComponents.Implementation.LookupResultEventArgs
The LookupResultEventArgs with data for this event
Top

oPopupControlContainer_Closed (Object, EventArgs)

Purpose: Handles The Closed Event of the PopupControlContainer
Notes:

Parameters:
sender System.Object
: System.Object
e System.EventArgs
: System.EventArgs
Top

oPopupControlContainer_Opened (Object, EventArgs)

Purpose: Handles The Open Event of the PopupControlContainer
Notes: Only when opened can we force focus

Parameters:
sender System.Object
: System.Object
e System.EventArgs
: System.EventArgs
Top

ShowLookupDialog ()

Purpose: A PopupControlContainer is shown with the Data Information specified with the
Properties LookupEntityName, LookupEntityTable and LookupEntityView.
Notes: This Method is called from the Base Class if a user presses the
LookupEditorButton in RunTime.
A PopupControlContainer is set up with Data from the Backend
defined by the Properties LookupEntityName, LookupEntityTable and
LookupEntityView. 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 Control. When the OK Button was selected the related
fields are recursively updated.

Top

ShutdownBusinessEntityAdapter ()

Purpose: Shuts down (deletes) the SmartBusinessEntityAdapter instance
Notes:



Constructor Detail
Top

SmartBusinessEntityPopupLookup ()

Purpose: Constructor of the SmartBusinessEntityLookup control
Notes:



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