Share this page

# nca_tree_collapse_item

Tree Object Functions

Collapses a tree node.

    int nca_tree_collapse_item( LPCSTR name, LPCSTR item );

name | The logical name of the tree object.
node | The node to collapse.

The nca_tree_collapse_item function collapses a node in an Oracle NCA tree.

## Return Values

Oracle NCA Error Codes

## Parameterization

The following variable can be parameterized using standard parameterization: name

## Example

In the following example, nca_tree_collapse_item collapses the Main menu node in the `BTREE_MENU_TREE_0` tree object.

    nca_set_window("Shipping Transactions");

    nca_tree_select_item("QUERY_TREE_TREE_0", "Data Entry");
    nca_tree_expand_item("QUERY_TREE_TREE_0", "Data Entry");
    nca_tree_activate_item("QUERY_TREE_TREE_0", "Data Entry");

    nca_tree_select_item("QUERY_TREE_TREE_0", "Trip Data Entry");
    nca_tree_activate_item("QUERY_TREE_TREE_0", "Trip Data Entry");
    nca_tree_expand_item("BTREE_MENU_TREE_0", "Main menu");
    nca_tree_collapse_item("BTREE_MENU_TREE_0", "Main menu");

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: