# Table row versioning question

**URL:** <https://forum.inductiveautomation.com/t/table-row-versioning-question/61285>\
**Category:** Ignition\
**Created:** [June 28, 2022, 11:34am UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285 "2022-06-28T11:34:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [June 28, 2022, 11:34am UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/1 "2022-06-28T11:34:36Z")

</div>

I am trying to figure out what to put in the version key to get my row to change colors  
i made a row and changed all the fills on it to red and named it Idle Row

this is what i was trying to put in the version key, ive tried many many variants but i cannot seem to find out what is wrong

allstatus is a key that just shows the status of the machine , I want it so if the machine is Idle it will change to the Idle fill color

@allstatus@=“Idle”?“Idle Row”:“Standard”

any ideas where i am going wrong?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 28, 2022, 11:44am UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/2 "2022-06-28T11:44:11Z")

</div>

Well I have no idea what you actually tried, so I can’t tell you what’s wrong.

But If I understood correctly, you want to color table rows dynamically, based on a status. Is that status specified in each row ? Does you table have a `status` column ?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 28, 2022, 11:57am UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/3 "2022-06-28T11:57:13Z")

</div>

Psst! Be sure to tell us you’re using the reporting module. 😉

Try using `==`.

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [June 28, 2022, 12:14pm UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/4 "2022-06-28T12:14:13Z")

</div>

yeppers , I have a status column and the key for that column is @allstatus@

and it created a status in each row next to the timestamp it was made  
T\_stamp Status  
so it will be like

```
                      7:00AM Idle 
                     7:01AM Idle
                     7:02AM Off

```

and i was trying to get it so if it says Idle then the whole row is a certain color but if it says Off its a different color

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [June 28, 2022, 12:15pm UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/5 "2022-06-28T12:15:05Z")

</div>

> [@JordanCClark](#):
>
> st! Be sure to tell us you’re using the reporting module

I am using the reporting module!!

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [June 28, 2022, 12:17pm UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/6 "2022-06-28T12:17:59Z")

</div>

I have tried many various combinations in that version key spot and none of them work

some examples are

@allstatus@=“Idle”?“Idle Row”:“Standard”

@allstatus=“Idle”?“Idle Row”:“Standard”@

@allstatus@=Idle?“Idle Row”:“Standard”

allstatus=Idle?“Idle Row”:“Standard”

@allstatus@==“Idle”?“Idle Row”:“Standard”

and so on and so forth , im not sure if its because idle needs to be in “” (or doesnt need to be in “”) or if because the key doesnt need @ or does need @ , theres a lot of factors that could be making it not work

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 28, 2022, 1:03pm UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/7 "2022-06-28T13:03:39Z")

</div>

Should be `allstatus=="Idle"?"Idle Row":"Standard"`

Be sure that the spelling is correct, no extra spaces, etc. Been caught by that once or twice.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 28, 2022, 3:27pm UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/8 "2022-06-28T15:27:48Z")

</div>

You almost certainly do not want a keychain expression in the version key field.

You would just put `allstatus` in your version key field, then make a row version _named_ `"Idle Row"`.

---

<div class="post-metadata">

**Author:** ![IgnitionNewbie](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@IgnitionNewbie](https://forum.inductiveautomation.com/u/IgnitionNewbie)\
**Post date:** [June 29, 2022, 11:21am UTC](https://forum.inductiveautomation.com/t/table-row-versioning-question/61285/9 "2022-06-29T11:21:56Z")

</div>

it worked!! thank you
