Earlier today I posted a solution that required a bit of jQuery to execute after refresh of a report.
Avoiding post-processing is always nice, so here's an example that is resolved during render.
I would like to highlight the 'current' card in this classic report:
The SQL that dynamically defines these cards includes the following column, with some decider over which record is deemed the current selection.
If you define a declarative List region, it also uses the
This is different to the
Here I used:
Avoiding post-processing is always nice, so here's an example that is resolved during render.
I would like to highlight the 'current' card in this classic report:
![]() |
Cards Classic Report |
The SQL that dynamically defines these cards includes the following column, with some decider over which record is deemed the current selection.
,case when :P17_ITEM = 'SOMETHING' then 'is-active ' end AS card_modifiersThen we can include some CSS relevant to that card group, identified here by Static ID 'my_cards_r'.
#my_cards_r .t-Cards-item.is-active div.t-CardThis solution should also reflect appropriately after any refresh of the card region.
{background-color : green;}
If you define a declarative List region, it also uses the
is-active
class when the list entry is current, so this CSS could also apply.This is different to the
#CARD_COLOR#
substitution string, that drives the colour of the circles where your icon/initials are. Here I used:
,'u-color-12' card_colorDo you have a preferred solution?