Namespace: Consultingwerk.SmartComponents.Support
Class 
DatasetRelationNodeParser Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:DatasetRelationNodeParser
Purpose:Supports loading dataset buffers to a tree following
their data relations
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Fri May 14 14:21:03 CEST 2010



Top Method Summary
Options Name Purpose
+ FillTreeViewWithTableNames (handle, TreeNodeCollection, character) Walks though the Dataset TopBuffers and add all of them with their childs to the TreeView
- System.Windows.Forms.TreeNode RecurseDatasetRelations (handle, handle, TreeNode, TreeNodeCollection, character) Add the DatasetRelations recursively to the tree
- LOGICAL RecurseFindTreeNodeName (character, TreeNodeCollection) Find a TreeNode by Name


Method Detail
Top

PUBLIC FillTreeViewWithTableNames (handle, TreeNodeCollection, character)

Purpose: Walks though the Dataset TopBuffers and add all of them with their
childs to the TreeView
Notes:

Parameters:
phDataset HANDLE
The handle of the business entity dataset
poRootNodes System.Windows.Forms.TreeNodeCollection
The TreeNodesCollection of the TreeView Control
pcCheckedTables CHARACTER
The names of the checked tables
Top

PRIVATE System.Windows.Forms.TreeNode RecurseDatasetRelations (handle, handle, TreeNode, TreeNodeCollection, character)

Purpose: Add the DatasetRelations recursively to the tree
Notes:

Parameters:
phDataHandle HANDLE
The handle of the business entity dataset
phBuffer HANDLE
The handle of the current parent buffer
poParentTreeNode System.Windows.Forms.TreeNode
The current parent tree node
poRootNodes System.Windows.Forms.TreeNodeCollection
The TreeNodesCollection of the TreeView Control
pcCheckedTables CHARACTER
The names of the checked tables
Returns System.Windows.Forms.TreeNode
The reference to the TreeNode for the buffer
Top

PRIVATE LOGICAL RecurseFindTreeNodeName (character, TreeNodeCollection)

Purpose: Find a TreeNode by Name
Notes: Returns TRUE if found

Parameters:
cFindTreeNodeName CHARACTER
The name (text) of the tree node to find
oNodeCollection System.Windows.Forms.TreeNodeCollection
The parent TreeNodeCollection
Returns LOGICAL
Logical value indicating if the tree node is found


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:33:54