I'd start this blog by issuing a warning that Direct Database requests should be used sparingly. A Direct Database Request (DDR) bypasses the OBIEE metadata defined in the repository and this can have security implications if not managed properly where users could potentially have access to data that they should not have access to.
There are some use cases for DDRs like building an OBIEE analysis to display the status of a transactional process for instance. According to the OBIEE user guide documentation, you can not specify conditional formatting for columns of a Direct Database Request. This post describes a "workaround" which enables you to achieve this. In the example below, all you need is a little HTML and bingo! All you need is a CASE statement to implement the conditions of your logic and on the column that you'd be applying the formatting, go to Column Properties > Data Format and change the Treat Text As field to HTML.
9 Comments
Chip Bash
19/4/2019 17:15:15
It looks like all that's happening is that your coloring the text based on the text value.
Reply
Elffar Analytics
19/4/2019 19:29:42
If I understand correctly, what you’ll need to do is to modify the CASE statement of your SQL to something along the line of:
Reply
Analytics BI
29/5/2019 10:32:41
Hi i am trying to implement the conditional formatting based of the work round above. What i am hoping to achieve is that when 'round (((max(start_ts- sysdate))*-24*60),0)' is greater than 25 then font should be 'red' else 'green').
Reply
Elffar Analytics
29/5/2019 10:58:05
Add something like this to the SELECT of your SQL statement:
Reply
Gino
11/11/2019 02:06:42
This is very neat work around. Excellent!
Reply
guilou
12/4/2021 13:06:32
Thank you for your help !
Reply
Elffar Analytics
13/4/2021 06:32:12
Can you provide some more detail on what you are actually trying to achieve?
Reply
guilou
13/4/2021 08:30:20
I try to make different background color on the tab based on a value.
Guilou
15/4/2021 02:02:10
I want that because when I make a case when I must convert number in char, but I need a line total.
Reply
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorA bit about me. I am an Oracle ACE Pro, Oracle Cloud Infrastructure 2023 Enterprise Analytics Professional, Oracle Cloud Fusion Analytics Warehouse 2023 Certified Implementation Professional, Oracle Cloud Platform Enterprise Analytics 2022 Certified Professional, Oracle Cloud Platform Enterprise Analytics 2019 Certified Associate and a certified OBIEE 11g implementation specialist. Archives
May 2024
Categories |