Example: sapgui_call_method_ex

In this example, the first child of a TreeView root has two sub children, "Item1" and "Item2". sapgui_call_method_ex invokes the SAP method, GetSubNodesCol.

sapgui_call_method_ex("usr/cntlTREE_CONTAINER/shellcont/shell",
    "GetSubNodesCol", 
    "MySubNode", 
    "Child1", LAST );

After the call, parameter MySubNode_1 contains the string "Item1", parameter MySubNode_2 contains the string "Item1" and parameter MySubNode_count is equal to "2".