- Oracle = 11G
- Apex = 4.2.6
I have a very large custom matrix grid within Oracle APex. This displays the name, area and day number of month (1,2,3 i.e) as headers.
With rows going down 350. with in each cell is a task type. so each member of staff has a task for each day.
This is displayed in an interactive report.
What I need to do now is highlight specific cells based on task type..
So for example the Background cell will be red for sick, green for weekend and so on.
I could use extra columns
for case when "MD_TS_DETAIL"."JOB_TYPE_ID"= 20 then '#b0c4de'
when "MD_TS_DETAIL"."JOB_TYPE_ID" = 115 then '#000000'
end text_color_1,
case when "MD_TS_DETAIL"."JOB_TYPE_ID"= 20 then 'blue'
when "MD_TS_DETAIL"."JOB_TYPE_ID" = 115 then 'red'
end back_color_1
then call in the column attribute. But to do this I will need to do this up to 31 times and not very dynamic.
Or could use the highlight inside the action selector, but again this would require 1 filter for each word and each colour. which again is not a good solution.
So is possible to call the CSS or jQuery based on a value dynamically.
As I don't think this is possible