# Using styles in a script transform?

**URL:** <https://forum.inductiveautomation.com/t/using-styles-in-a-script-transform/54942>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [January 12, 2022, 6:44pm UTC](https://forum.inductiveautomation.com/t/using-styles-in-a-script-transform/54942 "2022-01-12T18:44:42Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [January 13, 2022, 6:50am UTC](https://forum.inductiveautomation.com/t/using-styles-in-a-script-transform/54942/11 "2022-01-13T06:50:36Z")

</div>

Hi @bkarabinchak.psi,

Since a good example is better than a lot of text  
[TableStyleTransform.zip](https://forum.inductiveautomation.com/uploads/short-url/yApFysLpV2Qoeu70yZZuaNI40KB.zip) (8.6 KB)

I use a dataset in the custom props of the table component for this example but you can use it with a named query also (Just make sure that the return format is set to Dataset)  
You will need to change also the name of the column where you want to do the check for the style definition (Yellow highlight).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/4/a4678f96a23972caa609b7e9bd3906cce7566920.png)

in the zip file i've include the view and styles used.

Hope this help

Fyi: if you use this structure with column definition using a viewPath make sure the render is set to auto. Otherwise the cell value will not be send to the render view.

> [@Perspective Table cell view render](https://forum.inductiveautomation.com/t/perspective-table-cell-view-render/54868/9):
>
> @ynejati i've found something interesting. when i set the render mode to auto instead of view then the value is set to the render view. i don't know if this is a bug. but this solved my problem

Regards

---

_[View the full topic](https://forum.inductiveautomation.com/t/using-styles-in-a-script-transform/54942)._
