ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive filter propositions with listboxes

Solved!
Go to solution

Hello, I am trying to find a way for users to filter data by clicking on what they want / what they don't want.

 

I've achieved that thanks to 3 listboxes. Two of them are linked : when the user select one parameter name, it's different possible values appears in the second list box.

 

My problem is due to default values : when the VI is started several times, a given value is highlighted in blue on the listbox, but when the user clicks add, this value is not reported in the filter 

 

Maybe I should clear the highlighted cell at VI start (but how ?). Or maybe should I work on listbox actual values instead of event "new value" ?

 

thank you in advance

 

best regards

0 Kudos
Message 1 of 3
(3,117 Views)
Solution
Accepted by haha1234

Change selection mode:

001.png

 

And you can clear selection by -1

002.png

 

And finally you can build string without local variables

 

003.png

 

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

Thanks, the Val(Sgn) tips works perfectly for clearing selection at startup of the selection pop-up.

0 Kudos
Message 3 of 3
(3,067 Views)