GetItemText Method (SapTree)

Class

SapTree.

Action

For multi column trees, this function returns the text of the item specified by the key and name parameters.

Micro Focus generally recommends using SAPTree.GetNodeText() instead of SAPTree.GetItemText(), because it is easier to use, however SAPTree.GetNodeText() does not work for every SAPTree. For an example of how to use SapTree.GetItemText() for a multi colum list tree, see http://stackoverflow.com/questions/29741718/text-in-tree-does-not-match-text-which-is-displayed.

Syntax

itemText = tree.GetItemText(nodeKey, itemName)
Variable Description
itemText String.
nodeKey The key of the node. String.
itemName The name of the item. String.