# \[bug-13773\]Ignition 8 - Alternating Row Background not working properly for Power Table

**URL:** <https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 11, 2019, 11:00pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191 "2019-09-11T23:00:32Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [September 11, 2019, 11:00pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/1 "2019-09-11T23:00:32Z")

</div>

I haven’t seen this posted anywhere, but it seems like odd row background coloring on the Power Table component is broken for columns of type Boolean.

I have added two components with test data, one is a Power Table with configureCell enabled, and the other is a Table component with Background Mode set to Alternating.

 ![Annotation%202019-09-11%20155439](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/863213f78d0774098f0571f5934bc87526ebe579.png)

You will see that both background and selection appear to be broken for Power Table, but not so for Table.

Bonus question: How do I report bugs?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 12, 2019, 12:19am UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/2 "2019-09-12T00:19:32Z")

</div>

> [@cesrom](#):
>
> Bonus question: How do I report bugs?

To support. As in, either [support.inductiveautomation.com](https://support.inductiveautomation.com/) or [support@inductiveautomation.com](mailto:support@inductiveautomation.com).

---

<div class="post-metadata">

**Author:** ![indenkleefj](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/indenkleefj/32/10961_2.png) [@indenkleefj](https://forum.inductiveautomation.com/u/indenkleefj)\
**Post date:** [January 14, 2020, 12:54pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/3 "2020-01-14T12:54:44Z")

</div>

Hi,

Did you get an answer regarding this question?

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [January 14, 2020, 4:44pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/4 "2020-01-14T16:44:11Z")

</div>

A bug was logged back in September, but it has yet to be fixed. A couple of weeks ago I downloaded 8.0.7 and the bug has not been squashed.

Hopefully they can get to it soon.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [January 14, 2020, 5:40pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/5 "2020-01-14T17:40:31Z")

</div>

Put the following on the initialize extension function.

```auto
from java.lang import Boolean
	
table = self.getTable()
table.getDefaultRenderer(Boolean).setOpaque(True)

```

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [January 14, 2020, 8:42pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/6 "2020-01-14T20:42:15Z")

</div>

Thanks, @jpark!

While that solved the issue on my proof of concept, it will be a bit more challenging updating each Power Table component on every project that I have. But I guess it would take me less time than waiting on IA to fix the bug.

 ![43](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/554357a956f91d3c0db3cbd45b584a7265cd8994.png)

---

<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:** [January 14, 2020, 9:00pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/7 "2020-01-14T21:00:41Z")

</div>

For what it’s worth, I just kicked the bug ticket to a slightly higher priority - should help getting it fixed sooner.

---

<div class="post-metadata">

**Author:** ![indenkleefj](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/indenkleefj/32/10961_2.png) [@indenkleefj](https://forum.inductiveautomation.com/u/indenkleefj)\
**Post date:** [January 15, 2020, 9:09am UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/8 "2020-01-15T09:09:20Z")

</div>

Thanks all of you!

---

<div class="post-metadata">

**Author:** ![gpellicelli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gpellicelli/32/53466_2.png) [@gpellicelli](https://forum.inductiveautomation.com/u/gpellicelli)\
**Post date:** [May 14, 2020, 6:13pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/9 "2020-05-14T18:13:09Z")

</div>

Hi,

I have a different problem but with the same bug… I got 2 columns with the data type ‘date’ one of which contains the current time stamp of when the note was created then the other is when the note is modified or if it is modified… When the column Date Modified have no date (SQL table = NULL) my row have not the back ground I have expected … they stay white because I have no value(NULL)… I joint you a screenshot of my bug. My version of Ignition is the new one 8.0.12

Best regards, Gabriel

 ![Bug](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9bc1b6caa52faf352115c34b5dbf8ed3d041915e.jpeg)

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [May 14, 2020, 8:15pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/10 "2020-05-14T20:15:28Z")

</div>

Post your configureCell code.

---

<div class="post-metadata">

**Author:** ![gpellicelli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gpellicelli/32/53466_2.png) [@gpellicelli](https://forum.inductiveautomation.com/u/gpellicelli)\
**Post date:** [May 14, 2020, 8:23pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/11 "2020-05-14T20:23:57Z")

</div>

Never mind Its work now its because I used translation (the problem was with the function Translate = system.util.translate(textValue) on my code and now with this code is good:

```
#this section is for set the Width of the column in % of 100% of the size Table
tab = self # Table is self
w = tab.width # The Size in pixel of the table
	
	            
tab.setColumnWidth(0,w*4/100) # Calcul for 4% of the table for the Coloumn 0
tab.setColumnWidth(1,w*5/100) # Calcul for 5% of the table for the Coloumn 0
tab.setColumnWidth(2,w*8/100) # Calcul for 8% of the table for the Coloumn 0
tab.setColumnWidth(3,w*4/100) # Calcul for 4% of the table for the Coloumn 0
tab.setColumnWidth(4,w*44/100) # Calcul for 44% of the table for the Coloumn 0
tab.setColumnWidth(5,w*9/100) # Calcul for 9% of the table for the Coloumn 0
tab.setColumnWidth(6,w*8/100) # Calcul for 8% of the table for the Coloumn 0
tab.setColumnWidth(7,w*9/100) # Calcul for 9% of the table for the Coloumn 0
tab.setColumnWidth(8,w*8/100) # Calcul for 8% of the table for the Coloumn 0
	# Total = 100%
	
	
if selected :
	if not textValue == "" and (not colIndex == 8) :
		Translate = system.util.translate(textValue)
		return {'background': self.selectionBackground, 'text' : Translate}
	else:
		return {'background': self.selectionBackground}
	       
	               
elif rowView % 2 == 0 :
	if not textValue == "" and (not colIndex == 8):
		Translate = system.util.translate(textValue)
		return {'background': 'white', 'text' : Translate}
	else:
		return {'background': 'white'}
	   
	           
else:
	if not textValue == "" and (not colIndex == 8):
		Translate = system.util.translate(textValue)
		return {'background': '#DDDDDD', 'text' : Translate}
	else:
		return {'background': '#DDDDDD'}

```

But I don’t now WHY Translate = system.util.translate(textValue) break my column

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [May 14, 2020, 8:53pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/12 "2020-05-14T20:53:19Z")

</div>

Hello, @gpellicelli.

To answer your question, `system.util.translate` breaks when attempting to translate `None`.

A way you could check in Python if a string is not null or empty would be by doing the following:

```auto
# Instead of:
if not textValue == "" and (not colIndex == 8):
    # Do stuff...

# Try this:
if textValue and colIndex != 8:
    # Do stuff...

```

I tested that substitution and it worked on my end.

Cheers!

---

<div class="post-metadata">

**Author:** ![gpellicelli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/gpellicelli/32/53466_2.png) [@gpellicelli](https://forum.inductiveautomation.com/u/gpellicelli)\
**Post date:** [May 14, 2020, 9:09pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/13 "2020-05-14T21:09:56Z")

</div>

Ho thanks you I will try this tomorrow 😃

---

<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 1, 2020, 3:53pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/14 "2020-06-01T15:53:01Z")

</div>

The primary issue reported here, with boolean columns, is fixed for 8.0.14.

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [June 3, 2020, 2:59am UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/15 "2020-06-03T02:59:01Z")

</div>

Can’t wait!

Thanks!

---

<div class="post-metadata">

**Author:** ![chris.dimaria](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@chris.dimaria](https://forum.inductiveautomation.com/u/chris.dimaria)\
**Post date:** [June 16, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/bug-13773-ignition-8-alternating-row-background-not-working-properly-for-power-table/28191/16 "2020-06-16T15:40:29Z")

</div>

> [@jpark](#):
>
> from java.lang import Boolean table = self.getTable() table.getDefaultRenderer(Boolean).setOpaque(True)

If I click on a boolean column the selectedRow property doesn't change. Is this fixed in 8.0.14 also? when will 8.0.14 be released?
