Example: sapgui_tree_unselect_all

The following example uses sapgui_tree_unselect_all to remove the selection from an item selected with sapgui_tree_select_item.

// After this call, the item is highlighted
sapgui_tree_select_item("Root Col. 1, Column3", 
    "usr/cntlTREE_CONTAINER/shellcont/shell", 
    "Root", 
    "Column3", 
    BEGIN_OPTIONAL, 
        "AdditionalInfo=info10103", 
    END_OPTIONAL);
// After this call, no items are selected
sapgui_tree_unselect_all("Unselect All", 
    "usr/cntlTREE_CONTAINER/shellcont/shell", 
    LAST );