【问题标题】:How to put 0 instead of blank in rtf template如何在rtf模板中放置0而不是空白
【发布时间】:2022-12-29 15:16:20
【问题描述】:

see sample report output with blank fields

我试过这段代码见图片this is the code I used 但是 0 被添加到每个值的末尾。见下图it's looks like this

【问题讨论】:

    标签: oracle templates business-intelligence bi-publisher oracle-bi


    【解决方案1】:

    对我来说,最简单的方法是在填充报告的查询中使用 NVL 函数,例如

    select nvl(that_value, 0) as value
    from ...
    

    这意味着它将返回值(如果存在)或0(如果值不存在)。

    【讨论】:

      猜你喜欢
      • 2015-11-23
      • 1970-01-01
      • 2013-10-13
      • 1970-01-01
      • 2015-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-08
      相关资源
      最近更新 更多