Share this page

# Example: sapgui_call_method_of_active_object_ex

In this example, the first child of a TreeView root has two sub children, "Item1" and "Item2". sapgui_call_method_of_active_object_ex saves the node names to parameters.

// Save the collection object as the active object

sapgui_active_object_from_parent_method(shell2,

"GetSubNodesCol", "Child1", LAST );

// Call the "ElementAt" method of the collection on each item:

sapgui_call_method_of_active_object_ex( "ElementAt",

"MySubNode_1", "0", LAST );

sapgui_call_method_of_active_object_ex( "ElementAt",

"MySubNode_2", "1", LAST );

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