Categories > TinyButStrong general >

Question changing colors of cell background on certain conditions

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Shawn
Date: 2008-08-03
Time: 13:16

Question changing colors of cell background on certain conditions

I have a table with 10 columns.  One column has a value this is either positive or negative.  When that particular cell is negative I want it have a background color of #EEEEEE and when it is positive I want it to have a background color of #ABD66F.

This is stumping me.  Any help is appreciated.  Thanks.
By: TomH
Date: 2008-08-03
Time: 15:17

Re: Question changing colors of cell background on certain conditions

Shawn,
Take a careful look at this thread
http://www.tinybutstrong.com/forum.php?msg_id=9090#

It looks like it can be adapted to your needs - if you can't get that approach to work come back for more.
By: Shawn
Date: 2008-08-03
Time: 16:53

Re: Question changing colors of cell background on certain conditions

Thanks.  I have it working now, but did something a little different than what the posts mentions.  Thanks though.


Now my next question:  I have two fields that need subtracted from each other, can I do this with TBS.

Example:

price=2.00
rebate=1.00

[b1.price]-[b1.rebate] is what I'm trying to achieve.

Any ideas?
By: TomH
Date: 2008-08-03
Time: 19:15

Re: Question changing colors of cell background on certain conditions