sapgui_tree_double_click_item
| Tree Functions |
Double clicks an item in tree.
int sapgui_tree_double_click_item( const char *description, const char *treeID, const char *nodeKey, const char *itemName, [args,] LAST ) ;
| description | User entered text to aid in understanding script |
| treeID | Object ID Strings |
| nodeKey | Object ID Strings |
| itemName | Object ID Strings |
| args | Optional Arguments, often including Dynamic Tree Node Keys. |
| LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used. |
sapgui_tree_double_click_item emulates a user double clicking on an item in a tree. If the item is a link the target opens: if a command, the command executes.
The item must be selected before you can call sapgui_tree_double_click_item.
Return Values
This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.
Parameterization
You can parameterize all string (char type) arguments.
Example
The following example uses sapgui_tree_double_click_item to open the another window called "List Layout".
// First select the item
sapgui_tree_select_item("SAP Column Tree, REPTITLE", "shellcont/shell",
"000692",
"REPTITLE",
BEGIN_OPTIONAL,
"AdditionalInfo=info4019",
END_OPTIONAL);
// Then double-click on it
sapgui_tree_double_click_item("List layout, REPTITLE", "shellcont/shell",
"000692",
"REPTITLE",
BEGIN_OPTIONAL,
"AdditionalInfo=info1018",
END_OPTIONAL);

