Routines for tree_bdb.kb


ExpandAbove

File Name

tree_bdb.kb

Syntax

ExpandAbove(REF expansion: LIST OF ExpandRec, VAL table: STRING, VAL child: STRING): INTEGER

Parameters

expansion:

table:

child:

Returns

None

Side Effects

None

Description

None

Dialog Forms Called

None


ExpandBelow

File Name

tree_bdb.kb

Syntax

ExpandBelow(VAL Tree: STRING, VAL Child: STRING, VAL Parent: STRING, VAL Param: STRING): LIST OF DisplayRec

Parameters

Returns

None

Side Effects

None

Description

None

Dialog Forms Called

None


FindRootTreeNode

File Name

tree_bdb.kb

Syntax

FindRootTreeNode(VAL Tree: STRING, VAL Child: STRING): INTEGER

Parameters

Tree - the table for the object that is being browsed or edited

Child - ID of the object being searched on

Returns

1 if successfully found record, 0 if otherwise

Side Effects

None

Description

This function finds objects in a tree table specifically by the node. Currently, this is only being used by Asset containers.

Dialog Forms Called

None


FlattenTree

File Name

tree_bdb.kb

Syntax

FlattenTree(VAL table: STRING,VAL root: STRING): LIST OF STRING

Parameters

table - table name on which tree is based

root - identifier for table record, for instance, h_object_id

Returns

Side Effect: None

Side Effects

None

Description

None

Dialog Forms Called

None


GetInventoryParam

File Name

tree_bdb.kb

Syntax

GetInventoryParam(REF displayList: LIST OF DisplayRec, VAL Param: STRING, VAL Tree: STRING)

Parameters

displayList -

Param - column name from table from which we need data

Tree - name of table

Returns

None

Side Effects

None

Description

None

Dialog Forms Called

None


GetListOfChildren

File Name

tree_bdb.kb

Syntax

GetListOfChildren(VAL Tree: STRING, VAL Parent: STRING, VAL whdl: WINDOW ): LIST OF ExpandRec

Parameters

Tree - the table for the object that is being browsed or edited

Parent - ID of the object being searched

wHdl - the window handle of the dialog box

Returns

List of string

Side Effects

None

Description

This function searches for children nodes for the parent passed in. When found, the children nodes are returned.

Dialog Forms Called

None


GetListOfInvalidContainers

File Name

tree_bdb.kb

Syntax

GetListOfInvalidContainers(VAL Parent: STRING, VAL whdl: WINDOW, VAL organization_id: STRING ): LIST OF ExpandRec

Parameters

Parent - pm_object_id for asset being checked

whdl - window handle of calling dialog

organization_id - organization ID for asset

Returns

String

Side Effects

None

Description

This function retrieves the list of containers that are invalid for the the pm_object_id passed in (parent).

Dialog Forms Called

None


GetTreeChildList

File Name

tree_bdb.kb

Syntax

GetTreeChildList( REF lst: LIST OF STRING, VAL treeType: STRING, VAL id: STRING ): INTEGER

Parameters

lst - list of string for child

treetype - table name passed in

id - ID to search for as the parent ID

Returns

List of string

Side Effect: None

Side Effects

None

Description

This routine looks for a list of children for the ID.

Dialog Forms Called

None


InsertTree

File Name

tree_bdb.kb

Syntax

InsertTree(VAL InTran: BOOLEAN, VAL Tree: STRING, VAL Child: STRING, VAL Parent: STRING ): INTEGER

Parameters

InTran - list of records matching partial key

Tree - table name for the object

Child - partial key

Parent - window handle of calling dialog box

Returns

Integer

Side Effect: None

Side Effects

None

Description

This routine inserts a record into the PM_OBJECT_TREE table. This table is used for asset containers. If the record does not exist, the routine inserts it.

Dialog Forms Called

None


TreeAK2PKList

File Name

tree_bdb.kb

Syntax

TreeAK2PKList(REF lst: LIST OF ExpandRec, VAL table: STRING, VAL ak: STRING, VAL wHdl: WINDOW): INTEGER

Parameters

lst - list of records matching partial key

table - table name for the object (e.g. H_OBJECT)

ak - partial key

wHdl - window handle of calling dialog box

Returns

String

Side Effect: None

Side Effects

None

Description

This routine accepts the partial key and returns the list of nodes that match that partial description.

Dialog Forms Called

None


TreeID2Path

File Name

tree_bdb.kb

Syntax

TreeID2Path(REF path: STRING, VAL table: STRING, VAL id: STRING): INTEGER

Parameters

path - direction where to find object in tree, if any

table - table from which to find the object

id - identifier for the object

Returns

0 if not found in tree

Side Effect: None

Side Effects

None

Description

This function returns the path that can be used to find the ID in the hierarchy manager.

Dialog Forms Called

None