LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constructing the Tree with tag

Solved!
Go to solution

Hello, 

I need to construct the tree control with data which has unique keys. Please refer below image. Each element I need to pass the unique keys. 

 

azadplc007_0-1591270593942.png

 

From above diagram, assume that "Project" should have "1" as a tag. Similar way, "Structure" should have "2" as a tag, "Substruc" should have "3" as a tag, "Pile" should have "4". So, If I adding the new element under the tag "1"(which is "Project"), my new element should go under "Project". Similarly, I have to add new elements based on their tag names. Everything I need to in programmatically. 

 

ProjectTag.PNGStructureTag.PNGSubstrucTag.PNG

 

 

 

 

 

 

 

 

PileTag.PNG

 

 

 

0 Kudos
Message 1 of 3
(2,521 Views)

Use an invoke node for the tree.  Select Edit Tree Items -> Add Item

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 3
(2,513 Views)
Solution
Accepted by topic author azadplc007

Got the output. Attached snippet here...

Tree.png

Never mind about the broken wire. That is coming from another loop. Since I made the snippet only for this section, it got to be broken...

 

0 Kudos
Message 3 of 3
(2,451 Views)