Top Method Summary
Options Name Purpose
btnOk_Click (Object, EventArgs) Event handler for the Click event of the OK button
InitializeComponent () Initializes the Visual Design
SetCandidates (table, character) Fills the dialog with the data-relation candidates
SmartDataBrowserDefaultActionHandler (SmartDataBrowser, EventArgs) Method to be executed inside the class which implements the Interface IDefaultActionSubscriber.
StoreSelection () Stores the selected data-relation candidate in the SelectedParentTempTableName and SelectedRelationFields properties

Top Constructor Summary
Options Name Purpose
DataRelationAdvisorForm () Constructor for the DataRelationAdvisorForm class

Top Property Summary
Options Name Purpose
CHARACTER SelectedParentTempTableName
CHARACTER SelectedRelationFields


Method Detail
Top

btnOk_Click (Object, EventArgs)

Purpose: Event handler for the Click event of the OK button
Notes:

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

InitializeComponent ()

Purpose: Initializes the Visual Design
Notes:

Top

SetCandidates (table, character)

Purpose: Fills the dialog with the data-relation candidates
Notes: The candidates are displayed by their MatchRank, so that the
best candidate is the first (and initially selected) row

Parameters:
ttDataRelationCandidate TEMP-TABLE ttDataRelationCandidate
Temp-Table with the data-relation candidates
pcChildTempTableName CHARACTER
The name of the temp-table that has been added to the design
Top

SmartDataBrowserDefaultActionHandler (SmartDataBrowser, EventArgs)

Purpose: Method to be executed inside the class which implements the Interface
IDefaultActionSubscriber.
Notes: Invoked by the SmartDataBrowser Instance if the DefaultActionHandler
Method is executed. Selects the candidate of the active row and
closes the dialog, like a click on the OK button

Parameters:
sender Consultingwerk.SmartComponents.Implementation.SmartDataBrowser
The reference to the Instance of the SmartDataBrowser which has invoked the Method
e System.EventArgs
The System.EventArgs with the data for this event
Top

StoreSelection ()

Purpose: Stores the selected data-relation candidate in the
SelectedParentTempTableName and SelectedRelationFields properties
Notes: Called from the Click event handler of the OK button and from the
DefaultAction of the grid. The values are read from the current
record of the SmartTempTableAdapter (the data source of the grid)
and not from the cells of the grid



Constructor Detail
Top

DataRelationAdvisorForm ()

Purpose: Constructor for the DataRelationAdvisorForm class
Notes:



Property Detail
Top

CHARACTER SelectedParentTempTableName


Returns CHARACTER
Top

CHARACTER SelectedRelationFields


Returns CHARACTER


Temp-Table Detail

Temp-Table ttDataRelationCandidate

Defined in:


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       16.08.2026 16:54:53