01-29-2018 04:46 AM
How to populate dinamically a listbox in NXG?
In labview I used to use property node, but in NXG 2.0 there is no "create property node" or "create reference", so how can I do?
01-30-2018 05:19 AM
Hello,
right-click on listbox on block diagram and select "Create Reference" (or in the property menu on the right after selecting the control), you can even in LV NXG 2.0. Then you can connect the reference to a property node.
01-30-2018 05:25 AM
ops, sorry, i forgot to specify that I'm on a WebVI and there is no "create reference"
01-30-2018 05:26 AM - edited 01-30-2018 05:27 AM
you want the "Item Names" property
01-30-2018 06:32 AM
As i said, it seems there is no reference and so, no property nodes for listbox in WebVI 😞
01-30-2018 09:24 AM
If you use WebVI to build html file, then you can manually edit the html file to use html native listbox and update it with javascript for now. After you done editing, click the apply button on the top-right to save the changes.
01-30-2018 09:29 AM
But I need to populate it dinamically.
i don't know wich items to put in the listbox 'cause are taken from a DB list.
01-30-2018 09:36 AM
You won't see the native html listbox on the diagram. To update the listbox dynamically, you can use javascript.
I made a ring ctrl last week, and update with javascript.
javascript is easy to learn, you don't have to be an expert.
01-30-2018 01:10 PM
Control Properties are not supported in WebVIs yet. The only G solution I've found is to use the Data Grid as shown here:
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-31-2018 01:26 AM
Having some very long listbox, maybe datagrid is not the best solution but thank you for suggesting.
About javascript, ZOU, do you have an example?
I made a ring ctrl last week, and update with javascript.
javascript is easy to learn, you don't have to be an expert.