【问题标题】:How to change color of ticker value on condition basis like if I have value les than 0 then green otherwise red in OBIEE?如何根据条件更改代码值的颜色,例如如果我的值小于 0,则在 OBIEE 中为绿色,否则为红色?
【发布时间】:2021-09-25 05:07:42
【问题描述】:
  


<!-- np -->

<p style="font-size:15px; color:black; font-family:tahoma">

<span style="font-size:15px; color:#2A5240; font-family:tahoma; font-weight: bold">
Net Profit
</span>
<span style="font-size:15px; color:black; font-family:tahoma; font-weight: bold"">
for the year is
<span style="font-size:15px; color:#003F63; font-family:tahoma; font-weight: bold">
@4
</span>

|
<!-- ebitda -->


<span style="font-size:15px; color:#2A5240; font-family:tahoma; font-weight: bold">
EBITDA
</span>
<span style="font-size:15px; color:black; font-family:tahoma; font-weight: bold"">
for the year

is
<span style="font-size:15px; color:#003F63; font-family:tahoma; font-weight: bold">
@5
</span>

|
<!-- change in revenue -->



<span style="font-size:15px; color:#2A5240; font-family:tahoma; font-weight: bold">
Change in Revenue
</span>
<span style="font-size:15px; color:black; font-family:tahoma; font-weight: bold"">
for the year
</span>
is
<span style="font-size:15px; color:#003F63; font-family:tahoma; font-weight: bold">
@6
</span>
|

<!-- change in expenses -->


<span style="font-size:15px; color:#2A5240; font-family:tahoma; font-weight: bold">
Change in Expenses
</span>
<span style="font-size:15px; color:black; font-family:tahoma; font-weight: bold"">
for the year
is
<span style="font-size:15px; color:#003F63; font-family:tahoma; font-weight: bold">
@7
</span>

</p>**strong text**

【问题讨论】:

  • 问题没有解决。
  • 我认为您必须向我们展示更多信息 - 无法仅从 HTML 中得知值是如何更改的,以及值的更改可能会在哪里触发样式的更改。总的来说,CSS不能与内容相关,你必须使用JS。

标签: javascript html css obiee


【解决方案1】:

正如 A Haworth 所指出的,您没有提供很多信息。没有适合初学者的精确版本。我一般他是正确的:您需要在 JS 中编写脚本,这是一个非常糟糕的主意,因为您必须在每次升级解决方案时验证它是否能继续工作。您引用的东西是开箱即用的,Oracle 可以随时更改。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-02-22
    • 2011-05-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-25
    • 2020-11-12
    • 2013-06-25
    相关资源
    最近更新 更多