Namespace: Consultingwerk.SmartComponents.Implementation
Class 
SmartBusinessEntityBindingSource Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.SmartComponents.Implementation.SmartBindingSource
Implements: ICustomTypeDescriptor, IHasDesignerVerbs

File:SmartBusinessEntityBindingSource
Purpose:Provides Design Time support for OERA Business Entities
Description:Similar OERA support with SmartBusinessEntityAdapter
Author(s):Marko Rueterbories / Consultingwerk Ltd.
Created:Tue Apr 07 09:36:41 CEST 2009
Notes:Inherits Progress.Data.BindingSource, enhancements only
for development, at runtime identical behavior with
Progress.Data.BindingSource, aka ProBindingSource



Top Method Summary
Options Name Purpose
INTEGER CalculateControlWidth (ColumnPropDesc) Calculates the width for the control representing the column
DesignerImportSchema () Import the schema of a BusinessEntity defined by the Properties EntityName, EntityTable, EntityView and EntityJoin. This Method is called when the Property ImportSchema is set to TRUE.
DesignerImportSchema (logical) Import the schema of a BusinessEntity defined by the Properties EntityName, EntityTable, EntityView and EntityJoin. This Method is called when the Property ImportSchema is set to TRUE.
DesignerImportSchema (logical, character) Import the schema of a BusinessEntity defined by the Properties EntityName, EntityTable, EntityView and EntityJoin. This Method is called when the Property ImportSchema is set to TRUE.
DesignerImportSchema (logical, character, character) Import the schema of a BusinessEntity defined by the Properties EntityName, EntityTable, EntityView and EntityJoin. This Method is called when the Property ImportSchema is set to TRUE.
Consultingwerk.SmartComponents.Support.BindingSourceDataHandles GetDesignTimeDataHandle (character, character, character, character, character, character) Returns a DataHandle to a DesignTime Dataset. This Dataset is then analyzed and the Schema is set as the new TableSchema.
InitializeFromAdapter (SmartDatasetAdapter) Initializes the EntityTable, EntityName, EntityView and EntityJoin properties from a SmartBusinessEntityAdapter or SmartDatasetChildAdapter
OnVerbClicked (character) Event Handler method for Designer Verbs
Progress.Data.TableDesc RecurseDatasetRelations (handle, handle) Analyze the Dataset recursively and add all Tables and Fields together to a WorkTable representing the new TableSchema.
SetDesignerProperties () Sets properties for the Visual Designer customization
ShowBusinessEntityPickerDialog () Shows a dialog to select a Business Entity
ShowTablePickerDialog () Invokes the Table Picker Dialog and sets properties of the SmartBusinessEntityAdapter during Design Time

Top Constructor Summary
Options Name Purpose
SmartBusinessEntityBindingSource () Constructor for the SmartBusinessEntityBindingSource class
SmartBusinessEntityBindingSource (IContainer) Constructor for the SmartBusinessEntityBindingSource class

Top Property Summary
Options Name Purpose
CHARACTER BindTo
CHARACTER EntityJoin
CHARACTER EntityName
CHARACTER EntityTable
CHARACTER EntityView


Method Detail
Top

INTEGER CalculateControlWidth (ColumnPropDesc)

Purpose: Calculates the width for the control representing the column
Notes:

Parameters:
poColumn Progress.Data.ColumnPropDesc
The ColumnPropDesc representing the current column
Returns INTEGER
The width for the control
Top

DesignerImportSchema ()

Purpose: Import the schema of a BusinessEntity defined by the Properties
EntityName, EntityTable, EntityView and EntityJoin.
This Method is called when the Property ImportSchema is set to
TRUE.
Notes: The current TableSchema of the SmartBusinessEntityBindingSource
is cleared out and the new Schema out of the BusinessEntity is
set.

Top

DesignerImportSchema (logical)

Purpose: Import the schema of a BusinessEntity defined by the Properties
EntityName, EntityTable, EntityView and EntityJoin.
This Method is called when the Property ImportSchema is set to
TRUE.
Notes: The current TableSchema of the SmartBusinessEntityBindingSource
is cleared out and the new Schema out of the BusinessEntity is
set.

Parameters:
plSilent LOGICAL
When True don't show message on completion
Top

DesignerImportSchema (logical, character)

