HierarchyData LoadFromDatabase Method (String, DBMSType, String,  String , String)Chart4.NET - Organization Charting Component (C#/VB.NET/ASP.NET) - Documentation
Onlinewww.Chart4.NET (Documentation) | OnlineSamples Download | Release Notes

Loads data from a database table. See HierarchyData class description for the table format.

Namespace: UnifoChart.Hierarchy
Assembly: UnifoChart.Hierarchy (in UnifoChart.Hierarchy.dll) Version: 5.1.0.0 (5.1.0)
Syntax

public string LoadFromDatabase(
	string ConnectionString,
	DBMSType DBMSType,
	string TableName,
	string[] FieldsArray,
	string WhereCondition
)
public String LoadFromDatabase(
	String ConnectionString,
	DBMSType DBMSType,
	String TableName,
	String[] FieldsArray,
	String WhereCondition
)

Parameters

ConnectionString
Type: OnlineSystem String
The database connection string
DBMSType
Type: UnifoChart.Hierarchy DBMSType
Type of the Database Management System
TableName
Type: OnlineSystem String
Name of the table
FieldsArray
Type:  OnlineSystem String 
Array of column names in the order of IdField, ParentIdField, TextField, ValueField, ToolTipField, ImageFileField, UrlField, TagField
WhereCondition
Type: OnlineSystem String
The CONDITION column name in the table

Return Value

Returns blank if succeeded, error message otherwise.
See Also