TREEGEN COMPONENT 4.01
TreeGen Objects
Last modified: April 9,1999 
© 2000 Advantys. All rights reserved.

Tree Object

The Tree object can be created directly from a ASP program.

Syntax
Set myTree = Server.CreateObject("TreeGen.Tree")
myTree.Collections | Properties | Methods

Collections

Items (default) Items object
ACL ACL associated with the tree

Properties

Name Name of the tree
Description Description of the tree
TreeType Type of the tree (TREE or NEWS)
DataSource Data source of the tree (TEXT or ODBC)
Version Version of the TreeGen component
Domain Domain name
RootItem Root of the tree

Properties (TEXT datasource only)

PhysicalPath File description of the tree
TextSeparator Separator for Text Datasource
DateLastModified Last modified date of the tree

Properties (ODBC datasource only)

ConnectString ODBC ConnectString
SQLSelectString SQL request used to display items of a tree
SQLCleanString SQL request used to delete items
SQLAddString SQL request used to add items to a tree

Methods

LoadItems([ItemStart, Deep]) Loads the specified items
LoadItemsFromShortCut ("ShortCut", [Deep]) Loads items from the item with the specified shortcut
SaveItems Saves items

Methods (for debug purpose)

ShowDebugInfo Displays all tree and items properties
ShowDebugTreeInfo Displays tree properties
ShowDebugItemInfo Displays items properties

Items Object

Syntax
myItems.Properties | Methods

Properties

Count Returns the number of items

Methods

Item(ItemID) (Default method) Returns the Item object with the specified ID
Add(oItem) Adds a new item to the collection
Remove(Index) Removes a item from the collection

Item Object

Syntax
myItem.Collections | Properties | Methods

Collections

ACL ACL associated with the Item

Properties

ID ID of the Item
ChildID Child ID of the Item
SiblingID Brother ID of the Item
ParentID Parent ID of the Item
Child Returns a item object which is the child of the item
Sibling Returns a item object which is the brother of the item
Link Returns the link object associated to the item
BackLink Returns a link object
LikeAFolder Checks whether the current item is seen as a folder
ItemDate A Date
ShortCut ShortCut of the item
Level Level of the current item
IsChildLoaded Checks wether the child of the current item is loaded or not

Methods

HasChild Checks whether the item has a child
HasSibling Checks whether the item has a brother
HasParent Checks whether the item has a parent
AddChild Add a child to the current item
AddSibling Add a brother to the current item

Link Object

Syntax
myLink.Properties

Properties

Text Text for the link
Href Href of the link
Target Target of the link
Icon Icon associated to the link

Attributes Object

Only available for ODBC datasources.
The Attributes collection allows you to access to all your database fields via TreeGen component.

Syntax
myAttributes.Properties | Methods

Properties

Count Returns the number of attributes

Methods

Item(AttID) (Default method) Returns the Attribute object with the specified ID
Add(oItem) Adds a new attribute to the collection

Attribute Object

Only available for ODBC datasources

Syntax
myItem.Properties

Properties

Name Name of the attribute
Value Value of the attribute

ACL Object

Syntax
myACL.Properties | Methods

Properties

Count Returns the number of ACEs

Methods

Item(Key) (Default method) Returns the ACE object with the specified position in the ACL
Add(Trustee, Domain, AccessMask, AceType) Adds a new ACE object to the ACL collection
Remove(Index) Removes an ACE from the ACL collection

ACE Object

Syntax
myAce.Properties

Collections

Properties

Trustee Specifies the account name for this ACE
Domain Specifies the domain name for this ACE
AccessMask Specifies the AccesMask
AceType Specifies the ACE type

© 2000 Advantys. All rights reserved.