cancel
Showing results for 
Search instead for 
Did you mean: 

Tree list get node

Creator
Creator

Hi,

 

Is there a way to get a node from a tree list, based on the displayed text?

So the goal is to enter a string and getting the node which has the same displayed text as the entered string.

 

Thanks in advance.

Laurens

2 REPLIES

Re: Tree list get node

Legend
Legend

I think it is quite easy.  Iterate through the TreeList.  For each Node get the DisplayText property and compare it to the required string.

 

There is an example program on the Solution Center that uses GetColumnDisplayText property.

 

https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&dt=nx-api&file_type=tex...

Re: Tree list get node

Creator
Creator
Thank you!
Got it to work thanks to you!