LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

check box symbol in Tree control

Solved!
Go to solution

Hi,

I have built a code for using checkbox symbol in tree function and stuck to get the selected check box item. 

Actually my requirement is to to use tree with check box and do the multiple selection and get the selected item list. I have completed till the Check box selection but not able to get the all selected item list.

I have attached the code for your reference.

 

Please let me know hot to do this, If any one knows .

 

Thanks in advance

 

0 Kudos
Message 1 of 9
(8,732 Views)

I can't open your VI so i apologize if this doesn't answer your question.  But you only need to use the tree terminal to get an array of the selected items.  The VALUE property node also returns the same list.  The images are only for visual effect.

aputman
0 Kudos
Message 2 of 9
(8,669 Views)
Solution
Accepted by SKant
Message 3 of 9
(8,651 Views)

Thanks for your help.

This one only. 

0 Kudos
Message 4 of 9
(8,598 Views)

Thanks for support

0 Kudos
Message 5 of 9
(8,596 Views)

Sorry I didn't get here sooner, here is some example code I made a while ago that supports listboxes, MCLB, and Tree selections.  It also supports nested levels to the tree, select all or select none, and selecting deselecting parent items, and partial selection of parents if children selection are mixed.  Oh and it supports disabling items so the user can't change the selected state.

 

https://decibel.ni.com/content/docs/DOC-42155

Message 6 of 9
(8,566 Views)

Hello Community!

 

I have created a program with a multiselection tree like in this example. Does anyone know how can I prevent or allow the user to select and unselect items of the tree? Thank you very much for the help

0 Kudos
Message 7 of 9
(7,432 Views)

The example I linked to already shows disabling items from user selection.  All that is needed is to disable the item by right clicking it in edit time.  Or you can enable and disable items using the tag and the Active Item Tag, and then the Disabled? properties at runtime.  My code will then look at which symbol was clicked by the user, and not allow it to change state if that tag it disabled.

0 Kudos
Message 8 of 9
(7,423 Views)

Hi,

May I know how you have taken symbol enum constant ?

I am trying to create constant out of Item symbol property node, it is giving me numeric constant only.

0 Kudos
Message 9 of 9
(5,740 Views)