Page - Inline CSS:
#rTest tr.condition1 td{
background-color: yellow;
}
#rTest tr.condition2 td{
background-color: pink;
}
#rTest tr.condition3 td{
background-color: red;
}
#rTest tr.condition4 td{
background-color: green;
}
#rTest tr.condition5 td{
background-color: gray;
}
#rTest tr.condition6 td{
background-color: blue;
}
#rTest tr.condition7 td{
background-color: purple;
}
#rTest tr.condition8 td{
background-color: orange;
}
#rTest tr.condition9 td{
background-color: gold;
}
#rTest tr.condition10 td{
background-color: olive;
}
#rTest tr.condition11 td{
background-color: sienna;
}
#rTest tr.condition12 td{
background-color: lightseagreen;
}
Report:
- Report Static ID: rTest
- Report SQL
select level condition, 'test case '||level description, 'another column '||level col1, 'yet another column '||level col2
from dual
connect by level <= 12
Dynamic action:
- After Refresh on report region
- True action:
This code will read the text in the CONDITION column per row, and apply a class to the row element: "condition" concatenated with the text in the cell.