10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Treeview FieldsThe AddNode method has one mandatory parameter, and three optionalparameters:name(Required) Specifies the node's TextLabel attributekeylabel(Optional) Lets you specify a unique string that is associated with the newnode. If you specify a key label, you may use the NodeByKey method tosearch for the node.relative(Optional) Specifies an existing node in the tree. If relative is not specifiedor is null, the new node becomes the root node of the tree; the old rootnode, if it exists, becomes a sibling of the new root node.relation(Optional) Specifies the relation of the new node to relative. The possiblevalues of relation are:TN_LASTCHILDSpecifies that the new node is the last child of relative. This is thedefault if relation is not specified.TN_FIRSTCHILDSpecifies that the new node is the first child of relativeTN_NEXTSIBLINGSpecifies that the new node is the next sibling of relativeThe AddNode method returns the newly created node.Treeview FieldsA tree view field presents the end user with a hierarchical list of items in a treestructure that can be expanded or collapsed. The Tree attribute of a treeviewfield is a tree object.Working with List Views and Tree Views 269

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!