oracle - BI Publisher RTF 模板中的独立 ELSE
问题描述
我知道XML Publisher RTF Templates 中有一个 IF-ELSE 语句,如下所示:
<?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?>
但它不起作用。
有小费吗?
解决方案
你是对的,没有独立的“其他”块。根据您的要求,您将需要使用 to if 表达式评估相反的条件。
下面列出了可以在 BIP 中使用 if 表达式的所有不同方式。
推荐阅读
- java - Reactor EmitterProcessor 只保留最后 n 个元素?
- python - Python:在循环中循环 if else 语句
- visual-studio - 我可以编辑具有 x64 ActiveX 控件的 MFC 对话框吗?
- xamarin - 条目的 HorizontalTextAlignment 不起作用
- javascript - 我可以授予android chrome在屏幕关闭时播放音频文件的权限吗?
- c# - Arraylist to excel 我不明白 for 循环
- javascript - react-scripts 启动错误(找不到模块'../scripts/start') - 我该如何解决这个问题?
- ios - iOS CocoaLumberjack 日志框架未记录到设备上的文件
- c# - 在 ML.NET 中训练模型而不标记特征
- php - 释义注解