Question


Murex
LB
Last activity: 5 Jul 2016 2:53 EDT
Change Inline style of a row on a when condition
Hi,
I have a grid of names that takes from a report definition. I want the background color of the row to be red if the name is "Test" for example. the rest are normal. How to achieve that?
Message was edited by: Lochan to add Category


Pegasystems Inc.
IN
Hi Sidani, Good morning!
we could try the following applying the style applied either from skin or custom read-write css..
- inline css <pega:when name="IsFlagTrue">background-color: gray;</pega:when>
- have a section dropped in the repeat grid with TWO layouts
Please share your thoughts/observations, Thank you!
psahukaru


Murex
LB
thank you for your reply, but can you please explain more since I'm new to css in pega


Pegasystems Inc.
IN


Murex
LB
hi, I have .Active bool in my report definition where when it is 0 i display normally and if it is 1 i display with background red.
I did this on the row level:
<pega:when Active="IsFlagTrue">color: black; background-color: red; font-size: 14; font-style: other; </pega:when>
but nothing is happening is ther something I am missing?.
Thank you for your time!


Virtusa
AU
Hi Bashir,
If i'm correct, Could you please replace "Active" with "name". Since the actual syntax is <pega:when name="WhenRule"></pega:when>.
Thanks,
Bala.


Murex
LB
I can make a when rule but I am unable to pass the parameters to it. any help would be so much appreciated!


Pegasystems Inc.
IN
- syntax: <pega:when name="<WHEN RULE NAME>">background-color: gray;</pega:when>


Murex
LB
i mean I cannot pass parameters to the when rule thasts why I want to use && and ||