# How do you set the "Foreground Color List" in a data table in scripting?

**URL:** <https://forum.inductiveautomation.com/t/how-do-you-set-the-foreground-color-list-in-a-data-table-in-scripting/25133>\
**Category:** Ignition\
**Created:** [May 19, 2019, 2:35pm UTC](https://forum.inductiveautomation.com/t/how-do-you-set-the-foreground-color-list-in-a-data-table-in-scripting/25133 "2019-05-19T14:35:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![compuzak](https://avatars.discourse-cdn.com/v4/letter/c/71c47a/32.png) [@compuzak](https://forum.inductiveautomation.com/u/compuzak)\
**Post date:** [May 19, 2019, 2:35pm UTC](https://forum.inductiveautomation.com/t/how-do-you-set-the-foreground-color-list-in-a-data-table-in-scripting/25133/1 "2019-05-19T14:35:36Z")

</div>

I need to dynamically assign the values and colors for the “Foreground Color List” based on a SQL data table maintained by a user.

If you can’t do that, how can I save the color scheme, so that when I need to change it, I can change it in one place or at least copy it to each column that needs the special formatting

---

<div class="post-metadata">

**Author:** ![shibubalaji](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shibubalaji/32/9165_2.png) [@shibubalaji](https://forum.inductiveautomation.com/u/shibubalaji)\
**Post date:** [May 19, 2019, 5:11pm UTC](https://forum.inductiveautomation.com/t/how-do-you-set-the-foreground-color-list-in-a-data-table-in-scripting/25133/2 "2019-05-19T17:11:54Z")

</div>

try this, if this is what you are looking for…

Assign RGB values (for example 85,85,85) to a tag and bind the tag to the Foreground Color property of the table.
