Question

1
Replies
1203
Views
TSUCK Member since 2010 122 posts
PEGA
Posted: 1 year ago
Last activity: 1 year 10 months ago
Closed
Solved

Else statement for < pega:when name="WHENCONDITIONNAME" >

Hi,

Quick question. I am highlighting some rows in a Grid that meet a certain condition like below screenshot.

And, here is how I do it:
I set above snippet <pega:when name="WHENCONDITIONNAME">background-color: #FDD7E4;</pega:when> in a row properties in a Repeating Grid. This method works fine but what was the syntax for ELSE statement? What I mean by this is, I want to use two colors - color 1 for WHENCONDITIONNAME and if the condition isn't met, I want to use color 2.

p.s.
I could create an another when rule that is just an opposite of WHENCONDITION and provide two pega:when in the snippet but I don't want to create this unnecessary when condition because it is verbose.

Thanks,

Pega Platform
Moderation Team has archived post
Share this page LinkedIn