# rowBGColorCalculation

**URL:** <https://forum.servoy.com/t/rowbgcolorcalculation/12777>\
**Category:** Classic Servoy\
**Created:** [August 31, 2010, 2:23pm UTC](https://forum.servoy.com/t/rowbgcolorcalculation/12777 "2010-08-31T14:23:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)\
**Post date:** [August 31, 2010, 2:23pm UTC](https://forum.servoy.com/t/rowbgcolorcalculation/12777/1 "2010-08-31T14:23:05Z")

</div>

Hello

I have a problem with rowBGColorCalculation with report form.  
I load some records into a form.  
If I show the form on client with controller.show() I can see the rowBGColorCalculation for all records, If I try with controller.showPrintPreview() I cannot see the colors. Every row is white.

The global method for rowBGColorCalculation is:

// Alternate colors  
var index = arguments[0];

if ( index % 2 == 0 )  
return ‘#e6e6e6’;  
else  
return ‘#ffffff’;

Thank you for help  
Bye  
Roberto

---

<div class="post-metadata">

**Author:** ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)\
**Post date:** [September 6, 2010, 8:32am UTC](https://forum.servoy.com/t/rowbgcolorcalculation/12777/2 "2010-09-06T08:32:47Z")

</div>

No one have the same issue?

Thank you

Roberto

---

<div class="post-metadata">

**Author:** ![tgs](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tgs](https://forum.servoy.com/u/tgs)\
**Post date:** [September 6, 2010, 9:33am UTC](https://forum.servoy.com/t/rowbgcolorcalculation/12777/3 "2010-09-06T09:33:45Z")

</div>

Hi Roberto!

Do you have searched the forum for your issue? Here are many topics about the rowBGColorCalc property!  
BTW, it should be very helpful to find results in the Servoy forum when the topics subject is more detailed.

Regards  
Thomas

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [September 6, 2010, 12:02pm UTC](https://forum.servoy.com/t/rowbgcolorcalculation/12777/4 "2010-09-06T12:02:40Z")

</div>

Hi Roberto,

If I remember correctly rowBgColor never worked when printing. You could file a feature request for it.

---

<div class="post-metadata">

**Author:** ![robysimo09](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@robysimo09](https://forum.servoy.com/u/robysimo09)\
**Post date:** [September 6, 2010, 1:53pm UTC](https://forum.servoy.com/t/rowbgcolorcalculation/12777/5 "2010-09-06T13:53:27Z")

</div>

Ok I’ll send a feature request to servoy support.  
Thank you  
Roberto
