08-14-2019 02:06 PM
Hi All,
I am using tables to display test data. I want the background color to change based on the data value. Currently I am using a separate property node for each cell. Is there a way to use one property node to change multiple different cells?
08-14-2019 02:13 PM
I don't understand "using a different property node for each cell." Could you share your code so that we can see what you mean. You can change the value of any of the cells with a single property node. You can also change multiple cells together with a single property node by expanding the property node.
08-14-2019 02:16 PM - edited 08-14-2019 02:21 PM
If you set the Row or the Column for the Active Cell to -1, it will select the entire row or column. -2 also includes the header.
Edit:
Just re-read the help. Apparently -1 selects the header and -2 selects the row or column including the header.
08-14-2019 02:48 PM
Attached is a shot of what I am doing. I know how to change header, column and row colors. I want to selectively pick and choose different cells in random order to change the color.
08-14-2019 03:01 PM
See if the attached vi helps.
08-14-2019 03:06 PM
Create arrays of those clusters. Feed them into a For Loop that autoindexes on those arrays.
08-14-2019 03:07 PM
No you can not set an arbitrary set of cells beyond what crosrulz wrote
All rows
All Collum
Entire table.
If you can limit the number of cell you are going to muck with then using a single node sized to do all of them, you would only have to do a UI thread swap once instead of multiple time.
Now if you have an arbitrary number (for instance making it look like green-bar paper) then you will have to watch your performance.
Defer FP updates before the update
Setting a sub-VI to run in the UI thread to do the property changes
And also possibly hiding the table before the changes are applied.
But if the table gets very large, you may have to resort to rolling-your-own table and not displaying everything.
Ben