I need to display a specific message in a Vision view depending on an integer tag from my PLC.
I created a dataset tag containing the message, background color, and foreground color for the label.
To allow updates without opening the Designer, I created a popup with a table bound to the dataset tag. This works well for editing the text.
I would like to render the color cells with a color picker (similar to the one available in the Designer). Is it possible ?
Do you really need a color “picker”, or do you just want the cell/message rendered with the specified background/foreground color? If the latter, you can look at using the Cell Update binding on the Column Attributes property.
Cell Update Bindings | Ignition User Manual
I’m not sure if it is possible to get the picker to show up there though if you want the user to be able to pick a color.
I found a solution.
I had to uncheck the "Editable" option in Table Customizer.
Then, I added a script on the onDoubleClick event to open a color picker.
2 Likes