01-12-2020 08:37 AM
Hi,
I have situation here:
1) Main.vi will load data from database and update the cluster control which contains Boolean button, combo box, & multiples string box (as attach inside the vi).
2) If there is more than 1 row of data, would need dozens of repeatable cluster controls. Maximum 50 rows of data will be pull from database.
3) User can change the contents of the cluster info, delete the cluster row and update back to database.
Do have any suggestion or example link to as requested for multiple cluster control creation.
I do have intermediate stage level of LabView knowledge but it seem I'm struck here.
Appreciate for the help.
Thanks,
Simon
01-12-2020 09:23 AM
Hi Simon,
The simplest way of achieving the required functionality is creating an array of those clusters. When reading data from the database, you can populate the data to each element of the array. You can also programmatically control number of elements to be shown on the front panel, depending on how many cluster you want to show.
Thanks,
Arev
CTO | RAFA Solutions
01-13-2020 02:33 AM
Hi Arev,
Thanks for the reply.
I did consider the array cluster at beginning. If I would like to update the combo box contents of the cluster, I don't think able to do it for cluster array.
Worst case will be create multiple cluster, hide and show.
-Simon
01-13-2020 02:39 AM
Hi Simon,
If the items of the combobox within the cluster are the same for all the elements of the array, then you'll be able to programmatically fill them.
Please find attached you code modified to add the programmatic addition of items in the array elements.
Thanks,
Arev
CTO | RAFA Solutions
01-14-2020 06:32 AM
Hi Arev,
The combobox of the cluster is same for all elements of the array.
Another question, if the user key in some value(dbl) in one of the index array row control, how to know which index array is the corresponding one as i need to do some calculation and display the value to the same cluster indicator.
Thanks,
Simon
01-14-2020 07:33 AM
Saw one of the post using array of cluster in table format (as attach).
I want to fix the table size to row 20, additional increase will show vertical scroll bar. But somehow the table not allow me to scroll down with element size increase.
-Simon
01-14-2020 07:51 AM
Your table is an indicator, and it is disabled.
It doesn't have enough elements in it to have to need to scroll down.
01-14-2020 08:37 AM
Ravens,
Thanks to point out. The example is grab from one of the post & didn't noticed is disable.
Only if the user increase the element size, it will allow user to put info up the index array.The rest will be disable.
Thanks,
Simon
01-14-2020 08:47 AM
How to put name on left top corner of the table ?
Thanks,
Simon
01-14-2020 09:40 AM
I don't think you can.
What you could do is put a transparent string or label over top of it.