Purpose: Import the schema of a BusinessEntity defined by the Properties
EntityName, EntityTable, EntityView and EntityJoin.
This Method is called when the Property ImportSchema is set to
TRUE.
Notes: The current TableSchema of the SmartBusinessEntityBindingSource
is cleared out and the new Schema out of the BusinessEntity is
set.

Parameters:
plSilent LOGICAL
When True don't show message on completion
pcExcludeFields CHARACTER
Comma delimited list of columns to exclude from the binding source schema
Top

DesignerImportSchema (logical, character, character)

Purpose: Import the schema of a BusinessEntity defined by the Properties
EntityName, EntityTable, EntityView and EntityJoin.
This Method is called when the Property ImportSchema is set to
TRUE.
Notes: The current TableSchema of the SmartBusinessEntityBindingSource
is cleared out and the new Schema out of the BusinessEntity is
set.

Parameters:
plSilent LOGICAL
When True don't show message on completion
pcExcludeFields CHARACTER
Comma delimited list of columns to exclude from the binding source schema
pcDatasetControllerType CHARACTER
The type of dataset controller
Top

Consultingwerk.SmartComponents.Support.BindingSourceDataHandles GetDesignTimeDataHandle (character, character, character, character, character, character)

Purpose: Returns a DataHandle to a DesignTime Dataset. This Dataset is then
analyzed and the Schema is set as the new TableSchema.
Notes: This Method is called by DesignerImportSchema ()

Parameters:
pcEntityName CHARACTER
The name of the BusinessEntity
pcEntityTable CHARACTER
The RootTable for this Instance of the BusinessEntity
pcEntityView CHARACTER
List of Tables to read with the EntityTable
pcEntityJoin CHARACTER
List in the same oder as pcEntityView which defines Join YES or NO for each Table of pcEntityView
pcQueryOrDataset CHARACTER
Working on a Query or the ProDataset
pcDatasetControllerType CHARACTER
The type name of the dataset controller
Returns Consultingwerk.SmartComponents.Support.BindingSourceDataHandles
The handle of the design time dataset
Top

InitializeFromAdapter (SmartDatasetAdapter)

Purpose: Initializes the EntityTable, EntityName, EntityView and EntityJoin
properties from a SmartBusinessEntityAdapter or SmartDatasetChildAdapter
Notes:

Parameters:
poAdapter Consultingwerk.SmartComponents.Base.SmartDatasetAdapter
The reference to the SmartBusinessEntityAdapter or SmartDatasetChildAdapter to copy settings form
Top

OnVerbClicked (character)

Purpose: Event Handler method for Designer Verbs
Notes: This method is intended to be overridden

Parameters:
pcVerbText CHARACTER
The text indicating the verb that was clicked
Top

Progress.Data.TableDesc RecurseDatasetRelations (handle, handle)

Purpose: Analyze the Dataset recursively and add all Tables and Fields
together to a WorkTable representing the new TableSchema.
Notes: This Method is called by DesignerImportSchema ().

Parameters:
phDataHandle HANDLE
The Handle of the Dataset which is processed
phBuffer HANDLE
The TopBuffer of the Dataset
Returns Progress.Data.TableDesc
The TableDesc with the selected schema
Top

SetDesignerProperties ()

Purpose: Sets properties for the Visual Designer customization
Notes:

Top

ShowBusinessEntityPickerDialog ()

Purpose: Shows a dialog to select a Business Entity
Notes: Invoked by the "Select BusinessEntity" Designer Verb, only intended
for DesignTime

Top

ShowTablePickerDialog ()

Purpose: Invokes the Table Picker Dialog and sets properties of the
SmartBusinessEntityAdapter during Design Time
Notes: Invoked by the "Select Tables" Designer Verb. Only intended for
DesignTime



Constructor Detail
Top

SmartBusinessEntityBindingSource ()

Purpose: Constructor for the SmartBusinessEntityBindingSource class
Notes:

Top

SmartBusinessEntityBindingSource (IContainer)

Purpose: Constructor for the SmartBusinessEntityBindingSource class
Notes:

Parameters:
poContainer System.ComponentModel.IContainer
The System.ComponentModel.IContainer used as the Container for this component


Property Detail
Top

CHARACTER BindTo


Returns CHARACTER
Top

CHARACTER EntityJoin


Returns CHARACTER
Top

CHARACTER EntityName


Returns CHARACTER
Top

CHARACTER EntityTable


Returns CHARACTER
Top

CHARACTER EntityView


Returns CHARACTER


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