Question

3
Replies
73
Views
Chunzhi Hong (Chunzhi_Hong)
PEGA
Consulting Manager
Pegasystems Inc.
JP
Chunzhi_Hong Member since 2013 141 posts
PEGA
Posted: June 1, 2021
Last activity: 2 weeks 2 days ago
Posted: 1 Jun 2021 7:37 EDT
Last activity: 13 Jul 2021 19:29 EDT

how to conditionally change row background color for optimized cosmos table?

I am trying to change the row background color conditionally by embedding inline style as below.

<pega:when test="IsKeiyakuManryou">background-color: #a9a9a9;</pega:when>

However, it seems the same jsp code does not work if "allow optimize code" option is checked. (see screeshot below) 

Is there a way to conditionally change row background color for optimized cosmos table?

I am trying to change the row background color conditionally by embedding inline style as below.

<pega:when test="IsKeiyakuManryou">background-color: #a9a9a9;</pega:when>

However, it seems the same jsp code does not work if "allow optimize code" option is checked. (see screeshot below) 

Is there a way to conditionally change row background color for optimized cosmos table?

Optimize code settings rendered screen
Not allow no allow not allow screen
allow allow allow screen

 

Pega Platform 8.5.2 User Experience