Checks or unchecks a tree item's check box.
SapGui.bdh
SapGuiTreeChangeCheckBox( in sControlId : string allownull,
in sNodeName : string,
in sNode : string,
in sItemName : string,
in bChecked : boolean,
in sTimer : string optional ) : boolean;
| Parameter | Description |
|---|---|
| sControlId | The tree's unique id. |
| sNodeName | The name of the node for which the check box will be changed. Silk Performer will try to look up the node by matching the node name. If it cannot find the node by the name or if the name is not unique, specify the node id in the third parameter. |
| sNode | The node id identifying the node. |
| sItemName | The item's name. |
| bChecked | Set this parameter to true in order to check the check box. False otherwise. |
| sTimer | Timer name used for measurements. |
transaction TMain
var
sConnID : string;
begin
// Connecting to SAP
sConnID := SapGuiOpenConnection( " /SAP_CODEPAGE=1100 /FULLMENU 10.5.2.132 0 /3");
SapGuiSetActiveConnection(sConnID);
SapGuiSetActiveSession("ses[0]");
// SAP
SapGuiSetActiveWindow("wnd[0]", "SAP", SAPGUI_MATCH_ExactNoCase);
SapGuiWindowAction(SAPGUI_WND_MAXIMIZE);
SapGuiLogon("ddic", "*******", "000", "");
SapGuiTreeChangeCheckbox("/usr/tab/tree", "NODENAME", "NODEID", "ITEM", false );
end TMain;