Skip to main content
Version: v6.5.0

SAP Expand Tree

Command Description

Expand the parent tree to a specified node or project, with the target being the SAP tree component

Command Prototype

SAP.ExpandTree(objUiElement, sItem, executeIfDisabled)

Command parameter

parameterrequiredtypeDefault valuedescribe
objUiElementTruedecorator@ ui""Element feature string
sItemTruestring""Specify tree items or tree nodes in the parent tree
executeIfDisabledTruebooleanTrueDoes the tree project still execute when disabled

Return result

Run instance

/*********************************SAP 展开树*************************************
命令原型:
SAP.ExpandTree(objUiElement, sItem, executeIfDisabled)
入参:
objUiElement--目标.注:元素特征字符串
sItem--树项目.注:指定父级树中的树项目或树节点
executeIfDisabled--禁用仍然执行.注:树项目禁用时是否仍然执行
出参:

注意事项:

********************************************************************************/
SAP.ExpandTree(@ui"", "", True)