yingkai1208
13 years agoContributor
Click an item by its name in a treeview
Hi, I want to click an item by its name in a treeview. For example, I want to click A_Mixed_US_2012 in the attachment of Capture 1. The only feasible approach I have tried is :
PROJECT_TREEVIEW.ClickItem("|[2]")
PROJECT_TREEVIEW is the alias of the mapped name of the treeview.
The Capture 2 in the attachment is the Object Browser for the treeview
I tried the following approaches. Neither of them is feasible.
Any suggestion is appreciated. Thanks in advance.
PROJECT_TREEVIEW.ClickItem("|[2]")
PROJECT_TREEVIEW is the alias of the mapped name of the treeview.
The Capture 2 in the attachment is the Object Browser for the treeview
I tried the following approaches. Neither of them is feasible.
PROJECT_TREEVIEW.ClickItem("|A_Mixed_US_2012 ")
PROJECT_TREEVIEW.ClickItem("||A_Mixed_US_2012 ")
PROJECT_TREEVIEW.ClickItem("|[2]|A_Mixed_US_2012 ")
Any suggestion is appreciated. Thanks in advance.