Showing results for 
Search instead for 
Do you mean 
Reply

Tree list get node

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

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

Thank you!
Got it to work thanks to you!