取消
显示结果 
搜索替代 
您的意思是: 

Remove auto naming of Child under different parents in tree in LabVIEW

已解决!
转到解答

I am having child's named "Header" under different parents COM 7 & COM 8.

But when I am taking the current selected tree value, for COM 7, it is coming as Header & for COM 8, it is coming as "Header_1". 

How can I overcome this situation. Because of auto renaming, I am unable to get the value properly.image.png

0 项奖励
1 条消息(共 3 条)
1,357 次查看
解答
已被主题作者 Alwin_Capsys 接受

You are confusing the cell content with the item tag.

The cells can have any string content you wish, while the tag uniquely identifies a tree item (i.e. a row), hence the auto-naming to ensure unicity.

 

Since the "Value Change" event gives you the tag, you have to use the Tree properties to select the tree item (property "ActiveItem.Tag"), then select column 0 (property "ActiveCell.ActiveColumnNumber"), then get the cell content (property "ActiveCell.String"):

 

Get Tree Cell String.png

 

Find your modified VI attached (LV2020):

0 项奖励
2 条消息(共 3 条)
1,302 次查看
解答
已被主题作者 Alwin_Capsys 接受

very much thank you for the reply. I was struggling to get the proper value as it is named automatically. And I was unaware about this property of tree.

0 项奖励
3 条消息(共 3 条)
1,279 次查看