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: 

Dynamic GUI Possible ?

I was thinking of doing a front end for database using labview. In that requirement i realized that Labview is short on the making dynamic GUI. For eg. When i am puting a ComboBox (Dialog ring in labview terms)on GUI where I have to increse the options dynamically. When user will select the add catagory in that ComboBox then he should get a text box to add the text for that option and then once that is done then GUI should refresh up with that option in dialog box.
I went throgh properties for that comboBox but I was not able to find the way to do this. If anyone knows then please let me know.

Thanks,
0 Kudos
Message 1 of 4
(3,812 Views)
I have just finished a project that includes the functionality that you describe. I used the "Insert into Array" function to add items from an input text box. The array then ties to the"strings" property node of the front panel selection control. I also provided a delete mode by using "search array" function to provide the index for "delete from array" to remove a selection from the "strings" list. If you cannot follow what I did, I could possibly copy out a few sections of my code to illustrate.
Let me know if you need this.

Good luck.

Dave
Message 2 of 4
(3,812 Views)
Thanks Dave,
I tried this and it works. I need to fig the comman strategy for controlling the vi flow. For eg. Once a selection in comboBox is made then next time loop should stop unless selection is mage again without using the button in while loop but thats something i can find out by playing around. But this is important break through.
0 Kudos
Message 3 of 4
(3,812 Views)
Good luck with the project. Glad to help.

Dave
0 Kudos
Message 4 of 4
(3,812 Views)