【发布时间】:2018-10-11 17:56:39
【问题描述】:
我知道有一个IF-ELSE Statement in XML Publisher RTF Templates,如下所示:
<?xdofx:if ELEMENT1='A' then 'The Letter is A' else 'The Letter is not A' end if?>
但是,我希望使用IF 语句根据值显示不同的数据表。类似于下面的伪代码:
IF BUSINESS_GROUP IS BG-A THEN SHOW TABLE with COLUMNS A B and C, IF NOT, then SHOW TABLE with COLUMNS X Y and Z
我可以通过使用 2 个单独的 IF 语句来做到这一点:
<?xdofx:if BUSINESS_GROUP='A'> SHOW TABLE with COLUMNS A B and C <?end if?>
<?xdofx:if BUSINESS_GROUP!='A'> SHOW TABLE with COLUMNS X Y and Z <?end if?>
我希望我可以只使用像<?ELSE?> 这样的语句,但它不起作用。
有什么建议吗?
【问题讨论】:
标签: oracle rtf obiee bi-publisher