LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Combo box items from user selections

Hey,

 

Very new to LabVIEW, but I was wondering if there was a way to update the items in a combo box based on user selections.

 

Specifically what I want is to have multiple combo boxes with the same list of items and when the user selects an item in one

combo box I want the item to be disabled or removed in the other combo boxes. This will then need to be reset when the

program stops.

 

This is for a scale calibration and each item is a specific weight. They need to be removed from the options to eliminate possible

mistakes.

 

Thanks in advance for any help,

dnorman

0 Kudos
Message 1 of 3
(3,112 Views)

If you right-click on the combo box, go to Create->Poperty Node->Strings[].  Change it to write.  Wire up an array to this property and the combo box will have the values available from the array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(3,089 Views)

To add to what crossrulz said, you can do a check of what is selected in the other combo boxes, and remove that element from the array before you update the strings[] properties for the other combo boxes. You will also have to remember to add it back in to the other combo boxes as an available option if the user selects somethign different in a combo box. You can do all this in the event structure by handling the value change events.

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