Perspective Table : How to change cell's background color based on cell's value

Ignition 8.0.16-RC1

With the Perspective Table, I would like to change the cell’s background color based on cell’s value.
(As a side note, the property data of the table component is binded to a dataset).

(I try to have the same result as with the Vision’s power table configureCell Extension Functions).

Style Rule with element State seem not to be applied to the table’s cells.
Any idea to achieve this ?

1 Like

You could create another view, just with a label and with the parameters “rowData” coming from the table.
Bind the label text and background to “rowData” and make your Transforms.

In the table view, add a new column to the parameter “column” and change the “render” to “view”.
Select the “path” to your previous label view.

Passing this parameter “rowData” to a view is an powerful way to change a table.

Thanks, I had seen this render mode, but I hoped there was something more straightforward to only change the background cell color.

1 Like

Hello, Can you elaborate the solution in detail.

I am investigating this same idea while transferring a project from vision to perspective...

Anyone have a solution that can mimic the extension functions from table in vision to table in perspective?