cnsChangeTree

Replaces a tree or sub-tree with a new tree.

Synopsis

bool cnsChangeTree(string cnsPath, dyn_dyn_string nameTree, dyn_dyn_langString displayNamesTree, dyn_dyn_string idTree [, dyn_dyn_int idTypeTree]);

Parameters

Parameter Description
cnsPath The ID path of the tree (or node) that shall be replaced
nameTree Defines the node IDs of the tree
displayNamesTree Defines the display names of the tree's nodes
idTree Defines the data point (elements) which are linked to the nodes
idTypeTree Defines the CNSDataIdentifierType of the nodes

Return value

Returns TRUE if successful or FALSE in case of an error.

Errors

-

Description

This function replaces the given (sub-)tree with the new tree.

main()
{
  cnsChangeTree("System1.View1:Tree1", nameTree, displayNamesTree, idTree, idTypeTree);
}

Availability

UI, CTRL