Namespace: Consultingwerk.Windows.Framework.Repository.Rendering
Class 
DynamicTreeViewForm Copy to Clipboard
Parent classes:
Inherits: Consultingwerk.Windows.Framework.Repository.Rendering.DynamicFormWithRibbon
Implements: IBaseForm, ICheckOkToClose, ICustomTypeDescriptor, IFormSupportsHelp, IFormWithHash, IFormWithUltraDockManager, IHasDesignerVerbs, IHasPrimaryDataSourceAndTarget, IHasSecurityKey, IHasTabDataSourceCount, ISmartToolbarTarget, ISmartWindowForm, Consultingwerk.Windows.Framework.Repository.Rendering.ITabFolderParent

/*&GLOBAL-DEFINE NoUserLobStatistics NoUserLobStatistics



Top Method Summary
Options Name Purpose
ApplyDetailSpec (SerializableTreeNodeDetailSpec) Applies the detail spec of the selected tree node to the rendered detail panel
BuildTreeViewLayout () Builds the SplitContainer based tree view layout into the Form's FillPanel
ContentFormShownHandler (Object, EventArgs) Event handler for the Shown event of the rendered detail panel form
DetailAdapterCommittedHandler (Object, EventArgs) Event handler for the AfterAutoCommitTransaction and AfterCommitTransaction events of the detail panel's data source
DetailAdapterUpdatedHandler (Object, AfterUpdateRecordEventArgs) Event handler for the AfterUpdateRecord event of the detail panel's data source (data sources other than the SmartBusinessEntityAdapter)
InitializeTreeView () Initializes the treeview by fetching the root nodes for the configured RootNodeType
OnShown (EventArgs) Initializes the treeview after the form has been shown
RenderDetailPanel (character) Renders the detail panel referenced by the given template into the content panel
SubscribeDetailAdapter (SmartDatasetAdapter) Subscribes to the events of the detail panel's data source that signal a saved record
TreeNodeSelectedHandler (Object, TreeNodeSelectionEventArgs) Event handler for the TreeNodeSelected event of the treeview
UnsubscribeDetailAdapter () Unsubscribes from the events of the previously subscribed data source of the detail panel

Top Constructor Summary
Options Name Purpose
DynamicTreeViewForm () Constructor for the DynamicTreeViewForm class
DynamicTreeViewForm (character, character) Constructor for the DynamicTreeViewForm class

Top Property Summary
Options Name Purpose
Infragistics.Win.Misc.UltraPanel ContentPanel
CHARACTER RootNodeType
Consultingwerk.Windows.Controls.DynamicTreeViewControl TreeViewControl


Method Detail
Top

ApplyDetailSpec (SerializableTreeNodeDetailSpec)

Purpose: Applies the detail spec of the selected tree node to the
rendered detail panel
Notes: Filters the data source named by the Details:DataSource by the
Details:ForeignFields ForeignFields / ForeignValues and repositions it to the
record identified by the Details:KeyFields / KeyValues. Nodes
without a DataSource, or with a DataSource that is not part of
the rendered panel, leave the panel as it is

Parameters:
poDetails Consultingwerk.CommonUi.Components.TreeView.SerializableTreeNodeDetailSpec
The SerializableTreeNodeDetailSpec of the selected node
Top

BuildTreeViewLayout ()

Purpose: Builds the SplitContainer based tree view layout into the
Form's FillPanel
Notes: The DynamicTreeViewControl is placed on the left hand side, an
empty content panel - that receives the rendered detail panel -
on the right hand side

Top

ContentFormShownHandler (Object, EventArgs)

Purpose: Event handler for the Shown event of the rendered detail panel
form
Notes: The data sources of the panel retrieve their data from the same
event (subscribed before this handler), so the detail spec of
the node that caused the rendering is applied here

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

DetailAdapterCommittedHandler (Object, EventArgs)

Purpose: Event handler for the AfterAutoCommitTransaction and
AfterCommitTransaction events of the detail panel's data source
Notes: SCL-2033. Refreshes the selected tree node after the backend
has saved the changes

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

DetailAdapterUpdatedHandler (Object, AfterUpdateRecordEventArgs)

Purpose: Event handler for the AfterUpdateRecord event of the detail
panel's data source (data sources other than the
SmartBusinessEntityAdapter)
Notes: SCL-2033. Refreshes the selected tree node after a record has
been updated

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

InitializeTreeView ()

Purpose: Initializes the treeview by fetching the root nodes for the
configured RootNodeType
Notes: The ISmartTreeNodeProvider for the RootNodeType is expected to
be registered by the application

Top

OnShown (EventArgs)

Purpose: Initializes the treeview after the form has been shown
Notes:

Parameters:
e System.EventArgs
The System.EventArgs with the data for this event
Top

RenderDetailPanel (character)

Purpose: Renders the detail panel referenced by the given template into
the content panel
Notes: A previously rendered detail panel is removed first. The detail
spec of the node is applied once the panel form has been shown,
see ContentFormShownHandler

Parameters:
pcTemplate CHARACTER
The repository object name of the panel to render
Top

SubscribeDetailAdapter (SmartDatasetAdapter)

Purpose: Subscribes to the events of the detail panel's data source that
signal a saved record
Notes: SCL-2033. A SmartBusinessEntityAdapter raises
AfterAutoCommitTransaction (AutoCommit = TRUE) or
AfterCommitTransaction (AutoCommit = FALSE) once the backend
has saved the changes; other data sources raise
AfterUpdateRecord. A previously subscribed data source is
unsubscribed first

Parameters:
poAdapter Consultingwerk.SmartComponents.Base.SmartDatasetAdapter
The reference to the data source of the detail panel
Top

TreeNodeSelectedHandler (Object, TreeNodeSelectionEventArgs)

Purpose: Event handler for the TreeNodeSelected event of the treeview
Notes: Renders the DynamicPanelController referenced by the selected
node's Details:Template into the content panel - unless the
panel of that template is already rendered - and applies the
node's detail spec (data source filter and record) to it

Parameters:
sender Progress.Lang.Object
The object that raised the event
e Consultingwerk.Windows.Controls.TreeNodeSelectionEventArgs
The TreeNodeSelectionEventArgs with the data for this event
Top

UnsubscribeDetailAdapter ()

Purpose: Unsubscribes from the events of the previously subscribed data
source of the detail panel
Notes: SCL-2033. Called before the detail panel (and with it the data
source) is deleted



Constructor Detail
Top

DynamicTreeViewForm ()

Purpose: Constructor for the DynamicTreeViewForm class
Notes:

Top

DynamicTreeViewForm (character, character)

Purpose: Constructor for the DynamicTreeViewForm class
Notes:

Parameters:
pcObjectMasterName CHARACTER
The name of the repository object master
pcCharacterParameterValue CHARACTER
The value of the character startup parameter


Property Detail
Top

Infragistics.Win.Misc.UltraPanel ContentPanel


Returns Infragistics.Win.Misc.UltraPanel
Top

CHARACTER RootNodeType


Returns CHARACTER
Top

Consultingwerk.Windows.Controls.DynamicTreeViewControl TreeViewControl


Returns Consultingwerk.Windows.Controls.DynamicTreeViewControl


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       19.09.2026 10:22:42